OSDN Git Service

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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 13 Apr 2018 17:47:59 +0000 (19:47 +0200)
commitc4eca7ee0ed886529c6446bad7fb5ead5e8129d6
tree6a059c6bf1652068f9df92227d54c304dac19a9d
parent088c77a8005bf839bbf3ae2882a48dd87cf2a4c4
ipmr: vrf: Find VIFs using the actual device

[ Upstream commit bcfc7d33110b0f33069d74138eeb7ca9acbb3c85 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv4/ipmr.c