]> git.baikalelectronics.ru Git - kernel.git/commit
net/smc: rework pnet table
authorHans Wippel <hwippel@linux.ibm.com>
Thu, 21 Feb 2019 12:01:00 +0000 (13:01 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Feb 2019 18:34:37 +0000 (10:34 -0800)
commit55e6e986981efd06a431ac1677c09d1e7bc17059
tree96c30f50837a16f2e7deb21d2fd48eb9caf35eb8
parentfe68856b4e0e558e636522fda98ad71ff0eb3c17
net/smc: rework pnet table

If a device does not have a pnetid, users can set a temporary pnetid for
said device in the pnet table. This patch reworks the pnet table to make
it more flexible. Multiple entries with the same pnetid but differing
devices are now allowed. Additionally, the netlink interface now sends
each mapping from pnetid to device separately to the user while
maintaining the message format existing applications might expect. Also,
the SMC data structure for ib devices already has a pnetid attribute.
So, it is used to store the user defined pnetids. As a result, the pnet
table entries are only used for netdevs.

Signed-off-by: Hans Wippel <hwippel@linux.ibm.com>
Signed-off-by: Ursula Braun <ubraun@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/smc_ib.c
net/smc/smc_ib.h
net/smc/smc_pnet.c
net/smc/smc_pnet.h