Page MenuHomeFreeBSD

bridge: Do outbound VLAN filtering in bridge_enqueue
ClosedPublic

Authored by ivy on Sep 4 2025, 11:52 AM.
Tags
None
Referenced Files
F144971301: D52380.id161498.diff
Sat, Feb 14, 3:13 PM
F144970858: D52380.id161498.diff
Sat, Feb 14, 3:07 PM
F144938294: D52380.id161968.diff
Sat, Feb 14, 7:34 AM
F144937477: D52380.id161968.diff
Sat, Feb 14, 7:23 AM
F144937473: D52380.id161968.diff
Sat, Feb 14, 7:23 AM
Unknown Object (File)
Sun, Jan 25, 12:43 PM
Unknown Object (File)
Sun, Jan 25, 5:57 AM
Unknown Object (File)
Sat, Jan 24, 3:34 PM

Details

Summary

Outbound VLAN filtering wasn't being done for host-originated frames,
because bridge_output was missing a call to bridge_vfilter_out, like
in bridge_forward and bridge_broadcast.

Rather than adding another call, move the filtering to bridge_enqueue,
which ensures all frames will be filtered. This slightly changes the
observable behaviour since we now do pfil before vlan filtering, but
that's probably closer to what users expect anyway.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 66814
Build 63697: arc lint + arc unit