is_eth_imm(9)
π is_eth_imm(9) β like, the Kernel API Manual page, bestie β¨
Okay so this is a page from the Kernel API Manual (section 9, the kernel-API girlies) and it's all about one tiny little question: can this Ethernet packet just... go? Right now? As immediate data? Let's get into it π«Ά
πΈ NAME πΈ
is_eth_imm β literally asking: can an Ethernet packet be sent as immediate data? π
β¨ SYNOPSIS β¨
int is_eth_imm (const struct sk_buff *skb );
That's the whole vibe. Returns an int, takes one pointer, does not miss π
π ARGUMENTS π
skbβ the packet. That's it. That's the argument. It's the packet in question, bestie, the little guy we're doing a vibe check on π¦
π DESCRIPTION π
So what this does is it returns whether an Ethernet packet is small enough to fit completely as immediate data. Completely!! Like, the whole thing, no fragments left behind, no "oops some of it went elsewhere" β the entire packet fits in the immediate data spot. If it does, slay, beautiful, iconic. If not, well, it's giving "we need a different path" π
It just tells you yes or no. It does not do the sending. It is not the main character of the transmit path, it is the tasteful side character doing a quick check. Very demure, very mindful π
π₯ SEE ALSO π₯
The kernel file this whole thing lives in: ./drivers/net/ethernet/chelsio/cxgb4vf/sge.c β and ngl the rest of the friend group is long, so buckle up π
get_buf_addr(9)is_buf_mapped(9)need_skb_unmap(9)txq_avail(9)fl_cap(9)fl_starving(9)map_skb(9)free_tx_desc(9)reclaim_completed_tx(9)get_buf_size(9)free_rx_bufs(9)unmap_rx_buf(9)ring_fl_db(9)set_rx_sw_desc(9)refill_fl(9)alloc_ring(9)sgl_len(9)flits_to_desc(9)calc_tx_flits(9)write_sgl(9)ring_tx_db(9)inline_tx_skb(9)t4vf_eth_xmit(9)copy_frags(9)t4vf_pktgl_to_skb(9)t4vf_pktgl_free(9)do_gro(9)t4vf_ethrx_handler(9)is_new_response(9)restore_rx_bufs(9)rspq_next(9)process_responses(9)napi_rx_handler(9)t4vf_intr_handler(9)sge_rx_timer_cb(9)sge_tx_timer_cb(9)bar2_address(9)t4vf_sge_alloc_rxq(9)t4vf_sge_alloc_eth_txq(9)t4vf_free_sge_resources(9)t4vf_sge_start(9)t4vf_sge_stop(9)t4vf_sge_init(9)
Like I said. A lot of friends. Go read them, they're all in the same SGE cinematic universe π
π§ Quick reminder bestie: this page returns a yes/no on whether the packet is small enough to go fully as immediate data β that's the entire claim. No extra lore, no invented behaviour, periodt π
Okay that's the page!! Mwah π This cutie came from the source ./drivers/net/ethernet/chelsio... and it's dated October 2026 β so yeah, future-flavoured documentation, we love to see it βπ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms