]> 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)
commit2cff0fae0cd4729c891300dbac9ccb6f2dc89d01
treed90ff2e8ba3cb962dd7ea451fdf7fe2a652ad516
parentcce13d06eb07aceafaa0fdf7f5f423fdab42770b
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