From d9c4811498763f8624415b55ebebf692383618fb Mon Sep 17 00:00:00 2001 From: Andrea Claudi Date: Tue, 10 Feb 2026 17:26:22 +0100 Subject: [PATCH] iproute-6.17.0-3.el9 * Tue Feb 10 2026 Andrea Claudi - 6.17.0-3.el9 - iplink: hsr: add protocol version to print_opt output (Andrea Claudi) [RHEL-134979] Resolves: RHEL-134979 Signed-off-by: Andrea Claudi --- ...protocol-version-to-print_opt-output.patch | 48 +++++++++++++++++++ iproute.spec | 1 + 2 files changed, 49 insertions(+) create mode 100644 0005-iplink-hsr-add-protocol-version-to-print_opt-output.patch diff --git a/0005-iplink-hsr-add-protocol-version-to-print_opt-output.patch b/0005-iplink-hsr-add-protocol-version-to-print_opt-output.patch new file mode 100644 index 0000000..ca0a7cf --- /dev/null +++ b/0005-iplink-hsr-add-protocol-version-to-print_opt-output.patch @@ -0,0 +1,48 @@ +From 57b4df5f2b1c1daab5491f6cfd80f3b0f2b94880 Mon Sep 17 00:00:00 2001 +Message-ID: <57b4df5f2b1c1daab5491f6cfd80f3b0f2b94880.1770740675.git.aclaudi@redhat.com> +In-Reply-To: <7f2e9f746e820e43bafc4ecee18c33a7b6bf5d48.1770740675.git.aclaudi@redhat.com> +References: <7f2e9f746e820e43bafc4ecee18c33a7b6bf5d48.1770740675.git.aclaudi@redhat.com> +From: Andrea Claudi +Date: Tue, 10 Feb 2026 17:23:01 +0100 +Subject: [PATCH] iplink: hsr: add protocol version to print_opt output + +JIRA: https://issues.redhat.com/browse/RHEL-134979 +Upstream Status: iproute2.git commit d6bf24a060537 + +commit d6bf24a0605373346e8a6cdff5dd67e7160c5c9b +Author: Jan Vaclav +Date: Mon Oct 27 14:52:06 2025 +0100 + + 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 + Signed-off-by: David Ahern + +Signed-off-by: Andrea Claudi +--- + ip/iplink_hsr.c | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/ip/iplink_hsr.c b/ip/iplink_hsr.c +index 42adb430..d79a4a40 100644 +--- a/ip/iplink_hsr.c ++++ b/ip/iplink_hsr.c +@@ -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, +-- +2.53.0 + diff --git a/iproute.spec b/iproute.spec index 16fd8df..30de430 100644 --- a/iproute.spec +++ b/iproute.spec @@ -12,6 +12,7 @@ Patch0: 0001-lib-Move-mnlg-to-lib-for-shared-use.patch Patch1: 0002-lib-Add-str_to_bool-helper-function.patch Patch2: 0003-uapi-import-dpll.h-from-last-sync-point.patch Patch3: 0004-dpll-Add-dpll-command.patch +Patch4: 0005-iplink-hsr-add-protocol-version-to-print_opt-output.patch License: GPL-2.0-or-later AND NIST-PD BuildRequires: bison