net: bridge: propagate safe mcast snooping to switchdev + DSA
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest5 patches 3 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | net: bridge: mcast: explicitly track active statenet/ net/ net/ +1 more | +180 | 1 reply | |
| 2/5 | net: bridge: mcast: export ip{4,6}_active state to netlinkinclude/ include/ net/ +2 more | +33 | 1 reply | |
| 3/5 | net: bridge: mcast: check if snooping is enabled for active stateinclude/ net/ | +37 | 1 reply | |
| 4/5 | net: bridge: switchdev: notify on mcast active changesDocumentation/ include/ net/ | +47 | 0 replies | |
| 5/5 | net: dsa: forward bridge/switchdev mcast active notificationDocumentation/ include/ net/ +4 more | +79 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH net-next 0/5] net: bridge: propagate safe mcast snooping to switchdev + DSA
For a plain Linux bridge we have a safety mechanism before applying multicast snooping to payload IP packets in the fast path: We only apply it if both multicast snooping is enabled and an active IGMP/MLD querier was detected. Otherwise we default to flooding IPv4/IPv6 multicast traffic.
This reduces the risk of creating multicast packet loss and by that packet loss for IPv6 unicast, too, which relies on multicast to work. Without an active IGMP/MLD querier on the link we are not able to get IGMP/MLD reports reliably and by that wouldn't have a complete picture about all multicast listeners.
This safety mechanism was introduced in commit b00589af3b04 ("bridge: disable snooping if there is no querier").
To be able to use this safty mechanism on DSA/switchdev capable hardware switches, too, and to ensure that a DSA bridge behaves similar to a plain software bridge this patchset adds a new variable to track if multicast snooping is active / safely applicable. And notifies DSA and switchdev when this changes.
This has been tested on an OpenWrt powered Realtek RTL8382 switch, a ZyXEL GS1900-24HP v1, with the following, pending patchset for OpenWrt to integrate this: https://github.com/openwrt/openwrt/pull/18780
Regards, Linus