]> 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)
commit74d6be282d72111dfa633ebe97f74ec6967ae528
tree1a06b12df1f9c1e536477a1bf2b7ff9f8b6e0755
parenta312a0d71a14c662a00ae254487d8045bafdfea7
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