Re: [PATCH net-next 1/7] ipv4: rename and move ip_route_output_tunnel()

David Ahern
2023-10-11T18:51:05Z

On 10/9/23 2:20 AM, Beniamino Galvani wrote:
> 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>
> ---
> drivers/net/bareudp.c | 8 +++----
> include/net/route.h | 6 -----
> include/net/udp_tunnel.h | 6 +++++
> net/ipv4/route.c | 48 --------------------------------------
> net/ipv4/udp_tunnel_core.c | 48 ++++++++++++++++++++++++++++++++++++++
> 5 files changed, 58 insertions(+), 58 deletions(-)
>

Reviewed-by: David Ahern <dsahern@kernel.org>