ice_reset_vf(9)
π ice_reset_vf(9) β the Kernel API Manual, bestie edition π
okay so this is ice_reset_vf from the Kernel API Manual, and it's literally the "hit the reset button on one VF" function. Let's get into it β¨
πΈ NAME πΈ
ice_reset_vf β Reset a particular VF
yeah that's it, that's the whole vibe check: one specific VF gets reset, nobody else π
β SYNOPSIS β
int ice_reset_vf (struct ice_vf *vf , u32 flags );
so you hand it a vf and some flags, and it gives you back an int. simple as π«Ά
π ARGUMENTS π
vfβ pointer to the VF structure. like, the actual VF you're about to reset. main character energy πflagsβ flags that control the behavior of the reset. these are the little switches that change how the reset goes down β¨
π₯ DESCRIPTION π₯
okay so here's the flag lore, and honestly you need all three bestie:
Flags:
ICE_VF_RESET_VFLRβ Indicates a reset is due to VFLR event. so like, this reset happened because of a VFLR thing, not because someone just felt like it πICE_VF_RESET_NOTIFYβ Send VF a notification prior to reset. polite queen behavior honestly, warn them first πICE_VF_RESET_LOCKβ Acquire VFcfg_lockbefore resetting. grab the lock first, no cap π
Return values, listen up:
- Returns
0if the VF is currently in reset - Returns
0if resets are disabled - Returns
0if the VF resets successfully - Returns an error code if the VF fails to rebuild π
fr fr though β a0here does NOT only mean "yaaay success". it also means the VF was already mid-reset, or that resets are just turned off entirely. three different situations, same0. iykyk π
π¦ SEE ALSO π¦
the kernel file lives right here, go look at it if you want the tea:
Kernel file ./drivers/net/ethernet/intel/ice/ice_vf_lib.c
and now the whole friend group β every single one of these is a real reference, no skipping π«Ά
ice_get_vf_by_id(9)ice_release_vf(9)ice_put_vf(9)ice_has_vfs(9)ice_get_num_vfs(9)ice_get_vf_vsi(9)ice_is_vf_disabled(9)ice_wait_on_vf_reset(9)ice_check_vf_ready_for_cfg(9)ice_trigger_vf_reset(9)ice_vf_pre_vsi_rebuild(9)ice_vf_reconfig_vsi(9)ice_vf_rebuild_vsi(9)ice_vf_rebuild_host_vlan_cfg(9)ice_vf_rebuild_host_tx_rate_cfg(9)ice_vf_set_host_trust_cfg(9)ice_vf_rebuild_host_mac_cfg(9)ice_vf_rebuild_aggregator_node_cfg(9)ice_vf_rebuild_host_cfg(9)ice_set_vf_state_qs_dis(9)ice_vf_set_initialized(9)ice_vf_post_vsi_rebuild(9)ice_is_any_vf_in_unicast_promisc(9)ice_vf_get_promisc_masks(9)ice_vf_clear_all_promisc_modes(9)ice_vf_set_vsi_promisc(9)ice_vf_clear_vsi_promisc(9)ice_reset_vf_mbx_cnt(9)ice_reset_all_vfs(9)ice_notify_vf_reset(9)ice_reset_interrupts(9)ice_set_vf_state_dis(9)ice_initialize_vf_entry(9)ice_dis_vf_qs(9)ice_err_to_virt_err(9)ice_check_vf_init(9)ice_vf_get_port_info(9)ice_cfg_mac_antispoof(9)ice_vsi_ena_spoofchk(9)ice_vsi_dis_spoofchk(9)ice_vsi_apply_spoofchk(9)ice_is_vf_trusted(9)ice_vf_has_no_qs_ena(9)ice_is_vf_link_up(9)ice_vf_ctrl_invalidate_vsi(9)ice_vf_ctrl_vsi_release(9)ice_vf_ctrl_vsi_setup(9)ice_vf_init_host_cfg(9)ice_vf_invalidate_vsi(9)ice_vf_vsi_release(9)ice_get_vf_ctrl_vsi(9)ice_vf_update_mac_lldp_num(9)
and that's the whole page, bestie β reset responsibly π
this cutie came out of ./drivers/net/ethernet/intel/ice, dated October 2026, and it's filed under ice_reset_vf(9). slay, go forth and reset ur VFs π§β¨
π¦ 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