]> git.baikalelectronics.ru Git - kernel.git/commit
bridge: export knowledge about the presence of IGMP/MLD queriers
authorLinus Lüssing <linus.luessing@web.de>
Mon, 7 Jul 2014 03:41:17 +0000 (05:41 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 8 Jul 2014 23:12:53 +0000 (16:12 -0700)
commitc830e0a9683ab859d966a25be25eb6516eaf98af
treed4247dfb6ac918beb7b515cac71c6f334635a486
parent562383815b10c889484bba4a3bbb1020e790c918
bridge: export knowledge about the presence of IGMP/MLD queriers

With this patch other modules are able to ask the bridge whether an
IGMP or MLD querier exists on the according, bridged link layer.

Multicast snooping can only be performed if a valid, selected querier
exists on a link.

Just like the bridge only enables its multicast snooping if a querier
exists, e.g. batman-adv too can only activate its multicast
snooping in bridged scenarios if a querier is present.

For instance this export avoids having to reimplement IGMP/MLD
querier message snooping and parsing in e.g. batman-adv, when
multicast optimizations for bridged scenarios are added in the
future.

Signed-off-by: Linus Lüssing <linus.luessing@web.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/if_bridge.h
net/bridge/br_multicast.c