naccyde / rpms / iproute

Forked from rpms/iproute 5 months ago
Clone

Blame SOURCES/0010-ip-link-xstats-fix-TX-IGMP-reports-string.patch

359b1d
From 28a6ef808bd5c196c2259f7841a97c1ba703479d Mon Sep 17 00:00:00 2001
359b1d
From: Andrea Claudi <aclaudi@redhat.com>
359b1d
Date: Thu, 30 Apr 2020 12:32:41 +0200
359b1d
Subject: [PATCH] ip link: xstats: fix TX IGMP reports string
359b1d
359b1d
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1796041
359b1d
Upstream Status: iproute2.git commit 5cdeb77cd6ec2
359b1d
359b1d
commit 5cdeb77cd6ec26f0a7103dfb21494a6a43903206
359b1d
Author: Andrea Claudi <aclaudi@redhat.com>
359b1d
Date:   Wed Jan 29 15:31:11 2020 +0100
359b1d
359b1d
    ip link: xstats: fix TX IGMP reports string
359b1d
359b1d
    This restore the string format we have before jsonification, adding a
359b1d
    missing space between v2 and v3 on TX IGMP reports string.
359b1d
359b1d
    Fixes: a9bc23a79227a ("ip: bridge: add xstats json support")
359b1d
    Signed-off-by: Andrea Claudi <aclaudi@redhat.com>
359b1d
    Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
359b1d
---
359b1d
 ip/iplink_bridge.c | 2 +-
359b1d
 1 file changed, 1 insertion(+), 1 deletion(-)
359b1d
359b1d
diff --git a/ip/iplink_bridge.c b/ip/iplink_bridge.c
359b1d
index 06f736d4dc710..868ea6e266ebe 100644
359b1d
--- a/ip/iplink_bridge.c
359b1d
+++ b/ip/iplink_bridge.c
359b1d
@@ -742,7 +742,7 @@ static void bridge_print_stats_attr(struct rtattr *attr, int ifindex)
359b1d
 			print_string(PRINT_FP, NULL, "%-16s      ", "");
359b1d
 			print_u64(PRINT_ANY, "tx_v1", "TX: v1 %llu ",
359b1d
 				  mstats->igmp_v1reports[BR_MCAST_DIR_TX]);
359b1d
-			print_u64(PRINT_ANY, "tx_v2", "v2 %llu",
359b1d
+			print_u64(PRINT_ANY, "tx_v2", "v2 %llu ",
359b1d
 				  mstats->igmp_v2reports[BR_MCAST_DIR_TX]);
359b1d
 			print_u64(PRINT_ANY, "tx_v3", "v3 %llu\n",
359b1d
 				  mstats->igmp_v3reports[BR_MCAST_DIR_TX]);
359b1d
-- 
359b1d
2.25.4
359b1d