iplink: hsr: add protocol version to print_opt output
Subsystems (2)
PATCH 1/1 iplink: hsr: add protocol version to print_opt output
Since this attribute is now exposed by kernel in net-next[1], let's also add it here, so that it can be inspected from userspace.
[1] https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/commit/?id=16a2206354d1
Signed-off-by Jan Vaclav <[email protected]>
--- ip/iplink_hsr.c | 3 +++ 1 file changed, 3 insertions(+)
ip/iplink_hsr.c +3 -0
@@ -165,6 +165,9 @@ static void hsr_print_opt(struct link_util *lu, FILE *f, struct rtattr *tb[])if (tb[IFLA_HSR_PROTOCOL ])print_hhu (PRINT_ANY ,"proto" ,"proto %hhu " ,rta_getattr_u8 (tb[IFLA_HSR_PROTOCOL ])); +if (tb[IFLA_HSR_VERSION ]) +print_hhu (PRINT_ANY ,"version" ,"version %hhu " , +rta_getattr_u8 (tb[IFLA_HSR_VERSION ])); } static void hsr_print_help(struct link_util *lu, int argc, char **argv,
Signature · 1 line
2.51.0
This patch was applied to iproute2/iproute2-next.git (main) by David Ahern <[email protected]>:
Hello:
This patch was applied to iproute2/iproute2-next.git (main) by David Ahern <[email protected]>:
Quoted 9 lines · On Mon, 27 Oct 2025 14:52:06 +0100 you wrote:
Since this attribute is now exposed by kernel in net-next[1], let's also add it here, so that it can be inspected from userspace.
[1] https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/commit/?id=16a2206354d1
Signed-off-by Jan Vaclav <[email protected]>[...]
Here is the summary with links:
- [iproute2-next] iplink: hsr: add protocol version to print_opt output
https://git.kernel.org/pub/scm/network/iproute2/iproute2-next.git/commit/?id=d6bf24a06053
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html