summaryrefslogtreecommitdiffstats
path: root/net/smc/smc.h
diff options
context:
space:
mode:
authorUrsula Braun <ubraun@linux.ibm.com>2018-06-28 19:05:04 +0200
committerDavid S. Miller <davem@davemloft.net>2018-06-30 13:42:25 +0200
commitbe6a3f38ff2a2bfd2e591fdc566940a0d4d9428c (patch)
tree6611f8a48f23ad8468022b5d35d4802f713974a0 /net/smc/smc.h
parentMerge branch 'Fixes-for-running-mirror-to-gretap-tests-on-veth' (diff)
downloadlinux-be6a3f38ff2a2bfd2e591fdc566940a0d4d9428c.tar.xz
linux-be6a3f38ff2a2bfd2e591fdc566940a0d4d9428c.zip
net/smc: determine port attributes independent from pnet table
For SMC it is important to know the current port state of RoCE devices. Monitoring port states has been triggered, when a RoCE device was added to the pnet table. To support future alternatives to the pnet table the monitoring of ports is made independent of the existence of a pnet table. It starts once the smc_ib_device is established. Due to this change smc_ib_remember_port_attr() is now a local function and shuffling its location and the location of its used functions makes any forward references obsolete. And the duplicate SMC_MAX_PORTS definition is removed. Signed-off-by: Ursula Braun <ubraun@linux.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/smc/smc.h')
-rw-r--r--net/smc/smc.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/net/smc/smc.h b/net/smc/smc.h
index 51ae1f10d81a..7c86f716a92e 100644
--- a/net/smc/smc.h
+++ b/net/smc/smc.h
@@ -21,8 +21,6 @@
#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;