netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jiri Pirko <jiri@resnulli.us>
To: Edward Cree <ecree.xilinx@gmail.com>
Cc: Ahmed Zaki <ahmed.zaki@intel.com>,
	stephen@networkplumber.org, davem@davemloft.net,
	edumazet@google.com, pabeni@redhat.com, corbet@lwn.net,
	jhs@mojatatu.com, xiyou.wangcong@gmail.com,
	netdev@vger.kernel.org, "Chittim,
	Madhu" <madhu.chittim@intel.com>,
	"Samudrala, Sridhar" <sridhar.samudrala@intel.com>,
	amritha.nambiar@intel.com,
	Jan Sokolowski <jan.sokolowski@intel.com>,
	Jakub Kicinski <kuba@kernel.org>
Subject: Re: [RFC]: raw packet filtering via tc-flower
Date: Fri, 23 Feb 2024 13:22:54 +0100	[thread overview]
Message-ID: <ZdiOHpbYB3Ebwub5@nanopsycho> (raw)
In-Reply-To: <b4ed432e-6e76-8f1b-c5ea-8f19ba610ef3@gmail.com>

Fri, Feb 23, 2024 at 01:07:06PM CET, ecree.xilinx@gmail.com wrote:
>On 23/02/2024 09:51, Jiri Pirko wrote:
>> Hmm, but why flower can't be extended this direction. I mean, it is very
>> convenient to match on well-defined fields.
>
>Flower is intrinsically tied to the flow dissector, both conceptually
> and in implementation.  I'm not sure it's appropriate for it to become
> a dumping ground for random vendor filtering extensions/capabilities.

Nope, the extension of dissector would be clean, one timer. Just add
support for offset+len based dissection. Also, the fact that flower uses
flow_dissector is only because DaveM requested that back in the days I
pushed flower. The original implementation was not using flow_dissector.
The dissection backing should not block flower extension. We can always
replace it if needed and convenient (maybe the criteria is met already).


>
>> U32 is, well, not that convenient.
>
>How about a new classifier that just does this raw matching?

That's u32 basically, isn't it?


>
>> I can imagine that the
>> combination of match on well-defined fields and random chunks together
>> is completely valid use-case.
>
>But is it likely to be something that hardware supports?  (Since the

Yeah, I know couple of ASICs that support this, driver names are mlx5
and mlxsw :)


> motivation for this feature is clearly the hardware offload — otherwise
> there are other mechanisms like BPF for arbitrary packet filtering.)
>
>As the vendor behind this, one hopes Intel can comment on both the
> hardware and the use-case side of this question.

  reply	other threads:[~2024-02-23 12:22 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-21 19:43 [RFC]: raw packet filtering via tc-flower Ahmed Zaki
2024-02-23  2:40 ` Jakub Kicinski
2024-02-23  9:51   ` Jiri Pirko
2024-02-23 12:07     ` Edward Cree
2024-02-23 12:22       ` Jiri Pirko [this message]
2024-02-23 12:36         ` Edward Cree
2024-02-23 13:32           ` Jamal Hadi Salim
2024-02-23 13:44             ` Edward Cree
2024-02-26 14:40               ` Ahmed Zaki
2024-02-26 15:03                 ` Jakub Kicinski
2024-02-27 15:25                   ` Jamal Hadi Salim

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=ZdiOHpbYB3Ebwub5@nanopsycho \
    --to=jiri@resnulli.us \
    --cc=ahmed.zaki@intel.com \
    --cc=amritha.nambiar@intel.com \
    --cc=corbet@lwn.net \
    --cc=davem@davemloft.net \
    --cc=ecree.xilinx@gmail.com \
    --cc=edumazet@google.com \
    --cc=jan.sokolowski@intel.com \
    --cc=jhs@mojatatu.com \
    --cc=kuba@kernel.org \
    --cc=madhu.chittim@intel.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --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).