net: igmp: Use ingress interface rather than vrf device
authorDavid Ahern <dsahern@gmail.com>
Wed, 16 Aug 2017 01:38:42 +0000 (18:38 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Aug 2017 18:08:55 +0000 (11:08 -0700)
commitc7b725be84985532161bcb4fbecd056326998a77
tree5fbf9704e6a8b721a622d66d200ae973d2e32d44
parent510c8a899caf095cb13d09d203573deef15db2fe
net: igmp: Use ingress interface rather than vrf device

Anuradha reported that statically added groups for interfaces enslaved
to a VRF device were not persisting. The problem is that igmp queries
and reports need to use the data in the in_dev for the real ingress
device rather than the VRF device. Update igmp_rcv accordingly.

Fixes: e58e41596811 ("net: Enable support for VRF with ipv4 multicast")
Reported-by: Anuradha Karuppiah <anuradhak@cumulusnetworks.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
Reviewed-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/igmp.c