diff options
author | Matt Johnston <matt@codeconstruct.com.au> | 2021-07-29 05:20:52 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-07-29 17:06:50 +0300 |
commit | 03f2bbc4ee57ca53b2fa1d9caabc5006e0b8f375 (patch) | |
tree | 488ab5b5447c4a2ca15c455f56e76f7485b1ba31 /include/net/mctp.h | |
parent | 26ab3fcaf23568cc8fc06aeb9306f3544969f252 (diff) | |
download | linux-03f2bbc4ee57ca53b2fa1d9caabc5006e0b8f375.tar.xz |
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/mctp.h')
-rw-r--r-- | include/net/mctp.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/mctp.h b/include/net/mctp.h index 0a460ba185b8..54bbe042c973 100644 --- a/include/net/mctp.h +++ b/include/net/mctp.h @@ -37,6 +37,8 @@ struct mctp_hdr { #define MCTP_HEADER_MAXLEN 4 +#define MCTP_INITIAL_DEFAULT_NET 1 + static inline bool mctp_address_ok(mctp_eid_t eid) { return eid >= 8 && eid < 255; |