]> 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)
commit5272f450dc12a49302f97d9e48c92849a757f5fd
tree6611f8a48f23ad8468022b5d35d4802f713974a0
parent7c132ebcd0758133e031e31bce8e8ca4bca660a4
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