From: "Nambiar, Amritha" <amritha.nambiar@intel.com>
To: Cong Wang <xiyou.wangcong@gmail.com>, David Miller <davem@davemloft.net>
Cc: Linux Kernel Network Developers <netdev@vger.kernel.org>,
Jakub Kicinski <jakub.kicinski@netronome.com>,
sridhar.samudrala@intel.com, Jamal Hadi Salim <jhs@mojatatu.com>,
Jiri Pirko <jiri@resnulli.us>
Subject: Re: [net-next PATCH] net: sched: cls_flower: Classify packets using port ranges
Date: Thu, 18 Oct 2018 00:22:15 -0700 [thread overview]
Message-ID: <9100e57f-0520-0ff8-b091-e81d5aeb9a27@intel.com> (raw)
In-Reply-To: <CAM_iQpWzzdnoo6JZPxSX8hnSqaEuH9RYk4CJbCK_FWPdBg1Ekw@mail.gmail.com>
On 10/17/2018 10:41 PM, Cong Wang wrote:
> On Wed, Oct 17, 2018 at 9:42 PM David Miller <davem@davemloft.net> wrote:
>>
>> From: Amritha Nambiar <amritha.nambiar@intel.com>
>> Date: Fri, 12 Oct 2018 06:53:30 -0700
>>
>>> Added support in tc flower for filtering based on port ranges.
>>> This is a rework of the RFC patch at:
>>> https://patchwork.ozlabs.org/patch/969595/
>>
>> You never addressed Cong's feedback asking you to explain why this
>> can't be simply built using existing generic filtering facilities that
>> exist already.
>>
>> I appreciate that you addressed Jiri's feedback, but Cong's feedback is
>> just as, if not more, important.
>>
>
> My objection is against introducing a new filter just for port range, now
> it is built on top of flower filter, so it is much better now.
>
> u32 filter can do the nearly same, but requires a power-of-two, so it is
> not completely duplicated.
>
> Therefore, I think the idea of building it on top of flower is fine. But I don't
> read into any code, only the description.
>
> Thanks!
>
Sorry for not clarifying it out, this reworked patch addresses both
Jiri's and Cong's concerns. The previous RFC patch introduced a new
special-purpose classifier called 'range' for port-range based
filtering, that as Cong pointed out had overlaps with other existing
classifiers. The reason I added a new classifier was because u32 does
not support ranges that are not power-of-2 and flower uses mask-key
based rhashtable lookup which was not suited for range based keys. Based
on the feedback for the RFC, this patch adds port-range support to
cls_flower by separating out range comparison from the rhashtable
lookup. Since this adds to cls_flower, overlaps with other
general-purpose classifiers are avoided.
-Amritha
next prev parent reply other threads:[~2018-10-18 15:21 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-12 13:53 [net-next PATCH] net: sched: cls_flower: Classify packets using port ranges Amritha Nambiar
2018-10-18 4:42 ` David Miller
2018-10-18 5:41 ` Cong Wang
2018-10-18 7:22 ` Nambiar, Amritha [this message]
2018-10-18 12:17 ` Jiri Pirko
2018-10-18 18:24 ` Nambiar, Amritha
2018-10-19 8:52 ` Jiri Pirko
2018-11-08 1:52 ` Nambiar, Amritha
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=9100e57f-0520-0ff8-b091-e81d5aeb9a27@intel.com \
--to=amritha.nambiar@intel.com \
--cc=davem@davemloft.net \
--cc=jakub.kicinski@netronome.com \
--cc=jhs@mojatatu.com \
--cc=jiri@resnulli.us \
--cc=netdev@vger.kernel.org \
--cc=sridhar.samudrala@intel.com \
--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).