validate_vlan(9)
π validate_vlan(9) β the Kernel API Manual glow-up π¦
okay bestie, welcome to the <pink>validate_vlan</pink> page from the Kernel API Manual, section 9. yes we're in kernel-land. yes it's giving driver internals. no you're not scared, you're gonna slay β¨
πΈ NAME πΈ
validate_vlan β literally just checks if the ice_vlan you passed in is valid. that's it. that's the whole job. icon behaviour honestly π
β¨ SYNOPSIS β¨
bool validate_vlan (struct ice_vsi *vsi , struct ice_vlan *vlan );
she returns a bool. short. sweet. decisive. we love a function that knows what she is π
π ARGUMENTS π
vsiβ the VSI that gets used for printing the error message π so like, if something's off, this is who's gonna be talking about it.vlanβ theice_vlanstructure that's getting validated. the main character of this whole operation fr fr.
π DESCRIPTION π
so here's the vibe check π§ this returns true if the VLAN TPID is valid β full stop, that's a pass.
it also returns true if the VLAN TPID is 0 and the VLAN VID is 0. and why do we care, you ask? because that combo lowkey unlocks two things:
- non-zero VLAN filters with the specified VLAN TPID can be added to the prune list
- untagged VLAN
0filters can be added to the prune list
respectively, bestie. respectively. π the way that one little true does so much heavy lifting... we're obsessed.
π¦ SEE ALSO π¦
the kernel file lives right here, no cap:
./drivers/net/ethernet/intel/ice/ice_vsi_vlan_lib.c
and the whole friend group π:
ice_vsi_add_vlan(9)ice_vsi_del_vlan(9)ice_vsi_manage_vlan_insertion(9)ice_vsi_manage_vlan_stripping(9)__ice_vsi_set_inner_port_vlan(9)ice_cfg_vlan_pruning(9)tpid_to_vsi_outer_vlan_type(9)ice_vsi_ena_outer_stripping(9)ice_vsi_dis_outer_stripping(9)ice_vsi_ena_outer_insertion(9)ice_vsi_dis_outer_insertion(9)__ice_vsi_set_outer_port_vlan(9)ice_vsi_set_outer_port_vlan(9)ice_vsi_clear_outer_port_vlan(9)
ngl if you're reading this at 3am in ./drivers/net/ethernet/intel/ice, drink some water, bestie. the VLANs will still be there tomorrow π«Ά
π sign-off time, and it's a whole moment π β this page ships from ./drivers/net/ethernet/intel/ice, dated October 2026, and it's β¨validate_vlan(9)β¨ forever and ever, periodt π
ππ
π¦ 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