calc_tx_descs_ofld(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ calc_tx_descs_ofld β€” Kernel API Manual bestie era ✨

okay so this is calc_tx_descs_ofld(9), and it’s giving β€œsmall but essential little kernel helper” energy. It lives in the Kernel API Manual, and it’s here to tell you how many Tx descriptors an offload packet needs. iconic. πŸ’…


🌸 NAME 🌸

calc_tx_descs_ofld β€” calculate # of Tx descriptors for an offload packet πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

unsigned int calc_tx_descs_ofld (const struct sk_buff *skb );

πŸŽ€ ARGUMENTS πŸŽ€

  • skb β€” the packet πŸ’Œ

πŸ’… DESCRIPTION πŸ’…

This function returns the number of Tx descriptors needed for the given offload packet. No cap: these packets are already fully constructed, so this is the descriptor-counting moment, not a β€œbuild the packet from scratch” situation. ✨


🌈 SEE ALSO 🌈

The kernel file ./drivers/net/ethernet/chelsio/cxgb3/sge.c is the main-character file here, and these besties are all part of the same see-also friend group:


okay that’s the tea πŸ’– β€” source/version ./drivers/net/ethernet/chelsio..., dated October 2026. byeee bestie 🫢✨

πŸ“¦ where this page comes from