ixgbe_ipsec_vf_del_sa(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ixgbe_ipsec_vf_del_sa β€” bestie edition

okay so real talk, this is ixgbe_ipsec_vf_del_sa from the Kernel API Manual, and it's lowkey the little cleanup crew of the ixgbe IPsec world. Let's get into it 🫢


✨ NAME ✨

ixgbe_ipsec_vf_del_sa β€” translate VF request to SA delete. that's it, that's the whole vibe: a VF asks for a delete, and this function is the translator that makes it happen πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

int ixgbe_ipsec_vf_del_sa (struct ixgbe_adapter *adapter , u32 *msgbuf ,
       u32 vf );

πŸŽ€ ARGUMENTS πŸŽ€

  • adapter β€” board private structure. the main character struct, obviously πŸ‘‘
  • msgbuf β€” The message buffer. yes bestie, The message buffer, capital T 🌸
  • vf β€” the VF index. which VF are we talking about? this one πŸ’œ

🌈 DESCRIPTION 🌈

so the VF slides in with its offload_handle, right? and we're like okay bestie let's find your related SA table entry, and once we've got it we take that entry's xs field and use it to call for a delete of the SA. slay. no cap, that's literally the whole thing ✨


πŸ’€ NOTE πŸ’€

not me having to explain this one, but here goes β€” we silently ignore requests to delete entries that are already set to unused. why? because when a VF gets set to "DOWN", the PF first gets a reset and clears all the VF's entries, and then the VF's XFRM stack sends individual deletes for each entry that the reset already removed 🫠 like, girl, they're already gone.

in the future it might be good to try to optimize this so not so many unnecessary delete messages are sent πŸ”₯ (future-you's problem, honestly)

Returns 0 or error value πŸ’–

🧚 gentle reminder: every one of those details matters β€” the "DOWN" state, the PF reset happening first, the XFRM stack sending individual deletes, and the fact that the reset already removed them. don't come for me, I'm just the messenger.

⭐ SEE ALSO ⭐

Kernel file ./drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c

and the whole friend group 🫢:


and that's the tea πŸŽ€ this page came from ./drivers/net/ethernet/intel/i..., dated October 2026, and it's called ixgbe_ipsec_vf_del_sa(9) β€” kbye, ily, go delete some SAs responsibly πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from