diff options
author | Ursula Braun <ubraun@linux.ibm.com> | 2019-10-21 16:13:08 +0200 |
---|---|---|
committer | Jakub Kicinski <jakub.kicinski@netronome.com> | 2019-10-22 11:23:43 -0700 |
commit | b290098092e4aeaa1712d3326bf5b64d2751c740 (patch) | |
tree | a61e1a914084e4c9876d8eb15af342529b036e49 /net/smc/smc.h | |
parent | fe28afe23e91b162df31171a376d519cdd95f881 (diff) | |
download | linux-stable-b290098092e4aeaa1712d3326bf5b64d2751c740.tar.gz linux-stable-b290098092e4aeaa1712d3326bf5b64d2751c740.tar.bz2 linux-stable-b290098092e4aeaa1712d3326bf5b64d2751c740.zip |
net/smc: cancel send and receive for terminated socket
The resources for a terminated socket are being cleaned up.
This patch makes sure
* no more data is received for an actively terminated socket
* no more data is sent for an actively or passively terminated socket
Signed-off-by: Ursula Braun <ubraun@linux.ibm.com>
Signed-off-by: Karsten Graul <kgraul@linux.ibm.com>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Diffstat (limited to 'net/smc/smc.h')
-rw-r--r-- | net/smc/smc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/smc/smc.h b/net/smc/smc.h index 878313f8d6c1..be11ba41190f 100644 --- a/net/smc/smc.h +++ b/net/smc/smc.h @@ -188,6 +188,7 @@ struct smc_connection { * 0 for SMC-R, 32 for SMC-D */ u64 peer_token; /* SMC-D token of peer */ + u8 killed : 1; /* abnormal termination */ }; struct smc_sock { /* smc sock container */ |