]> git.baikalelectronics.ru Git - kernel.git/commit
bridge: Export multicast enabled state
authorIdo Schimmel <idosch@mellanox.com>
Fri, 26 May 2017 06:37:24 +0000 (08:37 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 May 2017 19:18:44 +0000 (15:18 -0400)
commit40e2a872fa175b5e53e44429103dc78cf6a1d921
tree40b8cad55422d227854490ca6442e2382757cb87
parent4926edf96753b81d8247bbcd358ed72d9b83a071
bridge: Export multicast enabled state

During enslavement to a bridge, after the CHANGEUPPER is sent, the
multicast enabled state of the bridge isn't propagated down to the
offloading driver unless it's changed.

This patch allows such drivers to query the multicast enabled state from
the bridge, so that they'll be able to correctly configure their flood
tables during port enslavement.

In case multicast is disabled, unregistered multicast packets can be
treated as broadcast and be flooded through all the bridge ports.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/if_bridge.h
net/bridge/br_multicast.c