From: David Ahern <dsahern@gmail.com>
To: "Nambiar, Amritha" <amritha.nambiar@intel.com>,
stephen@networkplumber.org, netdev@vger.kernel.org
Cc: jakub.kicinski@netronome.com, sridhar.samudrala@intel.com,
jhs@mojatatu.com, xiyou.wangcong@gmail.com, jiri@resnulli.us
Subject: Re: [iproute2-next PATCH v3 2/2] man: tc-flower: Add explanation for range option
Date: Tue, 20 Nov 2018 21:46:34 -0700 [thread overview]
Message-ID: <2192286d-01ff-dea2-1699-defe72f64a95@gmail.com> (raw)
In-Reply-To: <3000d314-2217-b2e6-230c-c9b41f173f2f@intel.com>
On 11/20/18 9:44 PM, Nambiar, Amritha wrote:
> On 11/20/2018 2:56 PM, David Ahern wrote:
>> On 11/15/18 5:55 PM, Amritha Nambiar wrote:
>>> Add details explaining filtering based on port ranges.
>>>
>>> Signed-off-by: Amritha Nambiar <amritha.nambiar@intel.com>
>>> ---
>>> man/man8/tc-flower.8 | 12 ++++++++++--
>>> 1 file changed, 10 insertions(+), 2 deletions(-)
>>>
>>> diff --git a/man/man8/tc-flower.8 b/man/man8/tc-flower.8
>>> index 8be8882..768bfa1 100644
>>> --- a/man/man8/tc-flower.8
>>> +++ b/man/man8/tc-flower.8
>>> @@ -56,8 +56,10 @@ flower \- flow based traffic control filter
>>> .IR MASKED_IP_TTL " | { "
>>> .BR dst_ip " | " src_ip " } "
>>> .IR PREFIX " | { "
>>> -.BR dst_port " | " src_port " } "
>>> -.IR port_number " } | "
>>> +.BR dst_port " | " src_port " } { "
>>> +.IR port_number " | "
>>> +.B range
>>> +.IR min_port_number-max_port_number " } | "
>>> .B tcp_flags
>>> .IR MASKED_TCP_FLAGS " | "
>>> .B type
>>> @@ -227,6 +229,12 @@ Match on layer 4 protocol source or destination port number. Only available for
>>> .BR ip_proto " values " udp ", " tcp " and " sctp
>>> which have to be specified in beforehand.
>>> .TP
>>> +.BI range " MIN_VALUE-MAX_VALUE"
>>> +Match on a range of layer 4 protocol source or destination port number. Only
>>> +available for
>>> +.BR ip_proto " values " udp ", " tcp " and " sctp
>>> +which have to be specified in beforehand.
>>> +.TP
>>> .BI tcp_flags " MASKED_TCP_FLAGS"
>>> Match on TCP flags represented as 12bit bitfield in in hexadecimal format.
>>> A mask may be optionally provided to limit the bits which are matched. A mask
>>>
>>
>> This prints as:
>>
>> dst_port NUMBER
>> src_port NUMBER
>> Match on layer 4 protocol source or destination port number.
>> Only available for ip_proto values udp, tcp and sctp which have
>> to be specified in beforehand.
>>
>> range MIN_VALUE-MAX_VALUE
>> Match on a range of layer 4 protocol source or destination port
>> number. Only available for ip_proto values udp, tcp and sctp
>> which have to be specified in beforehand.
>>
>> ###
>>
>> That makes it look like range is a standalone option - independent of
>> dst_port/src_port.
>>
>> It seems to me the dst_port / src_port should be updated to:
>>
>> dst_port {NUMBER | range MIN_VALUE-MAX_VALUE}
>>
>> with the description updated for both options and indented under
>> dst_port / src_port
>>
>
> Okay, will do.
>
Thinking about this perhaps the 'range' keyword can just be dropped. We
do not use it in other places -- e.g., ip rule.
next prev parent reply other threads:[~2018-11-21 15:19 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-16 0:55 [iproute2-next PATCH v3 1/2] tc: flower: Classify packets based port ranges Amritha Nambiar
2018-11-16 0:55 ` [iproute2-next PATCH v3 2/2] man: tc-flower: Add explanation for range option Amritha Nambiar
2018-11-20 22:56 ` David Ahern
2018-11-21 4:44 ` Nambiar, Amritha
2018-11-21 4:46 ` David Ahern [this message]
2018-11-21 4:59 ` Nambiar, Amritha
2018-11-21 4:59 ` David Ahern
2018-11-21 5:16 ` Nambiar, Amritha
2018-11-21 8:50 ` Jiri Pirko
2018-11-18 19:30 ` [iproute2-next PATCH v3 1/2] tc: flower: Classify packets based port ranges Jiri Pirko
2018-11-20 23:00 ` David Ahern
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2192286d-01ff-dea2-1699-defe72f64a95@gmail.com \
--to=dsahern@gmail.com \
--cc=amritha.nambiar@intel.com \
--cc=jakub.kicinski@netronome.com \
--cc=jhs@mojatatu.com \
--cc=jiri@resnulli.us \
--cc=netdev@vger.kernel.org \
--cc=sridhar.samudrala@intel.com \
--cc=stephen@networkplumber.org \
--cc=xiyou.wangcong@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).