Page MenuHomeFreeBSD

if_bridge: add multicast database (MDB) foundation
Needs ReviewPublic

Authored by namkhanh052005_gmail.com on Sat, Aug 8, 4:46 PM.
Tags
None
Referenced Files
F167233654: D58730.diff
Thu, Aug 20, 4:55 AM
Unknown Object (File)
Wed, Aug 19, 1:43 AM
Unknown Object (File)
Tue, Aug 18, 8:00 PM
Unknown Object (File)
Tue, Aug 18, 5:07 PM
Unknown Object (File)
Mon, Aug 17, 8:42 PM
Unknown Object (File)
Mon, Aug 17, 7:58 PM
Unknown Object (File)
Mon, Aug 17, 2:55 PM
Unknown Object (File)
Mon, Aug 17, 12:33 PM

Details

Reviewers
ivy
Summary

Adds the multicast database (MDB) data structures to if_bridge(4):
struct bridge_mdb_entry and struct bridge_mdb_member, keyed by
(VLAN, multicast group) rather than by the mapped Ethernet MAC alone, so
distinct IP groups sharing an L2 destination are not conflated. Includes
the aging callout scaffolding and the member-detach cleanup path.

No learning or forwarding behavior yet; this patch establishes the data
model only. Also adds a VNET topology helper,
bridge_mdb_vnet_topology_create, reused by every subsequent patch's tests.

Depends on D58729

Test Plan

mdb_vnet_topology ATF test exercises the topology helper. No forwarding
behavior changes at this stage, so there is no forwarding-path test.
Built and booted on both bases; ATF passes.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Warnings
SeverityLocationCodeMessage
Warningtests/sys/net/if_bridge_test.sh:CHMOD1Invalid Executable
Unit
No Test Coverage
Build Status
Buildable 75458
Build 72341: arc lint + arc unit