Message ID | 20250328095826.706221-1-nicolas.dichtel@6wind.com (mailing list archive) |
---|---|
State | Accepted |
Commit | e4e55167d004c01abbdac164bd01d1a5177bfa0d |
Delegated to: | David Ahern |
Headers | show |
Series | [iproute2] ip: display the 'netns-immutable' property | expand |
Context | Check | Description |
---|---|---|
netdev/tree_selection | success | Not a local patch |
Hello: This patch was applied to iproute2/iproute2-next.git (main) by David Ahern <dsahern@kernel.org>: On Fri, 28 Mar 2025 10:58:26 +0100 you wrote: > The user needs to specify '-details' to have it. > > Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com> > --- > ip/ipaddress.c | 5 +++++ > 1 file changed, 5 insertions(+) Here is the summary with links: - [iproute2] ip: display the 'netns-immutable' property https://git.kernel.org/pub/scm/network/iproute2/iproute2-next.git/commit/?id=e4e55167d004 You are awesome, thank you!
Hello, Le 01/04/2025 à 05:40, patchwork-bot+netdevbpf@kernel.org a écrit : > Hello: > > This patch was applied to iproute2/iproute2-next.git (main) > by David Ahern <dsahern@kernel.org>: Thanks for applying this patch. Note that the attribute IFLA_NETNS_IMMUTABLE will be available in the 6.15 release. Regards, Nicolas > > On Fri, 28 Mar 2025 10:58:26 +0100 you wrote: >> The user needs to specify '-details' to have it. >> >> Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com> >> --- >> ip/ipaddress.c | 5 +++++ >> 1 file changed, 5 insertions(+) > > Here is the summary with links: > - [iproute2] ip: display the 'netns-immutable' property > https://git.kernel.org/pub/scm/network/iproute2/iproute2-next.git/commit/?id=e4e55167d004 > > You are awesome, thank you!
diff --git a/ip/ipaddress.c b/ip/ipaddress.c index 70b3d513e510..91d78874699b 100644 --- a/ip/ipaddress.c +++ b/ip/ipaddress.c @@ -1182,6 +1182,11 @@ int print_linkinfo(struct nlmsghdr *n, void *arg) "max_mtu", "maxmtu %u ", rta_getattr_u32(tb[IFLA_MAX_MTU])); + if (tb[IFLA_NETNS_IMMUTABLE] && + rta_getattr_u8(tb[IFLA_NETNS_IMMUTABLE])) + print_bool(PRINT_ANY, "netns-immutable", "netns-immutable ", + true); + if (tb[IFLA_LINKINFO]) print_linktype(fp, tb[IFLA_LINKINFO]);
The user needs to specify '-details' to have it. Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com> --- ip/ipaddress.c | 5 +++++ 1 file changed, 5 insertions(+)