t4vf_enable_vi(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… t4vf_enable_vi β€” the Kernel API Manual, section 9, bestie ✨

Okay so picture this: you're deep in section 9 of the Kernel API Manual and you need to flip a virtual interface on or off. That's it. That's the whole gig. Her name is t4vf_enable_vi, she's iconic, and she's about to make your whole networking afternoon πŸ’–


✨ NAME ✨

t4vf_enable_vi β€” enable/disable a virtual interface πŸŽ€

Like, she does both?? A dual-threat queen. One call, two directions, zero drama (unless you count the mailbox stuff, which, lowkey, we'll get to in SEE ALSO πŸ‘€).


🌸 SYNOPSIS 🌸

int t4vf_enable_vi (struct adapter *adapter , unsigned int viid , bool
       rx_en , bool tx_en );

She returns an int, she takes four args, and yes the signature is doing that little line-wrap thing where bool sits by itself at the end of a line. Not me being weird about it β€” that's literally how it's printed. Copy it exactly, bestie, fr fr πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • adapter β€” the adapter 🫢 like, the whole device situation you're working with
  • viid β€” the Virtual Interface ID ✨ the specific VI you're pointing at, no cap
  • rx_en β€” 1=enable Rx, 0=disable Rx πŸ“₯ the receive switch, literally a one or a zero, that's the whole vibe
  • tx_en β€” 1=enable Tx, 0=disable Tx πŸ“€ the transmit switch, same deal, 1 on / 0 off

πŸ’œ DESCRIPTION πŸ’œ

Enables/disables a virtual interface. 🌈

That's it. That's the tweet. You give her the adapter, you tell her which VI, you say whether Rx is a yes or a no, you say whether Tx is a yes or a no, and she goes and does the thing. Two booleans, four combinations, infinite main character energy πŸ‘‘

Ngl the description is short because the manpage is short. I'm not gonna sit here and invent lore that isn't in the source β€” that would be lying, and lying is not slay πŸ™ˆ

⭐ SEE ALSO ⭐

First up, the source itself β€” typed out exactly, 9-section style:

Kernel file ./drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c πŸ“

And now the extended universe, because this function does not exist alone, she has a whole friend group:

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_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)

Thirty-four friends and every single one of them got an invite πŸŽ€ not a single one skipped, periodt.


🌷 the cute lil sign-off 🌷

This page came straight out of ./drivers/net/ethernet/chelsio... (that's the source/version bit, they truncate it with the lil dots and honestly same, my bio is truncated too 😭) and it's dated October 2026 β€” yes, the future, she's ahead of her time, she's giving time-travel icon πŸ•°οΈβœ¨

Mwah, go enable a virtual interface, you've got this πŸ’–πŸŒΈπŸ¦‹

πŸ“¦ where this page comes from