hns_mac_change_vf_addr(9)
π hns_mac_change_vf_addr(9) π
okay bestie, welcome to the Kernel API Manual β¨ this one's a lil function that literally changes a vf mac address, no cap. it's giving "small function, big responsibilities" energy π
πΈ NAME πΈ
hns_mac_change_vf_addr β change vf mac address π«
like... that's it. that's the whole vibe. it changes the MAC address of a VF. iconic behavior honestly π
β¨ SYNOPSIS β¨
int hns_mac_change_vf_addr (struct hns_mac_cb *mac_cb , u32 vmid , const
char *addr );
she takes three things and returns an int, periodt π
π¦ ARGUMENTS π¦
mac_cbβ the mac device π«Ά like, the whole device situation you're working withvmidβ the vmid π yes bestie, it's exactly what it sounds likeaddrβ the mac address π¬ the one you're swapping in
π SEE ALSO π
the kernel file lives right here, go look, iykyk:
./drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c
and here's the whole friend group, all linked up π:
hns_mac_need_adjust_link(9)hns_mac_get_inner_port_num(9)hns_mac_port_config_bc_en(9)hns_mac_vm_config_bc_en(9)hns_mac_get_autoneg(9)hns_mac_get_pauseparam(9)hns_mac_set_autoneg(9)hns_mac_set_pauseparam(9)hns_mac_init_ex(9)hns_mac_get_info(9)hns_mac_get_mode(9)hns_mac_get_cfg(9)hns_mac_init(9)
lowkey a full squad of hns_mac_* functions and they ALL made the list. main character energy from every single one π§
and that's the page, bestie!! π this cutie came from ./drivers/net/ethernet/hisilic... and is dated October 2026 β go forth and change those vf mac addresses, you 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