]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbad82cbbc55e2e68da734f567a46adf11dc14849
tree1a06b12df1f9c1e536477a1bf2b7ff9f8b6e0755
parentaabd7e7ab3b6bc7ab31930a5e9d2264862fccdbd
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