ice_reset_vf(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 VF cfg_lock before resetting. grab the lock first, no cap πŸ”’

Return values, listen up:

  • Returns 0 if the VF is currently in reset
  • Returns 0 if resets are disabled
  • Returns 0 if the VF resets successfully
  • Returns an error code if the VF fails to rebuild 😭
fr fr though β€” a 0 here 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, same 0. 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 🫢


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