tc: flower: Update dest UDP port documentation

Since 41aa17ff46 ("tc/cls_flower: Add dest UDP port to tunnel params")
tc flower supports setting the dest UDP port.

* Use "port_number" to be consistent with other man-page text
* Re-add "enc_dst_port" documentation to manpage which was
  accidently removed by b2a1f740aa ("tc: flower: document that *_ip
  parameters take a PREFIX as an argument.")

Cc: Hadar Hen Zion <hadarh@mellanox.com>
Signed-off-by: Simon Horman <simon.horman@netronome.com>
This commit is contained in:
Simon Horman 2017-01-04 12:02:18 +01:00 committed by Stephen Hemminger
parent e467a283b1
commit a5ae170ed8
2 changed files with 4 additions and 2 deletions

View File

@ -40,7 +40,7 @@ flower \- flow based traffic control filter
.BR enc_dst_ip " | " enc_src_ip " } { " .BR enc_dst_ip " | " enc_src_ip " } { "
.IR ipv4_address " | " ipv6_address " } | " .IR ipv4_address " | " ipv6_address " } | "
.B enc_dst_port .B enc_dst_port
.IR UDP-PORT " | " .IR port_number
.SH DESCRIPTION .SH DESCRIPTION
The The
.B flower .B flower
@ -136,6 +136,8 @@ which have to be specified in beforehand.
.BI enc_dst_ip " PREFIX" .BI enc_dst_ip " PREFIX"
.TQ .TQ
.BI enc_src_ip " PREFIX" .BI enc_src_ip " PREFIX"
.TQ
.BI enc_dst_port " NUMBER"
Match on IP tunnel metadata. Key id Match on IP tunnel metadata. Key id
.I NUMBER .I NUMBER
is a 32 bit tunnel key id (e.g. VNI for VXLAN tunnel). is a 32 bit tunnel key id (e.g. VNI for VXLAN tunnel).

View File

@ -58,7 +58,7 @@ static void explain(void)
" enc_src_ip [ IPV4-ADDR | IPV6-ADDR ] |\n" " enc_src_ip [ IPV4-ADDR | IPV6-ADDR ] |\n"
" enc_key_id [ KEY-ID ] |\n" " enc_key_id [ KEY-ID ] |\n"
" matching_flags MATCHING-FLAGS | \n" " matching_flags MATCHING-FLAGS | \n"
" enc_dst_port [ UDP-PORT ] }\n" " enc_dst_port [ port_number ] }\n"
" FILTERID := X:Y:Z\n" " FILTERID := X:Y:Z\n"
" MASKED_LLADDR := { LLADDR | LLADDR/MASK | LLADDR/BITS }\n" " MASKED_LLADDR := { LLADDR | LLADDR/MASK | LLADDR/BITS }\n"
" ACTION-SPEC := ... look at individual actions\n" " ACTION-SPEC := ... look at individual actions\n"