is_ofld_imm(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… is_ofld_imm(9) β€” Kernel API Manual ✨

okay bestie, welcome to the Kernel API Manual entry for is_ofld_imm(9), aka the tiny little vibe-check function that tells you if a packet can ✨go out immediately✨. yes it's a real page in the manual, yes you're gonna read the whole thing, let's go 🫢


🌸 NAME 🌸

is_ofld_imm β€” check whether a packet can be sent as immediate data πŸ’Œ


πŸŽ€ SYNOPSIS πŸŽ€

int is_ofld_imm (const struct sk_buff *skb );

πŸ’– ARGUMENTS πŸ’–

  • skb β€” the packet, bestie. that's it, that's the argument πŸ¦‹

✨ DESCRIPTION ✨

so what does it actually do? it returns true if a packet can be sent as an offload WR with immediate data. that's the whole assignment, and it ate πŸ”₯

but here's the tea about the size limits, because there are two of them and they are not the same number:

  • FW_OFLD_TX_DATA_WR limits the payload to 255 bytes β€” because of an 8-bit field, smh, the classic reason 😭
  • but FW_ULPTX_WR commands have a 256 byte immediate-only payload limit

so yeah. two different ceilings. keep that energy. iykyk πŸ’…

ngl the numbers matter here β€” 255 vs 256 is literally the whole point of the check, don't mix them up πŸ™ˆ

πŸ‘‘ SEE ALSO πŸ‘‘

this is the part where the page just keeps going and going, and honestly? iconic. everything below is (9), no cap, and the kernel file in question is ./drivers/net/ethernet/chelsio/cxgb4/sge.c β€” go say hi to it for me 🧚


and that's the whole page, bestie, you survived the reference wall πŸŽ‰ little sign-off moment: this one's from ./drivers/net/ethernet/chelsio... and it's dated October 2026 β€” slay, go read a real function now, you're a kernel girlie πŸ’œπŸŒΈ

πŸ“¦ where this page comes from