Page MenuHomeFreeBSD

bridge: Add a vlanfilter bridge option
ClosedPublic

Authored by ivy on Mon, Jul 28, 6:04 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Aug 5, 1:09 PM
Unknown Object (File)
Sun, Aug 3, 11:13 PM
Unknown Object (File)
Tue, Jul 29, 7:22 AM
Unknown Object (File)
Tue, Jul 29, 12:28 AM
Unknown Object (File)
Mon, Jul 28, 11:38 PM
Unknown Object (File)
Mon, Jul 28, 11:37 PM
Unknown Object (File)
Mon, Jul 28, 10:04 PM

Details

Summary

vlanfilter was originally a per-interface flag to allow more flexible
configurations where some interfaces had VLAN filtering enabled and
some didn't. In practice, this just makes the configuration more
confusing without any real benefit, so remove it, and make vlanfilter
a bridge flag instead.

Add a new bridge option "defuntagged", which sets the automatically
assigned PVID for new members. If set to 0 (the default) then no
PVID is assigned, which matches the current behaviour.

While here, add some more atf_checks to the bridge VLAN tests to
make debugging easier.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ivy requested review of this revision.Mon, Jul 28, 6:04 PM

this is a combination of D51176 and D51228, rebased on main so we can land it before code slush and avoid breaking the user interface in 16.0.

rebase on main, use get_vlan_id() in ifconfig.

add a test for defuntagged.

This revision was not accepted when it landed; it landed in state Needs Review.Sun, Aug 3, 11:13 PM
This revision was automatically updated to reflect the committed changes.