is_ctrl_pkt(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… is_ctrl_pkt(9) β€” the kernel API manual, bestie edition πŸŽ€

okay so you found your way into is_ctrl_pkt(9) β€” the section 9 kernel API manual page. welcome, pull up a chair, this one's short and sweet and honestly kind of iconic for how much it does with so little ✨


✨ NAME ✨

is_ctrl_pkt β€” returns whether an offload packet is a control packet πŸ¦‹


🌸 SYNOPSIS 🌸

unsigned int is_ctrl_pkt (const struct sk_buff *skb );

like, that's the whole signature. one arg. no cap. πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • skb β€” the packet. that's it, that's the description. she's the packet in question, the main character of this whole function, the thing we're vibe-checking 🌈

πŸ‘‘ DESCRIPTION πŸ‘‘

so here's the tea β˜• β€” this function returns whether an offload packet should use an OFLD or a CTRL Tx queue, and the answer lives in bit 0 of the packet's queue_mapping. that's the whole bit. one bit decides which queue your offload packet goes to, and is_ctrl_pkt is the bestie who reads it for you and reports back. literally that simple, fr fr 🫢


πŸ”₯ SEE ALSO πŸ”₯

bestie, get comfy, this list is LONG and we're not skipping a single one, i refuse 😭 this is the whole ./drivers/net/ethernet/chelsio/cxgb4/sge.c kernel file squad:

all 66 of them, accounted for, not one dropped πŸ’– go read them, i'll wait 🧚


little sign-off moment 🫢 this page came from ./drivers/net/ethernet/chelsio... and it's dated October 2026, and it's living in the is_ctrl_pkt(9) chapter of your kernel API manual forever. slay. periodt. β­πŸ’œ
πŸ“¦ where this page comes from