netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC]: raw packet filtering via tc-flower
@ 2024-02-21 19:43 Ahmed Zaki
  2024-02-23  2:40 ` Jakub Kicinski
  0 siblings, 1 reply; 11+ messages in thread
From: Ahmed Zaki @ 2024-02-21 19:43 UTC (permalink / raw)
  To: stephen, davem, edumazet, pabeni, Jakub Kicinski, corbet, jhs,
	xiyou.wangcong, jiri
  Cc: netdev, Chittim, Madhu, Samudrala, Sridhar, amritha.nambiar,
	Jan Sokolowski

Hello,

Following on the discussion in [1] regarding raw packet filtering via 
ethtool and ntuple. To recap, we wanted to enable the user to offload 
filtering and flow direction using binary patterns of extended lengths 
and masks (e.g. 512 bytes). The conclusion was that ethtool and ntuple 
are deemed legacy and are not the best approach.

After some internal discussions, tc-flower seems to be another 
possibility. In [2], the skbedit and queue-mapping is now supported on 
the rx and the user can offload flow direction to a specific rx queue.

Can we extend tc-flower to support raw packet filtering, for example:

# tc filter add dev $IFACE ingress protocol 802_3 flower \
    offset $OFF pattern $BYTES mask $MASK \
    action skbedit queue_mapping $RXQ_ID skip_sw

where offset, pattern and mask are new the flower args, $BYTES and $MASK 
could be up to 512 bytes.

Any feedback is welcome.

Thank you,
Ahmed


1: 
https://lore.kernel.org/netdev/459ef75b-69dc-4baa-b7e4-6393b0b358ce@intel.com/ 


2: 
https://lore.kernel.org/netdev/166633911976.52141.3907831602027668289.stgit@anambiarhost.jf.intel.com/

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2024-02-27 15:25 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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).