Page MenuHomeFreeBSD

bridge: allow VLAN protocol to be configured
ClosedPublic

Authored by ivy on Jul 9 2025, 9:57 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Aug 8, 7:51 AM
Unknown Object (File)
Tue, Aug 5, 7:26 PM
Unknown Object (File)
Mon, Jul 28, 11:51 PM
Unknown Object (File)
Fri, Jul 25, 11:19 PM
Unknown Object (File)
Tue, Jul 22, 7:36 PM
Unknown Object (File)
Mon, Jul 14, 7:50 PM

Details

Summary

Add a new per-interface option "vlanproto", which can be either
"802.1q" (the default) or "802.1ad". This controls what type of
tag we attach to outgoing packets on the interface.

Diff Detail

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

Event Timeline

ivy requested review of this revision.Jul 9 2025, 9:57 PM

Other than this possible clarification, manual page change looks reasonable and consistent with the intent of the rest as stated in the summary.

sbin/ifconfig/ifconfig.8
2766–2769

Audience check: are expected readers of this expected to know 802.1q is VLAN and 802.1ad Q-in-Q?

This revision is now accepted and ready to land.Jul 9 2025, 11:55 PM
sbin/ifconfig/ifconfig.8
2766–2769

i feel like anyone who needs this option will know what 802.1ad is, and people who don't know that can just ignore it. i'm not opposed to rewording it if anyone has a better suggestion, but i'd rather avoid being too verbose here as the manpage is already quite long. (there is more verbose documentation on this in D51185, and there's a pointer to that at the top of this section.)

also, compare with the other vlanproto option which is used for vlan(4) devices; it uses more lines since it has a list, but it's otherwise about the same text.

rename the option to "ifvlanproto" to avoid possible confusion with the
vlan(4) option of the same name.

This revision now requires review to proceed.Fri, Jul 11, 7:15 AM
This revision was not accepted when it landed; it landed in state Needs Review.Tue, Aug 5, 7:26 PM
This revision was automatically updated to reflect the committed changes.