Blame SOURCES/0127-tc-flower-Update-dest-UDP-port-documentation.patch

4aca6e
From 45860a775736ee18ebb791a1431392ea18324f24 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: Update dest UDP port documentation
4aca6e
4aca6e
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1422629
4aca6e
Upstream Status: iproute2.git commit a5ae170ed87c6
4aca6e
4aca6e
commit a5ae170ed87c6a096451c7a7b94950e7befd8878
4aca6e
Author: Simon Horman <simon.horman@netronome.com>
4aca6e
Date:   Wed Jan 4 12:02:18 2017 +0100
4aca6e
4aca6e
    tc: flower: Update dest UDP port documentation
4aca6e
4aca6e
    Since 41aa17ff4668 ("tc/cls_flower: Add dest UDP port to tunnel params")
4aca6e
    tc flower supports setting the dest UDP port.
4aca6e
4aca6e
    * Use "port_number" to be consistent with other man-page text
4aca6e
    * Re-add "enc_dst_port" documentation to manpage which was
4aca6e
      accidently removed by b2a1f740aa4d ("tc: flower: document that *_ip
4aca6e
      parameters take a PREFIX as an argument.")
4aca6e
4aca6e
    Cc: Hadar Hen Zion <hadarh@mellanox.com>
4aca6e
    Signed-off-by: Simon Horman <simon.horman@netronome.com>
4aca6e
---
4aca6e
 man/man8/tc-flower.8 | 4 +++-
4aca6e
 tc/f_flower.c        | 2 +-
4aca6e
 2 files changed, 4 insertions(+), 2 deletions(-)
4aca6e
4aca6e
diff --git a/man/man8/tc-flower.8 b/man/man8/tc-flower.8
4aca6e
index 3310496..5904a9e 100644
4aca6e
--- a/man/man8/tc-flower.8
4aca6e
+++ b/man/man8/tc-flower.8
4aca6e
@@ -40,7 +40,7 @@ flower \- flow based traffic control filter
4aca6e
 .BR enc_dst_ip " | " enc_src_ip " } { "
4aca6e
 .IR ipv4_address " | " ipv6_address " } | "
4aca6e
 .B enc_dst_port
4aca6e
-.IR UDP-PORT " | "
4aca6e
+.IR port_number
4aca6e
 .SH DESCRIPTION
4aca6e
 The
4aca6e
 .B flower
4aca6e
@@ -136,6 +136,8 @@ which have to be specified in beforehand.
4aca6e
 .BI enc_dst_ip " PREFIX"
4aca6e
 .TQ
4aca6e
 .BI enc_src_ip " PREFIX"
4aca6e
+.TQ
4aca6e
+.BI enc_dst_port " NUMBER"
4aca6e
 Match on IP tunnel metadata. Key id
4aca6e
 .I NUMBER
4aca6e
 is a 32 bit tunnel key id (e.g. VNI for VXLAN tunnel).
4aca6e
diff --git a/tc/f_flower.c b/tc/f_flower.c
4aca6e
index 41d4da7..0623ab6 100644
4aca6e
--- a/tc/f_flower.c
4aca6e
+++ b/tc/f_flower.c
4aca6e
@@ -58,7 +58,7 @@ static void explain(void)
4aca6e
 		"                       enc_src_ip [ IPV4-ADDR | IPV6-ADDR ] |\n"
4aca6e
 		"                       enc_key_id [ KEY-ID ] |\n"
4aca6e
 		"                       matching_flags MATCHING-FLAGS | \n"
4aca6e
-		"                       enc_dst_port [ UDP-PORT ] }\n"
4aca6e
+		"                       enc_dst_port [ port_number ] }\n"
4aca6e
 		"       FILTERID := X:Y:Z\n"
4aca6e
 		"       MASKED_LLADDR := { LLADDR | LLADDR/MASK | LLADDR/BITS }\n"
4aca6e
 		"       ACTION-SPEC := ... look at individual actions\n"
4aca6e
-- 
4aca6e
1.8.3.1
4aca6e