net/ipv6/udp_tunnel: prefer SO_BINDTOIFINDEX over SO_BINDTODEVICE
authorDavid Herrmann <dh.herrmann@gmail.com>
Tue, 15 Jan 2019 13:42:16 +0000 (14:42 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Jan 2019 22:55:52 +0000 (14:55 -0800)
commit49b4994c14010b851351f20f33d8660311aaa86e
treecf11a435c75fc4358527d40daf747e2e363db5ba
parent2eadee72dbb8de37585a1ee63823c8495454ffa4
net/ipv6/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/ipv6/ip6_udp_tunnel.c