bridge: mcast: add router port on PIM hello message
authorNikolay Aleksandrov <nikolay@cumulusnetworks.com>
Mon, 31 Oct 2016 12:21:05 +0000 (13:21 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 31 Oct 2016 20:18:30 +0000 (16:18 -0400)
commit91b02d3d133bbb101466325cdd9a6007cd9ec5a8
tree05987ec9f8f4c7bfcb2b29c59d89d6a4096fb86b
parent56245cae19f5ccb371fa63b09bb6b9ce7c0f1266
bridge: mcast: add router port on PIM hello message

When we receive a PIM Hello message on a port we can consider that it
has a multicast router attached, thus it is correct to add it to the
router list. The only catch is it shouldn't be considered for a querier.

Using Daniel's description:
leaf-11  leaf-12  leaf-13
       \   |    /
        bridge-1
         /    \
    host-11  host-12

 - all ports in bridge-1 are in a single vlan aware bridge
 - leaf-11 is the IGMP querier
 - leaf-13 is the PIM DR
 - host-11 TXes packets to 226.10.10.10
 - bridge-1 only forwards the 226.10.10.10 traffic out the port to
   leaf-11, it should also forward this traffic out the port to leaf-13

Suggested-by: Daniel Walton <dwalton@cumulusnetworks.com>
Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_multicast.c