OSDN Git Service

net/smc: add pnetid support
authorUrsula Braun <ubraun@linux.ibm.com>
Thu, 28 Jun 2018 17:05:05 +0000 (19:05 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 30 Jun 2018 11:42:25 +0000 (20:42 +0900)
commit0afff91c6f5ecef27715ea71e34dc2baacba1060
treed90ff2e8ba3cb962dd7ea451fdf7fe2a652ad516
parentbe6a3f38ff2a2bfd2e591fdc566940a0d4d9428c
net/smc: add pnetid support

s390 hardware supports the definition of a so-call Physical NETwork
IDentifier (short PNETID) per network device port. These PNETIDS
can be used to identify network devices that are attached to the same
physical network (broadcast domain).

On s390 try to use the PNETID of the ethernet device port used for
initial connecting, and derive the IB device port used for SMC RDMA
traffic.

On platforms without PNETID support fall back to the existing
solution of a configured pnet table.

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