]> git.baikalelectronics.ru Git - kernel.git/commit
net/smc: add termination reason and handle LLC protocol violation
authorKarsten Graul <kgraul@linux.ibm.com>
Mon, 4 May 2020 12:18:45 +0000 (14:18 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 May 2020 17:54:39 +0000 (10:54 -0700)
commit1d058ba77d48c567c74fb86ccd45abbec696993c
treeaef0d3695b0a2ea18b3603aed2e5b92ecc7671fb
parent9540fae78ba13c496ef9fc1028e7a6c2e738c9d4
net/smc: add termination reason and handle LLC protocol violation

Allow to set the reason code for the link group termination, and set
meaningful values before termination processing is triggered. This
reason code is sent to the peer in the final delete link message.
When the LLC request or response layer receives a message type that was
not handled, drop a warning and terminate the link group.

Signed-off-by: Karsten Graul <kgraul@linux.ibm.com>
Reviewed-by: Ursula Braun <ubraun@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/smc_core.c
net/smc/smc_core.h
net/smc/smc_llc.c
net/smc/smc_llc.h