do_gro(9)
π do_gro(9) β like, the whole Kernel API Manual vibe β¨
okay bestie, welcome to another episode of "kernel functions that are lowkey iconic." this one's called do_gro, and she lives in the Kernel API Manual, so you know she's official π
πΈ NAME πΈ
do_gro β perform Generic Receive Offload ingress packet processing
like, she does the GRO thing on packets coming in. ingress girlie. π¦
β¨ SYNOPSIS β¨
void do_gro (struct sge_eth_rxq *rxq , const struct pkt_gl *gl , const
struct cpl_rx_pkt *pkt );
returns void, so no sneaky return values to worry about, periodt π
π«Ά ARGUMENTS π«Ά
rxqβ ingress RX Ethernet Queue. yes bestie, the receive queue, she's the one holding the packets πglβ gather list for ingress packet. it's giving "all the fragments, gathered" πΈpktβ CPL header for last packet fragment. the final little header, the last one in the lineup β
π₯ DESCRIPTION π₯
Perform Generic Receive Offload (GRO) ingress packet processing. fr fr that's the whole job description π
and the way we do it? we use the standard Linux GRO interfaces for this. no custom homemade situation, just the standard Linux ones, iykyk π
π§ SEE ALSO π§
Kernel file ./drivers/net/ethernet/chelsio/cxgb4vf/sge.c
and now the friend group, the whole crew, no cap, all of them:
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)is_eth_imm(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)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)
ok that's the whole page, nothing skipped, every single one of those (9) cross-refs is up there π go read them, they're literally all connected π
and that's a wrap, bestie π sign-off time: this lil masterpiece comes from ./drivers/net/ethernet/chelsio... and she's dated October 2026 β iconic behavior honestly, slay ππ
π¦ 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