]> git.baikalelectronics.ru Git - kernel.git/commit
net: sit: Update lookup to handle links set to L3 slave
authorDavid Ahern <dsahern@gmail.com>
Mon, 30 Oct 2017 17:07:17 +0000 (10:07 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 Nov 2017 03:35:17 +0000 (12:35 +0900)
commit10df8050d8b00b0c1ae34bf17e8e952fe7472b05
treea84c4262e106f4565587d3853a74432983a966b4
parent106a5e2c29f2c31df633d73ab5e50b34213d2f5a
net: sit: Update lookup to handle links set to L3 slave

Using SIT tunnels with VRFs works fine if the underlay device is in a
VRF and the link parameter is set to the VRF device. e.g.,

    ip tunnel add jtun mode sit remote <addr> local <addr> dev myvrf

Update the device check to allow the link to be the enslaved device as
well. e.g.,

    ip tunnel add jtun mode sit remote <addr> local <addr> dev eth4

where eth4 is enslaved to myvrf.

Reported-by: Jeff Barnhill <0xeffeff@gmail.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/sit.c