Page MenuHomeFreeBSD

if_bridge: add igmp_snooping enable knob and MDB counters
Needs ReviewPublic

Authored by namkhanh052005_gmail.com on Sun, Aug 9, 3:56 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Aug 13, 4:19 PM
Unknown Object (File)
Thu, Aug 13, 4:10 PM
Unknown Object (File)
Thu, Aug 13, 3:27 AM
Unknown Object (File)
Wed, Aug 12, 11:18 AM
Unknown Object (File)
Wed, Aug 12, 2:38 AM
Unknown Object (File)
Sun, Aug 9, 5:59 PM

Details

Reviewers
ivy
Summary

Adds the net.link.bridge.igmp_snooping runtime enable knob, default off --
everything added in D2-D4 is inert until it is set -- and five counters:
mdb_entries, mdb_prune_hits, mdb_flood_fallback, mdb_parse_reject,
mdb_expired. Writing zero resets a counter. This makes learned state and
fallback behavior inspectable without a packet capture.

Depends on D58732

Test Plan

mdb_counters ATF test exercises all five counters advancing under traffic
and resetting on write. Manual check of the default-off to explicit-on
transition, which no ATF test covers. Full bridge regression at this point
in development: 20/22, with 2 skips for missing scapy on the test VM.
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 75482
Build 72365: arc lint + arc unit