]> git.baikalelectronics.ru Git - kernel.git/commit
net/smc: determine port attributes independent from pnet table
authorUrsula Braun <ubraun@linux.ibm.com>
Thu, 28 Jun 2018 17:05:04 +0000 (19:05 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 30 Jun 2018 11:42:25 +0000 (20:42 +0900)
commitcce13d06eb07aceafaa0fdf7f5f423fdab42770b
tree6611f8a48f23ad8468022b5d35d4802f713974a0
parent97dd2928f672d5fdcb89613aa21299893f8e3b37
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>
net/smc/smc.h
net/smc/smc_ib.c
net/smc/smc_ib.h
net/smc/smc_pnet.c