]> git.baikalelectronics.ru Git - kernel.git/commit
net/ipv4/udp_tunnel: prefer SO_BINDTOIFINDEX over SO_BINDTODEVICE
authorDavid Herrmann <dh.herrmann@gmail.com>
Tue, 15 Jan 2019 13:42:15 +0000 (14:42 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Jan 2019 22:55:52 +0000 (14:55 -0800)
commit471fa79ddd687db2e280cdc1ec3a65d899bf6433
tree0684471890b3c11f637d78603dfd9a13880fabb4
parent4bd7cf2ae2e73510aa76244e0daa6bccb2441f5d
net/ipv4/udp_tunnel: prefer SO_BINDTOIFINDEX over SO_BINDTODEVICE

The udp-tunnel setup allows binding sockets to a network device. Prefer
the new SO_BINDTOIFINDEX to avoid temporarily resolving the device-name
just to look it up in the ioctl again.

Reviewed-by: Tom Gundersen <teg@jklm.no>
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/udp_tunnel.c