Skip to content

bridge: multicast snooping patches / exports

Linus Lüssing batman bridge lkml netdev 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest4 patches 1 replyIn review
  2. v34 patches 3 repliesSuperseded
  3. v24 patches 5 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v14 patches1 replySuperseded

Changes in v4 from the cover letter

- merged header postings from all previous patchset versions

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4bridge: rename struct bridge_mcast_query/queriernet/bridge/br_mdb.c net/bridge/br_multicast.c net/bridge/br_private.h+100 -950 replies
2/4bridge: adhere to querier election mechanism specified by RFCsnet/bridge/br_multicast.c net/bridge/br_private.h+95 -130 replies
3/4bridge: add export of multicast database adjacent to net_devinclude/linux/if_bridge.h net/bridge/br_multicast.c net/bridge/br_private.h+76 -120 replies
4/4bridge: memorize and export selected IGMP/MLD querier portinclude/linux/if_bridge.h net/bridge/br_multicast.c net/bridge/br_private.h+68 -60 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [PATCHv4 net-next 0/4] bridge: multicast snooping patches / exports

The first patch is simply a cosmetic patch. So far I (and maybe others too?) have been regularly confusing these two structs, therefore I'd suggest renaming them and therefore making the follow-up patches easier to understand and nicer to fit in.

The second patch fixes a minor issue, but probably not worth for stable.

On the other hand the first two patches are also preparations for the third and fourth patch:

These two patches are exporting functionality needed to marry the bridge multicast snooping with the batman-adv multicast optimizations recently added for the 3.15 kernel, allowing to use these optimzations in common setups having a bridge on top of e.g. bat0, too. So far these bridged setups would fall back to simple flooding through the batman-adv mesh network for any multicast packet entering bat0.

More information about the batman-adv multicast optimizations currently implemented can be found here:

http://www.open-mesh.org/projects/batman-adv/wiki/Basic-multicast-optimizations

The integration on the batman-adv side could afterwards look like this, for instance:

http://git.open-mesh.org/batman-adv.git/commitdiff/576b59dd3e34737c702e548b21fa72059262f796?hp=f95ce7131746c65fbcdffcf2089cab59e2c2f7ac

Changes in v4:
- merged header postings from all previous patchset versions

Changes in v3:
- use EXPORT_SYMBOL_GPL() instead of EXPORT_SYMBOL()

Changes in v2:
- fix a nasty typo in PATCH 1/4, br_multicast_update_query_timer():
"br->multicast_query_interval" vs. "br->multicast_querier_interval" => this accidentally reduced the other querier present timer

      from 255 to 125 seconds

- fix a typo in PATCH 2/4, br_ip{4,6}_multicast_query():
ntohs(ETH_P_{IP,IPV6}) vs. htons(ETH_P_{IP,IPV6})
- add missing ntohl()s before address comparison in PATCH 2/4, br_ip4_multicast_select_querier() (thanks David!)

Cheers, Linus