vsc73xx_vlan_commit_conf(9)
π vsc73xx_vlan_commit_conf β the kernel API manual, bestie edition π
okay so real quick, before we even get into it: this is a page from the Kernel API Manual (kernel-doc girlies rise up β¨), and today's main character is vsc73xx_vlan_commit_conf. Yes it's a mouthful. Yes we're gonna say it like twelve times. Slay.
β¨ NAME β¨
vsc73xx_vlan_commit_conf β Update VLAN configuration of a port πΈ
π¦ SYNOPSIS π¦
int vsc73xx_vlan_commit_conf (struct vsc73xx *vsc , int port );
literally that's the whole thing. two args, one int back. clean. minimal. iconic. π
π ARGUMENTS π
vscβ the switch's private data structure π«Ά like, the whole vibe of this switch lives in hereportβ the port index you're operating on, i.e. the specific port whose life you are about to change β¨
π DESCRIPTION π
okay so here's the tea β β this function updates the VLAN behavior of a port. Not the VLAN table itself, bestie, the behavior. The vibes of the port, if you will.
The way it works: it makes sure that when the port is sitting under a VLAN filtering bridge, the port ends up in one of exactly two states β and no, there is no third option, this is not a choose-your-own-adventure:
- filtering with tag preservation π·οΈ, or
- filtering with all VLANs egress-untagged π
and if the port is not in one of those two states? Then (and I cannot stress this enough) the port ignores VLAN tags from packets and just applies the port-based VID. That's the fallback. That's the "we tried" state. π
You must call this when changes are made to: - the bridge VLAN filtering state of the port π§ - the number or attributes of VLANs from the bridge VLAN table, while the port is currently VLAN-aware π
like, not "should", not "maybe", must. the port does not let you forget. periodt.
β RETURN β
0on success π (we love a zero)- negative errno on error π (boo, but at least it's honest)
π₯ SEE ALSO π₯
- Kernel file
./drivers/net/dsa/vitesse-vsc73xx-core.cβ the source of truth, go read it, iykyk π vsc73xx_vlan_commit_untagged(9)β the untagged sibling π«Άvsc73xx_vlan_commit_pvid(9)β the PVID cousin π
and that's the page, bestie!! π this lil beauty lives under ./drivers/net/dsa, and the version fairy stamped it October 2026 β β so if you're reading this anytime before that, no you didn't π. go forth and commit those VLAN configs, you absolute icon ππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms