]> www.infradead.org Git - users/dwmw2/linux.git/commit
Merge branch 'udp-tunnel-route-lookups'
authorDavid S. Miller <davem@davemloft.net>
Mon, 16 Oct 2023 08:57:52 +0000 (09:57 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Oct 2023 08:57:52 +0000 (09:57 +0100)
commitd8118b945f03dbfcda72c273fa9b0548f73c8ce9
tree7a3fa61ef9e07cd1954083288aaf84131dbd1e39
parent3c4fe89878feb57bea6ad9f14997298fddf8dc10
parent6f19b2c136d98a84d79030b53e23d405edfdc783
Merge branch 'udp-tunnel-route-lookups'

Beniamino Galvani says:

====================
net: consolidate IPv4 route lookup for UDP tunnels

At the moment different UDP tunnels rely on different functions for
IPv4 route lookup, and those functions all implement the same
logic. Only bareudp uses the generic ip_route_output_tunnel(), while
geneve and vxlan basically duplicate it slightly differently.

This series first extends the generic lookup function so that it is
suitable for all UDP tunnel implementations. Then, bareudp, geneve and
vxlan are adapted to use them.

This results in code with less duplication and hopefully better
maintainability.

After this series is merged, IPv6 will be converted in a similar way.

Changelog:
v2
 - fix compilation with IPv6 disabled
====================

Signed-off-by: David S. Miller <davem@davemloft.net>