]> git.baikalelectronics.ru Git - kernel.git/commit
ipmr: vrf: Find VIFs using the actual device
authorThomas Winter <Thomas.Winter@alliedtelesis.co.nz>
Mon, 15 May 2017 22:14:44 +0000 (10:14 +1200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 May 2017 16:52:17 +0000 (12:52 -0400)
commit87e1b04ecc3805983ebb982f222b2cb462ed60cc
treecc5fc5cf89b66a4e9078164f198f75fac38a3f9b
parent397d54fb6f75461963064a4d88770c480884b6f8
ipmr: vrf: Find VIFs using the actual device

The skb->dev that is passed into ip_mr_input is
the loX device for VRFs. When we lookup a vif
for this dev, none is found as we do not create
vifs for loopbacks. Instead lookup a vif for the
actual device that the packet was received on,
eg the vlan.

Signed-off-by: Thomas Winter <Thomas.Winter@alliedtelesis.co.nz>
cc: David Ahern <dsa@cumulusnetworks.com>
cc: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
cc: roopa <roopa@cumulusnetworks.com>
Acked-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ipmr.c