diff options
author | Hans Wippel <hwippel@linux.ibm.com> | 2018-06-28 20:05:11 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-06-30 14:42:26 +0300 |
commit | 413498440e30bfe381ac99dfc31628a3d8d4382a (patch) | |
tree | 57f5c081e80000c02c1a0387f067b02a15cdfc2d /net/smc/smc_core.c | |
parent | be244f28d22f77d939ba2b973c102ad2b49d3496 (diff) | |
download | linux-413498440e30bfe381ac99dfc31628a3d8d4382a.tar.xz |
net/smc: add SMC-D support in af_smc
This patch ties together the previous SMC-D patches. It adds support for
SMC-D to the listen and connect functions and, thus, enables SMC-D
support in the SMC code. If a connection supports both SMC-R and SMC-D,
SMC-D is preferred.
Signed-off-by: Hans Wippel <hwippel@linux.ibm.com>
Signed-off-by: Ursula Braun <ubraun@linux.ibm.com>
Suggested-by: Thomas Richter <tmricht@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/smc/smc_core.c')
-rw-r--r-- | net/smc/smc_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/smc/smc_core.c b/net/smc/smc_core.c index 434c028162a4..66741e61a3b0 100644 --- a/net/smc/smc_core.c +++ b/net/smc/smc_core.c @@ -478,7 +478,7 @@ void smc_smcd_terminate(struct smcd_dev *dev, u64 peer_gid) /* Determine vlan of internal TCP socket. * @vlan_id: address to store the determined vlan id into */ -static int smc_vlan_by_tcpsk(struct socket *clcsock, unsigned short *vlan_id) +int smc_vlan_by_tcpsk(struct socket *clcsock, unsigned short *vlan_id) { struct dst_entry *dst = sk_dst_get(clcsock->sk); struct net_device *ndev; |