t4vf_set_rxmode(9)
π t4vf_set_rxmode β a.k.a. the "make this virtual interface behave" page (section 9 of the Kernel API Manual, bestie)
okay so picture this: it's a kernel API manual page, section 9, and it's literally called t4vf_set_rxmode. That's the whole vibe. Let's get into it π
β¨ SYNOPSIS β¨
int t4vf_set_rxmode (struct adapter *adapter , unsigned int viid , int
mtu , int promisc , int all_multi , int bcast , int vlanex , bool
sleep_ok );
yes it's a int-returning function, yes it takes eight whole arguments, and yes we're gonna go through every single one of them because that's just who I am π«Ά
π¦ ARGUMENTS π¦
adapterβ the adapter. like, the actual adapter, the main character of this whole operation πviidβ the VI id. that's the virtual interface's little name tag π·οΈmtuβ the new MTU, or-1if you want no change at all (she's fine as she is, don't touch her)promiscβ1to enable promiscuous mode,0to disable it,-1for no change πall_multiβ1to enable all-multi mode,0to disable it,-1for no changebcastβ1to enable broadcast Rx,0to disable it,-1for no change π£vlanexβ1to enable hardware VLAN Tag extraction,0to disable it,-1for no change π·οΈβ¨sleep_okβbool, and it means the call is allowed to sleep π΄ (yes, "allowed", not "forced", don't come for me)
ngl the -1 thing is lowkey iconic β it's the "no change please, I'm just here for the other flags" option, and it shows up in five of these arguments. respect the consistency π
πΈ DESCRIPTION πΈ
Sets Rx properties of a virtual interface.
that's it. that's the sentence. short king energy, but it's doing exactly what it says on the tin π
π SEE ALSO π
kernel file is right here, no cap:
./drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c
and bestie, the friend group is huge β everyone in this header file is connected, iykyk:
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_bar2_sge_qregs(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_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)
like I said. big friend group. all (9), all locked in π₯
and that's the page!! mwah π this came from ./drivers/net/ethernet/chelsio... (that's the source/version bit, the terminal truncated it, not me π) and it's dated October 2026 β so yes, future girlie behavior, we love to see it. go set some Rx properties, bestie, you've got this ππ
π¦ 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