ice_vc_get_max_frame_size(9)
π ice_vc_get_max_frame_size(9) β like, the kernel API manual, bestie π
okay so welcome to the glow-up of ice_vc_get_max_frame_size(9), straight out of the Kernel API Manual β¨ β yes the whole manual name is a vibe, we're moving on.
πΈ NAME πΈ
ice_vc_get_max_frame_size β literally just: get the max frame size allowed for a VF π
β¨ SYNOPSIS β¨
u16 ice_vc_get_max_frame_size (struct ice_vf *vf );
that's it. one function. one argument. she's lowkey minimalist and we respect it π«Ά
π¦ ARGUMENTS π¦
vfβ the VF we're using to figure out the max frame size π (the VF being the star of the show here, obviously)
π DESCRIPTION π
okay so here's the tea β β the max frame size gets determined based on two things: the current port's max frame size, and whether a port VLAN is configured on this VF. both. ngl it's a whole little math of "how big can this frame be" and the answer depends on both of those.
and here's the iconic plot twist: the VF literally does not know whether it's in a port VLAN. π not its fault, it's just not aware of that information. so the PF has to account for it β the PF handles this in the max frame size checks and when it's sending the max frame size over to the VF. main character energy from the PF honestly, doing the emotional labor of remembering the port VLAN so the VF doesn't have to π§π
π SEE ALSO π
like the whole friend group, fr fr π β
- the kernel file
./drivers/net/ethernet/intel/ice/virt/queues.c(yes, that file, that exact path, I would never do her dirty β¨) ice_vc_isvalid_q_id(9)ice_vc_isvalid_ring_len(9)ice_vf_cfg_qs_bw(9)ice_vf_cfg_q_quanta_profile(9)ice_vc_validate_vqs_bitmaps(9)ice_vf_ena_txq_interrupt(9)ice_vf_ena_rxq_interrupt(9)ice_vf_dis_rxq_interrupt(9)ice_vc_ena_qs_msg(9)ice_vf_vsi_dis_single_txq(9)ice_vc_dis_qs_msg(9)ice_cfg_interrupt(9)ice_vc_cfg_irq_map_msg(9)ice_vc_cfg_q_bw(9)ice_vc_cfg_q_quanta(9)ice_vc_cfg_qs_msg(9)ice_vc_request_qs_msg(9)
π«Ά quick reminder bestie: all those cross-refs are real, all those(9)s are real, and the file path./drivers/net/ethernet/intel/ice/virt/queues.cis real β don't go "fixing" any of it, she's perfect as is π
and that's the page!! π shoutout to ./drivers/net/ethernet/intel/i... (yes that's how the footer abbreviates it, we don't know what the rest was, we don't ask π) and to October 2026 for the timestamp β see u in the next one, mwah πππ
π¦ 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