ofldtxq_stop(9)
π ofldtxq_stop(9) β the Kernel API Manual, but make it make sense
okay so before we even start, quick vibe check: this is a page from the Kernel API Manual (yes, the kernel, your fave, the final boss of C code) and it's about ONE tiny function doing ONE iconic thing. it's giving "small but mighty" and honestly? we're obsessed π
β¨ NAME β¨
ofldtxq_stop β stops an offload Tx queue when it's gone full, like a club at capacity π
π¦ SYNOPSIS π¦
void ofldtxq_stop (struct sge_uld_txq *q , struct fw_wr_hdr *wr );
literally no return value, no drama, it just does the thing and leaves. main character energy fr π₯
πΈ ARGUMENTS πΈ
qβ the queue we're stopping. the one that's full. the one that needs to chill πwrβ the Work Request that's the whole reason the queue became full in the first place. iykyk π«Ά
π DESCRIPTION π
okay bestie, so picture this: an offload Tx queue has become full β like, no room left, absolutely packed, standing room only π
ofldtxq_stop stops that queue. and it doesn't just stop it β it modifies the packet being written so it requests a wakeup. so when there's space again, someone'll get nudged. not me forgetting to ping you back, that's for sure β¨
so the two things it does, for the note-takers:
- stops an offload Tx queue that has become full
- modifies the packet being written to request a wakeup
periodt. that's the function. simple, effective, ate π
π SEE ALSO π
this is the part where the page just goes OFF with the links, and honestly? respect. no gatekeeping here. every single one, in order, exactly as listed π₯
txq_avail(9)fl_cap(9)fl_starving(9)deferred_unmap_destructor(9)free_tx_desc(9)reclaim_completed_tx(9)cxgb4_reclaim_completed_tx(9)free_rx_bufs(9)unmap_rx_buf(9)refill_fl(9)alloc_ring(9)sgl_len(9)flits_to_desc(9)is_eth_imm(9)calc_tx_flits(9)cxgb4_write_sgl(9)cxgb4_ring_tx_db(9)cxgb4_inline_tx_skb(9)t4_sge_eth_txq_egress_update(9)cxgb4_eth_xmit(9)t4vf_is_eth_imm(9)t4vf_calc_tx_flits(9)cxgb4_vf_eth_xmit(9)reclaim_completed_tx_imm(9)cxgb4_ethofld_send_flowc(9)is_imm(9)ctrlq_check_stop(9)ctrl_xmit(9)restart_ctrlq(9)t4_mgmt_tx(9)is_ofld_imm(9)calc_tx_flits_ofld(9)txq_stop_maperr(9)service_ofldq(9)ofld_xmit(9)restart_ofldq(9)skb_txq(9)is_ctrl_pkt(9)t4_ofld_send(9)cxgb4_ofld_send(9)ofld_xmit_direct(9)t4_crypto_send(9)cxgb4_crypto_send(9)cxgb4_pktgl_to_skb(9)t4_pktgl_free(9)cxgb4_sgetim_to_hwtstamp(9)t4_systim_to_hwstamp(9)t4_rx_hststamp(9)t4_tx_hststamp(9)t4_tx_completion_handler(9)t4_ethrx_handler(9)restore_rx_bufs(9)is_new_response(9)rspq_next(9)process_responses(9)napi_rx_handler(9)t4_intr_handler(9)bar2_address(9)t4_sge_alloc_eth_txq(9)t4_free_sge_resources(9)t4_sge_stop(9)t4_sge_init_soft(9)t4_sge_init(9)
and just so you have the source location too, the kernel file is:
./drivers/net/ethernet/chelsio/cxgb4/sge.c
ngl this whole page lives in ./drivers/net/ethernet/chelsio/cxgb4/sge.c β that's the origin story, bestie, don't lose it π
okay that's the whole page, no notes π before you go: this beauty came from ./drivers/net/ethernet/chelsio... (that's the source/version line, slightly shy and abbreviated but we love it anyway π₯Ί), dated October 2026, and it's filed under ofldtxq_stop(9). slay, go stop a queue responsibly πβ¨
π¦ 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