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)
commitbcfc7d33110b0f33069d74138eeb7ca9acbb3c85
treecc5fc5cf89b66a4e9078164f198f75fac38a3f9b
parentbafbb9c73241760023d8981191ddd30bb1c6dbac
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