netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/5] net: consolidate IPv6 route lookup for UDP tunnels
@ 2023-10-20 11:55 Beniamino Galvani
  2023-10-20 11:55 ` [PATCH net-next 1/5] ipv6: rename and move ip6_dst_lookup_tunnel() Beniamino Galvani
                   ` (5 more replies)
  0 siblings, 6 replies; 12+ messages in thread
From: Beniamino Galvani @ 2023-10-20 11:55 UTC (permalink / raw)
  To: netdev
  Cc: David S . Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
	David Ahern, Guillaume Nault, linux-kernel

At the moment different UDP tunnels rely on different functions for
IPv6 route lookup, and those functions all implement the same
logic.

Extend the generic lookup function so that it is suitable for all UDP
tunnel implementations, and then adapt bareudp, geneve and vxlan to
use it.

This is similar to what already done for IPv4.

Beniamino Galvani (5):
  ipv6: rename and move ip6_dst_lookup_tunnel()
  ipv6: remove "proto" argument from udp_tunnel6_dst_lookup()
  ipv6: add new arguments to udp_tunnel6_dst_lookup()
  geneve: use generic function for tunnel IPv6 route lookup
  vxlan: use generic function for tunnel IPv6 route lookup

 drivers/net/bareudp.c          |  13 ++--
 drivers/net/geneve.c           |  96 ++++++++---------------
 drivers/net/vxlan/vxlan_core.c | 136 ++++++++-------------------------
 include/net/ipv6.h             |   6 --
 include/net/udp_tunnel.h       |   8 ++
 net/ipv6/ip6_output.c          |  68 -----------------
 net/ipv6/ip6_udp_tunnel.c      |  70 +++++++++++++++++
 7 files changed, 147 insertions(+), 250 deletions(-)

-- 
2.40.1


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

end of thread, other threads:[~2023-10-23  7:50 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-20 11:55 [PATCH net-next 0/5] net: consolidate IPv6 route lookup for UDP tunnels Beniamino Galvani
2023-10-20 11:55 ` [PATCH net-next 1/5] ipv6: rename and move ip6_dst_lookup_tunnel() Beniamino Galvani
2023-10-20 15:52   ` David Ahern
2023-10-20 11:55 ` [PATCH net-next 2/5] ipv6: remove "proto" argument from udp_tunnel6_dst_lookup() Beniamino Galvani
2023-10-20 15:52   ` David Ahern
2023-10-20 11:55 ` [PATCH net-next 3/5] ipv6: add new arguments to udp_tunnel6_dst_lookup() Beniamino Galvani
2023-10-20 15:53   ` David Ahern
2023-10-20 11:55 ` [PATCH net-next 4/5] geneve: use generic function for tunnel IPv6 route lookup Beniamino Galvani
2023-10-20 15:56   ` David Ahern
2023-10-20 11:55 ` [PATCH net-next 5/5] vxlan: " Beniamino Galvani
2023-10-20 15:58   ` David Ahern
2023-10-23  7:50 ` [PATCH net-next 0/5] net: consolidate IPv6 route lookup for UDP tunnels patchwork-bot+netdevbpf

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