Skip to content

net: consolidate IPv6 route lookup for UDP tunnels

Beniamino Galvani lkml netdev 1 version Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 5 repliesApplied 5/5

Patches in v1 All 5 applied

#Subject and filesSizeRepliesApplied
1/5ipv6: rename and move ip6_dst_lookup_tunnel()drivers/net/bareudp.c include/net/ipv6.h include/net/udp_tunnel.h +2 more+81 -791 replyApplied
2/5ipv6: remove "proto" argument from udp_tunnel6_dst_lookup()drivers/net/bareudp.c include/net/udp_tunnel.h net/ipv6/ip6_udp_tunnel.c+4 -71 replyApplied
3/5ipv6: add new arguments to udp_tunnel6_dst_lookup()drivers/net/bareudp.c include/net/udp_tunnel.h net/ipv6/ip6_udp_tunnel.c+29 -211 replyApplied
4/5geneve: use generic function for tunnel IPv6 route lookupdrivers/net/geneve.c+31 -651 replyApplied
5/5vxlan: use generic function for tunnel IPv6 route lookupdrivers/net/vxlan/vxlan_core.c+30 -1061 replyApplied

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchDavid Ahern
1/5R-b
2/5R-b
3/5R-b
4/5R-b
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH net-next 0/5] net: consolidate IPv6 route lookup for UDP tunnels

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(-)
Signature · 1 line
2.40.1