naccyde / rpms / iproute

Forked from rpms/iproute 9 months ago
Clone

Blame SOURCES/0128-tc-flower-Fix-flower-output-for-src-and-dst-ports.patch

4aca6e
From 8d988174bf4f103837c0acda1ee7218b1debcbe6 Mon Sep 17 00:00:00 2001
4aca6e
From: Phil Sutter <psutter@redhat.com>
4aca6e
Date: Fri, 17 Mar 2017 13:24:16 +0100
4aca6e
Subject: [PATCH] tc: flower: Fix flower output for src and dst ports
4aca6e
4aca6e
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1422629
4aca6e
Upstream Status: iproute2.git commit b2141de1ad985
4aca6e
4aca6e
commit b2141de1ad98517ffecc1feb99800cd36a26fd22
4aca6e
Author: Roi Dayan <roid@mellanox.com>
4aca6e
Date:   Sun Jan 15 16:23:49 2017 +0200
4aca6e
4aca6e
    tc: flower: Fix flower output for src and dst ports
4aca6e
4aca6e
    This fix a missing use case after the introduction of enum flower_endpoint.
4aca6e
4aca6e
    Fixes: 6910d65661a3 ("tc: flower: introduce enum flower_endpoint")
4aca6e
    Signed-off-by: Roi Dayan <roid@mellanox.com>
4aca6e
    Signed-off-by: Paul Blakey <paulb@mellanox.com>
4aca6e
---
4aca6e
 tc/f_flower.c | 4 ++--
4aca6e
 1 file changed, 2 insertions(+), 2 deletions(-)
4aca6e
4aca6e
diff --git a/tc/f_flower.c b/tc/f_flower.c
4aca6e
index 0623ab6..a3178a0 100644
4aca6e
--- a/tc/f_flower.c
4aca6e
+++ b/tc/f_flower.c
4aca6e
@@ -821,10 +821,10 @@ static int flower_print_opt(struct filter_util *qu, FILE *f,
4aca6e
 			     tb[TCA_FLOWER_KEY_IPV6_SRC],
4aca6e
 			     tb[TCA_FLOWER_KEY_IPV6_SRC_MASK]);
4aca6e
 
4aca6e
-	nl_type = flower_port_attr_type(ip_proto, false);
4aca6e
+	nl_type = flower_port_attr_type(ip_proto, FLOWER_ENDPOINT_DST);
4aca6e
 	if (nl_type >= 0)
4aca6e
 		flower_print_port(f, "dst_port", tb[nl_type]);
4aca6e
-	nl_type = flower_port_attr_type(ip_proto, true);
4aca6e
+	nl_type = flower_port_attr_type(ip_proto, FLOWER_ENDPOINT_SRC);
4aca6e
 	if (nl_type >= 0)
4aca6e
 		flower_print_port(f, "src_port", tb[nl_type]);
4aca6e
 
4aca6e
-- 
4aca6e
1.8.3.1
4aca6e