OSDN Git Service

udp_tunnel: add config option to bind to a device
authorAlexis Bauvin <abauvin@scaleway.com>
Mon, 3 Dec 2018 09:54:38 +0000 (10:54 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Dec 2018 22:15:26 +0000 (14:15 -0800)
commitda5095d052860baa7fe2932fb1209628dd3e3813
tree1a06b12df1f9c1e536477a1bf2b7ff9f8b6e0755
parente3dd7627721fce191fd696d8654aa55cc20c1d6f
udp_tunnel: add config option to bind to a device

UDP tunnel sockets are always opened unbound to a specific device. This
patch allow the socket to be bound on a custom device, which
incidentally makes UDP tunnels VRF-aware if binding to an l3mdev.

Signed-off-by: Alexis Bauvin <abauvin@scaleway.com>
Reviewed-by: Amine Kherbouche <akherbouche@scaleway.com>
Tested-by: Amine Kherbouche <akherbouche@scaleway.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/udp_tunnel.h
net/ipv4/udp_tunnel.c
net/ipv6/ip6_udp_tunnel.c