]> git.baikalelectronics.ru Git - kernel.git/commit
net/smc: add pnet table namespace support
authorHans Wippel <hwippel@linux.ibm.com>
Thu, 21 Feb 2019 12:01:02 +0000 (13:01 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Feb 2019 18:34:37 +0000 (10:34 -0800)
commite5a90bd319b8f2a0dbb2dbfc8eeb79c13ddc8f07
treedcba912220e58ca0ed6adf015b9eb7f2c7863b90
parent11c565619e08902a66e1490df46cd93638c29ae8
net/smc: add pnet table namespace support

This patch adds namespace support to the pnet table code. Each network
namespace gets its own pnet table. Infiniband and smcd device pnetids
can only be modified in the initial namespace. In other namespaces they
can still be used as if they were set by the underlying hardware.

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/af_smc.c
net/smc/smc_netns.h [new file with mode: 0644]
net/smc/smc_pnet.c
net/smc/smc_pnet.h