]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit64e28b52c7a6616217bee67ba2ad886f478f9737
treedcba912220e58ca0ed6adf015b9eb7f2c7863b90
parentf3d74b2245a0e8b994f53df1d7982d367fc63dfe
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