ipv6: rename and move ip6_dst_lookup_tunnel()
authorBeniamino Galvani <b.galvani@gmail.com>
Fri, 20 Oct 2023 11:55:25 +0000 (13:55 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 Oct 2023 07:48:57 +0000 (08:48 +0100)
commitfc47e86dbfb75a864c0c9dd8e78affb6506296bb
tree7c8e0bdd5ddcd95eacbdebc5f7e290e11987dc4a
parent92fc97ae9cfd1e8c13d973ac92d224a185056840
ipv6: rename and move ip6_dst_lookup_tunnel()

At the moment ip6_dst_lookup_tunnel() is used only by bareudp.
Ideally, other UDP tunnel implementations should use it, but to do so
the function needs to accept new parameters that are specific for UDP
tunnels, such as the ports.

Prepare for these changes by renaming the function to
udp_tunnel6_dst_lookup() and move it to file
net/ipv6/ip6_udp_tunnel.c.

This is similar to what already done for IPv4 in commit bf3fcbf7e7a0
("ipv4: rename and move ip_route_output_tunnel()").

Suggested-by: Guillaume Nault <gnault@redhat.com>
Signed-off-by: Beniamino Galvani <b.galvani@gmail.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bareudp.c
include/net/ipv6.h
include/net/udp_tunnel.h
net/ipv6/ip6_output.c
net/ipv6/ip6_udp_tunnel.c