diff options
author | Matt Johnston | 2021-07-29 10:20:52 +0800 |
---|---|---|
committer | David S. Miller | 2021-07-29 15:06:50 +0100 |
commit | 03f2bbc4ee57ca53b2fa1d9caabc5006e0b8f375 (patch) | |
tree | 488ab5b5447c4a2ca15c455f56e76f7485b1ba31 /include/net/netns | |
parent | 26ab3fcaf23568cc8fc06aeb9306f3544969f252 (diff) |
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>
Diffstat (limited to 'include/net/netns')
-rw-r--r-- | include/net/netns/mctp.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/netns/mctp.h b/include/net/netns/mctp.h index 14ae6d37e52a..acedef12a35e 100644 --- a/include/net/netns/mctp.h +++ b/include/net/netns/mctp.h @@ -25,6 +25,9 @@ struct netns_mctp { spinlock_t keys_lock; struct hlist_head keys; + /* MCTP network */ + unsigned int default_net; + /* neighbour table */ struct mutex neigh_lock; struct list_head neighbours; |