summaryrefslogtreecommitdiff
path: root/net/smc/smc.h
diff options
context:
space:
mode:
authorUrsula Braun <ubraun@linux.vnet.ibm.com>2017-01-09 16:55:14 +0100
committerDavid S. Miller <davem@davemloft.net>2017-01-09 16:07:38 -0500
commita4cf0443c4143b19e42389a1674b5b65224544ce (patch)
treeddb307b528feb0c8bc38e64a7caa9ee51f9d8da5 /net/smc/smc.h
parentac7138746e14137a451f8539614cdd349153e0c0 (diff)
smc: introduce SMC as an IB-client
* create a list of SMC IB-devices Signed-off-by: Ursula Braun <ubraun@linux.vnet.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/smc/smc.h')
-rw-r--r--net/smc/smc.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/net/smc/smc.h b/net/smc/smc.h
index fcea7399e2eb..e87d79867099 100644
--- a/net/smc/smc.h
+++ b/net/smc/smc.h
@@ -16,6 +16,8 @@
#define SMCPROTO_SMC 0 /* SMC protocol */
+#define SMC_MAX_PORTS 2 /* Max # of ports */
+
enum smc_state { /* possible states of an SMC socket */
SMC_ACTIVE = 1,
SMC_INIT = 2,
@@ -34,4 +36,8 @@ static inline struct smc_sock *smc_sk(const struct sock *sk)
return (struct smc_sock *)sk;
}
+#define SMC_SYSTEMID_LEN 8
+
+extern u8 local_systemid[SMC_SYSTEMID_LEN]; /* unique system identifier */
+
#endif /* __SMC_H */