t4vf_bar2_sge_qregs(9)
π t4vf_bar2_sge_qregs β return BAR2 SGE Queue register information π
okay so bestie, welcome to the Kernel API Manual β¨ β yes we're in kernel-land today, and no, it's not scary, i promise π«Ά. this one's a little function with a big name: t4vf_bar2_sge_qregs. say it with me. iconic.
πΈ SYNOPSIS πΈ
int t4vf_bar2_sge_qregs (struct adapter *adapter , unsigned int qid ,
enum t4_bar2_qtype qtype , u64 *pbar2_qoffset , unsigned int *pbar2_qid
);
she takes a bunch of stuff and returns an int, that's the whole vibe π
π ARGUMENTS π
adapterβ the adapter. yes. that's it. that's the whole description. the adapter. π¦qidβ the Queue ID. lowkey the main character of this whole function ngl.qtypeβ the Ingress or Egress type forqid. pick your fighter πpbar2_qoffsetβ the BAR2 Offset of theqidRegisters. she gets written into, she's a pointer bestie π«pbar2_qidβ the BAR2 SGE Queue ID, or0ofqid. two moods fr fr π
π₯ DESCRIPTION π₯
so what does she actually do. buckle up π’
Returns the BAR2 SGE Queue Registers information associated with the indicated Absolute Queue ID. all that good stuff gets passed back through the return value pointers β that's literally why pbar2_qoffset and pbar2_qid are pointers, they're the delivery mechanism πβ¨
qtype should be T4_BAR2_QTYPE_EGRESS for Egress Queue and T4_BAR2_QTYPE_INGRESS for Ingress Queues. no cap, those are the two values, don't get creative π
β οΈ heads up bestie: this may return an error which indicates that BAR2 SGE Queue registers aren't available. so like. sometimes she just says no. it's not you, it's the hardware π
If an error is not returned, then the following values are returned:
- If the returned BAR2 Queue ID is
0, then BAR2 SGE registers which require the "Inferred Queue ID" ability may be used. E.g. the Write Combining Doorbell Buffer. π slay. - If the BAR2 Queue ID is not
0, then these "Inferred Queue ID" register may not be used. that's the whole rule. no inferred queue id for you π
so basically: 0 = you get the fancy inferred-queue-id registers, not-0 = you don't. vibe check passed β
π¦ SEE ALSO π¦
Kernel file ./drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c β that's where the source lives btw, go read her π
and now the whole friend group, in order, no one gets left out π«Ά:
t4vf_record_mbox(9)t4vf_wr_mbox_core(9)fwcaps16_to_caps32(9)fwcap_to_fwspeed(9)t4vf_port_init(9)t4vf_fw_reset(9)t4vf_query_params(9)t4vf_set_params(9)t4vf_fl_pkt_align(9)t4vf_get_sge_params(9)t4vf_get_vpd_params(9)t4vf_get_dev_params(9)t4vf_get_rss_glb_config(9)t4vf_get_vfres(9)t4vf_read_rss_vi_config(9)t4vf_write_rss_vi_config(9)t4vf_config_rss_range(9)t4vf_alloc_vi(9)t4vf_free_vi(9)t4vf_enable_vi(9)t4vf_enable_pi(9)t4vf_identify_port(9)t4vf_set_rxmode(9)t4vf_alloc_mac_filt(9)t4vf_free_mac_filt(9)t4vf_change_mac(9)t4vf_set_addr_hash(9)t4vf_get_port_stats(9)t4vf_iq_free(9)t4vf_eth_eq_free(9)t4vf_link_down_rc_str(9)t4vf_handle_get_port_info(9)t4vf_update_port_info(9)t4vf_handle_fw_rpl(9)t4vf_get_vf_mac_acl(9)t4vf_get_vf_vlan_acl(9)
and that's the page bestie πβ¨ go forth and query your BAR2 SGE Queue registers responsibly π
source/version: ./drivers/net/ethernet/chelsio... Β· dated October 2026 Β· mwah, bye π
π¦ 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