ice_lag_prepare_vf_reset(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ice_lag_prepare_vf_reset(9)

okay so this is a page from the Kernel API Manual β€” yes, the actual kernel man pages, and yes, we're gonna make it cute. Bestie, this is a helper function whose whole vibe is adjusting the VF lag so it's ready for a reset. That's it. That's the job. She's a little support-system icon and we love her for it πŸŽ€


✨ NAME ✨

ice_lag_prepare_vf_reset β€” the helper that adjusts the VF lag for a reset πŸ¦‹

Like, it's not the main character, it's the best friend who shows up with the emotional support and makes sure everything's in place before the big reset moment. Lowkey essential, highkey underrated.


🌸 SYNOPSIS 🌸

u8 ice_lag_prepare_vf_reset (struct ice_lag *lag );

That's the whole signature, periodt. Returns a u8 and takes one pointer to a struct ice_lag. Clean, simple, no drama πŸ’…


🫢 ARGUMENTS 🫢

  • lag β€” the lag struct for the interface that owns the VF. she's the one carrying all the context, so hand her over correctly, k?

πŸ”₯ CONTEXT πŸ”₯

must be called with the lag_mutex lock held.

not me stressing this but FR FR: you MUST be holding the lag_mutex lock when you call this. No cap. Don't skip it, don't get cute with it, just hold the lock. Lock discipline is the vibe check here πŸ™ˆ


πŸ‘‘ RETURN πŸ‘‘

Returns the active lport value β€” or ICE_LAG_INVALID_PORT if nothing moved.

So basically: you get a real port back when something actually changed, and you get ICE_LAG_INVALID_PORT when nothing did. Either way you know what's up ✨


🌈 SEE ALSO 🌈

First up, the source herself:

  • Kernel file ./drivers/net/ethernet/intel/ice/ice_lag.c

and then the whole friend group, because this function literally does not exist in isolation:

okay that's the entire extended universe, go read them all, iykyk πŸ“šβœ¨


and that's the page!! huge shoutout to the ./drivers/net/ethernet/intel/ice directory, dated October 2026 β€” the source and its era, living rent free in the footer so I could tell you about it here instead πŸ§šπŸ’œ slay, bye πŸ’–

πŸ“¦ where this page comes from