diff options
author | Karsten Graul <kgraul@linux.vnet.ibm.com> | 2018-03-16 15:06:41 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-03-16 14:57:26 -0400 |
commit | aaa4d33f6da1e1a415f4f7c299a97defd845ce7d (patch) | |
tree | 54d6b92b8f762f27f3005941307a6357eccb7413 /net/smc/smc.h | |
parent | 1a26d0201d7670fd6c9086e15504911ce240e6ff (diff) | |
download | linux-aaa4d33f6da1e1a415f4f7c299a97defd845ce7d.tar.bz2 |
net/smc: enable ipv6 support for smc
Add ipv6 support to the smc socket layer functions. Make use of the
updated clc layer functions to retrieve and match ipv6 information.
The indicator for ipv4 or ipv6 is the protocol constant that is provided
in the socket() call with address family AF_SMC.
Based-on-patch-by: Takanori Ueda <tkueda@jp.ibm.com>
Signed-off-by: Karsten Graul <kgraul@linux.vnet.ibm.com>
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 | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/smc/smc.h b/net/smc/smc.h index 268cdf11533c..e4829a2f46ba 100644 --- a/net/smc/smc.h +++ b/net/smc/smc.h @@ -18,11 +18,13 @@ #include "smc_ib.h" -#define SMCPROTO_SMC 0 /* SMC protocol */ +#define SMCPROTO_SMC 0 /* SMC protocol, IPv4 */ +#define SMCPROTO_SMC6 1 /* SMC protocol, IPv6 */ #define SMC_MAX_PORTS 2 /* Max # of ports */ extern struct proto smc_proto; +extern struct proto smc_proto6; #ifdef ATOMIC64_INIT #define KERNEL_HAS_ATOMIC64 |