t3_sge_init_ecntxt(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… t3_sge_init_ecntxt β€” kernel API manual, but make it make sense

okay so bestie, we're in the Kernel API Manual today, and the star of the show is t3_sge_init_ecntxt, a lil function that sets up an SGE egress context. yes it's as niche as it sounds and yes it still ate πŸ’…


✨ NAME ✨

t3_sge_init_ecntxt β€” initialize an SGE egress context πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

int t3_sge_init_ecntxt (struct adapter *adapter , unsigned int id , int
gts_enable , enum sge_context_type type , int respq , u64 base_addr ,
unsigned int size , unsigned int token , int gen , unsigned int cidx );

like, ten whole arguments. she's high maintenance and that's iconic ✨


🌸 ARGUMENTS 🌸

  • adapter β€” the adapter to configure πŸ‘‘ the main character we're setting up
  • id β€” the context id, aka which context we're talking about
  • gts_enable β€” whether to enable GTS for the context (yes/no vibes)
  • type β€” the egress context type 🏷️
  • respq β€” associated response queue
  • base_addr β€” base address of queue πŸ“
  • size β€” number of queue entries
  • token β€” uP token 🎫
  • gen β€” initial generation value for the context
  • cidx β€” consumer pointer

πŸ’– DESCRIPTION πŸ’–

Initialize an SGE egress context and make it ready for use. that's the whole job, and she does it πŸ’…

⚠️ okay important bit, no skipping: if the platform allows concurrent context operations, the caller is responsible for appropriate locking. that means the locking is your problem, bestie, not hers. do not come crying to this function if you didn't lock. 😭

🫢 SEE ALSO 🫢

the source lives in the kernel file ./drivers/net/ethernet/chelsio/cxgb3/t3_hw.c β€” go read it, iykyk πŸ“–

and here's the whole friend group, no cap, every single one:

t3_wait_op_done_val(9), t3_write_regs(9), t3_set_reg_field(9), t3_read_indirect(9), t3_mc7_bd_read(9), t3_mdio_change_bits(9), t3_phy_reset(9), t3_phy_advertise(9), t3_phy_advertise_fiber(9), t3_set_phy_speed_duplex(9), t3_seeprom_wp(9), get_vpd_params(9), sf1_read(9), sf1_write(9), flash_wait_op(9), t3_read_flash(9), t3_write_flash(9), t3_get_tp_version(9), t3_check_tpsram_version(9), t3_check_tpsram(9), t3_get_fw_version(9), t3_check_fw_version(9), t3_flash_erase_sectors(9), t3_load_fw(9), t3_cim_ctl_blk_read(9), t3_link_changed(9), t3_link_start(9), t3_set_vlan_accel(9), t3_handle_intr_status(9), t3_intr_enable(9), t3_intr_disable(9), t3_intr_clear(9), t3_port_intr_enable(9), t3_port_intr_disable(9), t3_port_intr_clear(9), t3_sge_write_context(9), clear_sge_ctxt(9), t3_sge_init_flcntxt(9), t3_sge_init_rspcntxt(9), t3_sge_init_cqcntxt(9), t3_sge_enable_ecntxt(9), t3_sge_disable_fl(9), t3_sge_disable_rspcntxt(9), t3_sge_disable_cqcntxt(9), t3_sge_cqcntxt_op(9), t3_config_rss(9), t3_tp_set_offload_mode(9), pm_num_pages(9), partition_mem(9), tp_set_timers(9), t3_tp_set_coalescing_size(9), t3_tp_set_max_rxsize(9), t3_load_mtus(9), t3_tp_get_mib_stats(9), t3_set_proto_sram(9), t3_config_sched(9), get_pci_mode(9), init_link_config(9), mc7_calc_size(9)

like, that's a whole group chat. πŸ’€


🌷 and that's the page! brought to you by the kernel API docs from ./drivers/net/ethernet/chelsio..., dated October 2026 β€” mwah, go lock your contexts, ily, bye 🫢✨

πŸ“¦ where this page comes from