ipv4: rename and move ip_route_output_tunnel()
authorBeniamino Galvani <b.galvani@gmail.com>
Mon, 16 Oct 2023 07:15:20 +0000 (09:15 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Oct 2023 08:57:52 +0000 (09:57 +0100)
commitbf3fcbf7e7a08015d3b169bad6281b29d45c272d
tree0dec4c3ede0bbfbea8217ac887e4b0a0f15abb91
parent3c4fe89878feb57bea6ad9f14997298fddf8dc10
ipv4: rename and move ip_route_output_tunnel()

At the moment ip_route_output_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_tunnel_dst_lookup() and move it to file
net/ipv4/udp_tunnel_core.c.

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/route.h
include/net/udp_tunnel.h
net/ipv4/route.c
net/ipv4/udp_tunnel_core.c