ice_vf_vsi_...cy_vlan_mode(9)
β¨ ice_vf_vsi_cfg_dvm_legacy_vlan_mode(9) β¨
okay bestie, welcome to the Kernel API Manual π
this one's a deep cut from the ice driver and it's giving "niche but essential," honestly iconic.
πΈ NAME πΈ
ice_vf_vsi_cfg_dvm_legacy_vlan_mode β sets up the VLAN mode for the old-school VFs when you're running in DVM π«Ά
π SYNOPSIS π
void ice_vf_vsi_cfg_dvm_legacy_vlan_mode (struct ice_vsi *vsi );
π¦ ARGUMENTS π¦
vsiβ the VF's VSI that's getting configured, that's the one we're dressing up β¨
π DESCRIPTION π
so here's the vibe check π β you should only call this when all three of these are true, no cap:
- Double VLAN Mode (DVM) is enabled β
- there is not a port VLAN enabled on this VF β
- and the VF negotiates
VIRTCHNL_VF_OFFLOAD_VLANβ
if any of those is a no, this function is not the main character, okay? π
what it actually does: it sets up the VF VSI's inner and outer ice_vsi_vlan_ops, and also initializes software only VLAN mode (i.e. allow all VLANs) π literally that simple.
and the last bit is kind of the genius part ngl β for any functions that might get called during the lifetime of the VF, it uses no-op implementations, so those methods do nothing and just... succeed π§ lowkey the dream coping mechanism fr fr π
π₯ SEE ALSO π₯
- Kernel file
./drivers/net/ethernet/intel/ice/ice_vf_vsi_vlan_ops.cβ ice_vf_vsi_enable_port_vlan(9)ice_vf_vsi_disable_port_vlan(9)ice_vf_vsi_init_vlan_ops(9)ice_vf_vsi_cfg_svm_legacy_vlan_mode(9)
go read the whole squad, they ate π π
fr fr: this came from./drivers/net/ethernet/intel/ice, dated October 2026, and the header wasice_vf_vsi_...cy_vlan_mode(9)β mwah, periodt, hope this helped bestie ππ
π¦ 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