]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd2fb07e14e1d85eecf7a8ccb2145f58a3025d328
treed90ff2e8ba3cb962dd7ea451fdf7fe2a652ad516
parent5272f450dc12a49302f97d9e48c92849a757f5fd
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