netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/2] net: allow dissecting/matching tunnel control flags
@ 2024-01-31 16:13 Davide Caratti
  2024-01-31 16:13 ` [PATCH net-next 1/2] flow_dissector: add support for " Davide Caratti
  2024-01-31 16:13 ` [PATCH net-next 2/2] net/sched: cls_flower: add support for matching " Davide Caratti
  0 siblings, 2 replies; 6+ messages in thread
From: Davide Caratti @ 2024-01-31 16:13 UTC (permalink / raw)
  To: Jamal Hadi Salim, Cong Wang, Jiri Pirko, David S. Miller,
	Eric Dumazet, Jakub Kicinski, Paolo Abeni, netdev
  Cc: Marcelo Ricardo Leitner, Xin Long, Ilya Maximets

Ilya says: "for correct matching on decapsulated packets, we should match
on not only tunnel id and headers, but also on tunnel configuration flags
like TUNNEL_NO_CSUM and TUNNEL_DONT_FRAGMENT. This is done to distinguish
similar tunnels with slightly different configs. And it is important since
tunnel configuration is flow based, i.e. can be different for every packet,
even though the main tunnel port is the same."

 - patch 1 extends the kernel's flow dissector to extract these flags
   from the packet's tunnel metadata.
 - patch 2 extends TC flower tomatch on any combination of TUNNEL_NO_CSUM,
   TUNNEL_OAM and TUNNEL_DONT_FRAGMENT.

Davide Caratti (2):
  flow_dissector: add support for tunnel control flags
  net/sched: cls_flower: add support for matching tunnel control flags

 include/net/flow_dissector.h | 11 +++++++++
 include/uapi/linux/pkt_cls.h |  3 +++
 net/core/flow_dissector.c    | 13 ++++++++++-
 net/sched/cls_flower.c       | 45 ++++++++++++++++++++++++++++++++++++
 4 files changed, 71 insertions(+), 1 deletion(-)

-- 
2.43.0


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

end of thread, other threads:[~2024-02-01 14:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-31 16:13 [PATCH net-next 0/2] net: allow dissecting/matching tunnel control flags Davide Caratti
2024-01-31 16:13 ` [PATCH net-next 1/2] flow_dissector: add support for " Davide Caratti
2024-01-31 16:13 ` [PATCH net-next 2/2] net/sched: cls_flower: add support for matching " Davide Caratti
2024-01-31 21:13   ` Jamal Hadi Salim
2024-02-01 11:14     ` Davide Caratti
2024-02-01 14:59       ` 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).