aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2019-11-15 12:28:28 -0800
committerDavid S. Miller <davem@davemloft.net>2019-11-15 12:28:28 -0800
commite7be235fa783209a661c8a324c1e394a5e4d9170 (patch)
tree1b95d5509f485e0a076e9200e247265e33ba6add /include
parentMerge branch 'net-stmmac-CPU-Performance-Improvements' (diff)
parentnet/smc: immediate termination for SMCR link groups (diff)
Merge branch 'net-smc-improve-termination-handling-part-3'
Karsten Graul says: ==================== net/smc: improve termination handling (part 3) Part 3 of the SMC termination patches improves the link group termination processing and introduces the ability to immediately terminate a link group. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/net/smc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/net/smc.h b/include/net/smc.h
index 05174ae4f325..646feb4bc75f 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;
@@ -77,6 +79,8 @@ struct smcd_dev {
bool pnetid_by_user;
struct list_head lgr_list;
spinlock_t lgr_lock;
+ atomic_t lgr_cnt;
+ wait_queue_head_t lgrs_deleted;
u8 going_away : 1;
};