idpf_tso(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… idpf_tso(9) β€” bestie, we're doing TSO math

okay so first things first, welcome to the Kernel API Manual, specifically the idpf_tso(9) page πŸŽ€ this is the group chat where your skb finds out how big its segments are allowed to be. pull up a chair, we're about to get so into it.


✨ NAME ✨

idpf_tso β€” computes mss and TSO length to prepare for TSO

lowkey the whole personality of this function in one line: it does the mss math and works out the TSO length so everything's ready to go. no cap, that's it, that's the job 🫢


🌸 SYNOPSIS 🌸

int idpf_tso (struct sk_buff *skb , struct idpf_tx_offload_params *off
);

look at that signature. two args, one int coming back at you. iconic honestly πŸ’–


πŸ¦‹ ARGUMENTS πŸ¦‹

  • skb β€” pointer to skb. yes, the skb. the main character of the whole networking saga πŸ‘‘
  • off β€” pointer to the struct that holds offload parameters. this little struct is carrying the offload vibes so idpf_tso knows what's up.

πŸ’€ RETURN πŸ’€

so here's the vibe check on what you get back:

  • error (negative) β€” if TSO was requested but it cannot be applied to the given skb. not me getting a negative back 😭 that's your sign something's not slaying.
  • 0 β€” if TSO does not apply to the given skb. like, not today bestie, TSO's not invited.
  • 1 β€” otherwise. the happy path, the yes-queen path ✨

πŸ”₯ SEE ALSO πŸ”₯

the kernel file lives right here, go say hi:

  • Kernel file ./drivers/net/ethernet/intel/idpf/idpf_txrx.c

and now β€” the friend group. the whole entire friend group. every one of these is invited to the function party, and yes, we're listing all of them because nobody gets left out πŸ’œ


and that's the whole page bestie, you ate that πŸ“ this little beauty came out of ./drivers/net/ethernet/intel/idpf and the manual's dated October 2026 β€” so like, future-coded of it. mwah, go compute some mss πŸ’…βœ¨

πŸ“¦ where this page comes from