summaryrefslogtreecommitdiffstats
path: root/include/net/smc.h
diff options
context:
space:
mode:
authorUrsula Braun <ubraun@linux.ibm.com>2019-11-14 13:02:41 +0100
committerDavid S. Miller <davem@davemloft.net>2019-11-15 21:28:28 +0100
commit42bfba9eaa33dd4af0b50b87508062a41ec26653 (patch)
tree318e96d2773489d056281fd4de0a129ac0d4704d /include/net/smc.h
parentnet/smc: fix final cleanup sequence for SMCD devices (diff)
downloadlinux-42bfba9eaa33dd4af0b50b87508062a41ec26653.tar.xz
linux-42bfba9eaa33dd4af0b50b87508062a41ec26653.zip
net/smc: immediate termination for SMCD link groups
SMCD link group termination is called when peer signals its shutdown of its corresponding link group. For regular shutdowns no connections exist anymore. For abnormal shutdowns connections must be killed and their DMBs must be unregistered immediately. That means the SMCR method to delay the link group freeing several seconds does not fit. This patch adds immediate termination of a link group and its SMCD connections and makes sure all SMCD link group related cleanup steps are finished. Signed-off-by: Ursula Braun <ubraun@linux.ibm.com> Signed-off-by: Karsten Graul <kgraul@linux.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/smc.h')
-rw-r--r--include/net/smc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/smc.h b/include/net/smc.h
index 05174ae4f325..7c2082341bb3 100644
--- a/include/net/smc.h
+++ b/include/net/smc.h
@@ -37,6 +37,8 @@ struct smcd_dmb {
#define ISM_EVENT_GID 1
#define ISM_EVENT_SWR 2
+#define ISM_ERROR 0xFFFF
+
struct smcd_event {
u32 type;
u32 code;