mctp: Allow per-netns default networks
authorMatt Johnston <matt@codeconstruct.com.au>
Thu, 29 Jul 2021 02:20:52 +0000 (10:20 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 29 Jul 2021 14:06:50 +0000 (15:06 +0100)
commit03f2bbc4ee57ca53b2fa1d9caabc5006e0b8f375
tree488ab5b5447c4a2ca15c455f56e76f7485b1ba31
parent26ab3fcaf23568cc8fc06aeb9306f3544969f252
mctp: Allow per-netns default networks

Currently we have a compile-time default network
(MCTP_INITIAL_DEFAULT_NET). This change introduces a default_net field
on the net namespace, allowing future configuration for new interfaces.

Signed-off-by: Matt Johnston <matt@codeconstruct.com.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/mctp.h
include/net/netns/mctp.h
include/uapi/linux/mctp.h
net/mctp/af_mctp.c
net/mctp/device.c
net/mctp/route.c