ice_setup_tx_ctx(9)
π ice_setup_tx_ctx β setup a struct ice_tlan_ctx instance π
okay so this is ice_setup_tx_ctx(9) from the Kernel API Manual, and honestly? it's giving "small but crucial" energy. she's the one who gets your Tx LAN queue context all set up before the real work starts. no cap. π
β¨ SYNOPSIS β¨
int ice_setup_tx_ctx (struct ice_tx_ring *ring , struct ice_tlan_ctx
*tlan_ctx , u16 pf_q );
likeβ¦ three args, one int coming back. lowkey elegant, highkey important. π¦
πΈ ARGUMENTS πΈ
ringβ the Tx ring she's gonna configure. this is the main character of the operation, bestie. πtlan_ctxβ pointer to the Tx LAN queue context structure that's about to get initialized. she's empty rn, we're filling her in. πpf_qβ the queue index in the PF space. yes, that's the whole description. it's au16, it's an index, it lives in PF space. periodt.
π§ DESCRIPTION π§
so what does she actually do? simple: she configures the Tx descriptor ring inside the TLAN context. that's the entire vibe. one job, done well, iconic behavior honestly. π₯
β RETURN β
0on success π- a negative value on error π
that's it. that's the return contract. zero means slay, negative means something went sideways.
π SEE ALSO π
she doesn't exist in a vacuum, okay?? there's a whole friend group:
- Kernel file
./drivers/net/ethernet/intel/ice/ice_base.c __ice_vsi_get_qs_contig(9),__ice_vsi_get_qs_sc(9),ice_pf_rxq_wait(9),ice_vsi_alloc_q_vector(9),ice_free_q_vector(9),ice_cfg_itr_gran(9),ice_calc_txq_handle(9),ice_cfg_xps_tx_ring(9),ice_set_txq_ctx_vmvf(9),ice_setup_txtime_ctx(9),ice_calc_ts_ring_count(9),ice_setup_rx_ctx(9),ice_vsi_cfg_rxq(9),ice_vsi_cfg_frame_size(9),ice_vsi_cfg_rxqs(9),__ice_vsi_get_qs(9),ice_vsi_ctrl_one_rx_ring(9),ice_vsi_wait_one_rx_ring(9),ice_vsi_alloc_q_vectors(9),ice_vsi_map_rings_to_vectors(9),ice_vsi_free_q_vectors(9),ice_cfg_tstamp(9),ice_vsi_cfg_txq(9),ice_vsi_cfg_txqs(9),ice_vsi_cfg_lan_txqs(9),ice_vsi_cfg_xdp_txqs(9),ice_cfg_itr(9),ice_cfg_txq_interrupt(9),ice_cfg_rxq_interrupt(9),ice_trigger_sw_intr(9),ice_vsi_stop_tx_ring(9),ice_fill_txq_meta(9),ice_qp_reset_stats(9),ice_qp_clean_rings(9),ice_qp_dis(9),ice_qp_ena(9)
and that's the whole page, bestie π«Ά she lives in ./drivers/net/ethernet/intel/ice, the manual's dated October 2026, and this little writeup is signed off with love for the Kernel API Manual. read her, reference her, treat her right πβ¨
π¦ 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