diff options
author | Ursula Braun <ubraun@linux.vnet.ibm.com> | 2017-01-09 10:55:14 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-01-09 16:07:38 -0500 |
commit | a4cf0443c4143b19e42389a1674b5b65224544ce (patch) | |
tree | ddb307b528feb0c8bc38e64a7caa9ee51f9d8da5 /net/smc/smc.h | |
parent | ac7138746e14137a451f8539614cdd349153e0c0 (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.h | 6 |
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 @@ | |||
16 | 16 | ||
17 | #define SMCPROTO_SMC 0 /* SMC protocol */ | 17 | #define SMCPROTO_SMC 0 /* SMC protocol */ |
18 | 18 | ||
19 | #define SMC_MAX_PORTS 2 /* Max # of ports */ | ||
20 | |||
19 | enum smc_state { /* possible states of an SMC socket */ | 21 | enum smc_state { /* possible states of an SMC socket */ |
20 | SMC_ACTIVE = 1, | 22 | SMC_ACTIVE = 1, |
21 | SMC_INIT = 2, | 23 | SMC_INIT = 2, |
@@ -34,4 +36,8 @@ static inline struct smc_sock *smc_sk(const struct sock *sk) | |||
34 | return (struct smc_sock *)sk; | 36 | return (struct smc_sock *)sk; |
35 | } | 37 | } |
36 | 38 | ||
39 | #define SMC_SYSTEMID_LEN 8 | ||
40 | |||
41 | extern u8 local_systemid[SMC_SYSTEMID_LEN]; /* unique system identifier */ | ||
42 | |||
37 | #endif /* __SMC_H */ | 43 | #endif /* __SMC_H */ |