octep_ctrl_net_set_mac_addr(9)
π octep_ctrl_net_set_mac_addr β Kernel API Manual, bestie edition β¨
okay so real talk: you're looking at octep_ctrl_net_set_mac_addr(9), live from the Kernel API Manual section 9, and she is exactly what it says on the tin β this is the function that slides a MAC address into the firmware. no cap. π
πΈ NAME πΈ
octep_ctrl_net_set_mac_addr β set the MAC address in the firmware. that's the whole job, and she does it. π¦
β¨ SYNOPSIS β¨
int octep_ctrl_net_set_mac_addr (struct octep_device *oct , int vfid ,
u8 *addr , bool wait_for_response );
like, copy that exactly, don't get creative with it π
π«Ά ARGUMENTS π«Ά
octβ non-null pointer tostruct octep_device. non-null, bestie, I'm serious, she said non-null.vfidβ index of the virtual function. it's giving "which VF are we talking about" energy π₯addrβ non-null pointer to the MAC address. also non-null. two non-nulls in one function, we love a consistent queen πwait_for_responseβ poll for response. yes, it's abool, yes, it does the thing it says π
π DESCRIPTION π
return value: 0 on success, -errno on failure. that's it, that's the description, she's short and iconic π
ngl the whole spec is basically "give me a valid device, a valid address pointer, and tell me whether to poll" β and if it goes sideways you get a negative errno back. periodt.
π₯ SEE ALSO π₯
the kernel file in question, for the curious:
./drivers/net/ethernet/marvell/octeon_ep/octep_ctrl_net.h
and the whole friend group, alphabetically-ish, all in section 9 because they're a package deal π§:
octep_ctrl_net_init(9)octep_ctrl_net_get_link_status(9)octep_ctrl_net_set_link_status(9)octep_ctrl_net_set_rx_state(9)octep_ctrl_net_get_mac_addr(9)octep_ctrl_net_get_mtu(9)octep_ctrl_net_set_mtu(9)octep_ctrl_net_get_if_stats(9)octep_ctrl_net_get_link_info(9)octep_ctrl_net_set_link_info(9)octep_ctrl_net_recv_fw_messages(9)octep_ctrl_net_get_info(9)octep_ctrl_net_dev_remove(9)octep_ctrl_net_set_offloads(9)octep_ctrl_net_uninit(9)
and that's the page!! π sign-off time: this one came from ./drivers/net/ethernet/marvell..., dated October 2026, and it's literally titled octep_ctrl_net_set_mac_addr(9). slay, go set some MAC addresses, ily, 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