diff options
author | Karsten Graul <kgraul@linux.ibm.com> | 2020-05-04 14:18:45 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-05-04 10:54:39 -0700 |
commit | 3e0c40afce4ea5b08bb7e3f65c55157817116640 (patch) | |
tree | aef0d3695b0a2ea18b3603aed2e5b92ecc7671fb /net/smc/smc_core.h | |
parent | ad6c111b8ae760114df6765d5a5ed1b09020d45d (diff) | |
download | linux-3e0c40afce4ea5b08bb7e3f65c55157817116640.tar.bz2 |
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>
Diffstat (limited to 'net/smc/smc_core.h')
-rw-r--r-- | net/smc/smc_core.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/smc/smc_core.h b/net/smc/smc_core.h index 6ed7ab6d89d5..32bc45af9a1a 100644 --- a/net/smc/smc_core.h +++ b/net/smc/smc_core.h @@ -271,6 +271,8 @@ struct smc_link_group { /* protects llc flow */ int llc_testlink_time; /* link keep alive time */ + u32 llc_termination_rsn; + /* rsn code for termination */ }; struct { /* SMC-D */ u64 peer_gid; |