efx_enqueue_skb_tso(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ NAME πŸŽ€

okay so bestie, this is efx_enqueue_skb_tso(9) from the Kernel API Manual β€” the page whose whole job is to segment and transmit a TSO socket buffer. It's giving "segment + transmit" main character energy ✨ and honestly the whole function is just doing TSO things with a socket buffer. No cap.

✨ SYNOPSIS ✨

int efx_enqueue_skb_tso (struct efx_tx_queue *tx_queue , struct sk_buff
*skb , bool *data_mapped );

🫢 ARGUMENTS 🫢

  • tx_queue β€” the Efx TX queue. That's the queue getting the goods πŸ’…
  • skb β€” the Socket buffer. The buffer in question, periodt.
  • data_mapped β€” Did we map the data? On success, this function always sets it to true βœ…

πŸ’… CONTEXT πŸ’…

bestie, vibe check: you must hold netif_tx_lock to call this function. Literally do not skip this lock, fr fr.

🌸 DESCRIPTION 🌸

Bestie, the move is: add socket buffer skb to tx_queue, doing TSO β€” or return != 0 if skb was not enqueued. That's the whole thing. Lowkey simple, highkey important.

And the ownership tea β˜•: skb is consumed unless the return value is EINVAL. So EINVAL means not consumed; every other return value means it got consumed. Not me being dramatic, that's just the rule 😭

πŸ¦‹ SEE ALSO πŸ¦‹


mwah πŸ’‹ this cute lil page's source/version stamp is ./drivers/net/ethernet/sfc, and it's dated October 2026 β€” efx_enqueue_skb_tso(9) signing off 🫢✨

πŸ“¦ where this page comes from