t4vf_get_vf_mac_acl(9)
π t4vf_get_vf_mac_acl(9) β from the Kernel API Manual, bestie π
Okay so welcome to the t4vf_get_vf_mac_acl page, my absolute beloved. It lives in the Kernel API Manual (section 9, kernel-functions territory, iykyk) and honestly it's giving "small function, big responsibilities." Let's get into it β¨
πΈ NAME πΈ
t4vf_get_vf_mac_acl β grab the MAC address that's gonna get set onto the VI of this VF. That's the whole vibe. π¦
β¨ SYNOPSIS β¨
int t4vf_get_vf_mac_acl (struct adapter *adapter , unsigned int port ,
unsigned int *naddr , u8 *addr );
Like, it returns an int, and yes she takes four arguments. Four! Main character energy fr fr. π
π«Ά ARGUMENTS π«Ά
adapterβ the adapter itself. The whole device. Your guy. πportβ the port that's associated with the vf. Gotta know which one!naddrβ the number of ACL MAC addresses that come back inaddr. So this one's telling you how many you're actually getting, not how many you asked for. πaddrβ placeholder for the MAC addresses. She holds the spot, the data moves in later. Iconic behaviour honestly.
π₯ DESCRIPTION π₯
So the whole point: find the MAC address that should be set to the VF's VI. That's it. That's the mission. π
And where does the requested MAC address even come from? From the host OS, bestie β it arrives via a callback in the PF driver. So it's not like this function invents it, it just goes and fetches the thing the host already told it about. Lowkey elegant ngl. β
π SEE ALSO π
The kernel file this lives in is ./drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c β go read it, it ate. π
And here's the whole friend group, no cap, every single one:
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_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_vlan_acl(9)
That's thirty-six whole pages, bestie. Thirty-six!! Go read them all, I'll wait π
Heads up: this page came out of ./drivers/net/ethernet/chelsio... and is dated October 2026 β so when you cite her, cite her right. π§
Okay that's the whole page, mwah, go forth and set that VI MAC correctly π πΈπ
π¦ 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