ice_devlink..._hw_addr_set(9)
okay so bestie, welcome to the ice_devlink..._hw_addr_set(9) page from the Kernel API Manual π
this one is short, focused, and honestly itβs giving βtiny function, clear jobβ energy. β¨
π NAME π
ice_devlink_port_fn_hw_addr_set β devlink handler for mac address set. Thatβs the whole vibe: it handles setting the mac address. π
π¦ SYNOPSIS π¦
int ice_devlink_port_fn_hw_addr_set (struct devlink_port *port , const
u8 *hw_addr , int hw_addr_len , struct netlink_ext_ack *extack );
β¨ ARGUMENTS β¨
portβ pointer to devlink port, aka the port weβre doing this for πhw_addrβ hw address to set, the actual address bestie π«Άhw_addr_lenβ hw address length, so we know how long it is πextackβ extack for reporting error messages, the little messenger when things go sideways π
πΈ DESCRIPTION πΈ
Sets mac address for the port, verifies arguments and copies address to the subfunction structure. no cap, thatβs the whole description β itβs giving βdo the thing, check the thing, copy the thingβ π
π₯ RETURN π₯
zero on success or an error code on failure. so: happy path = zero, sad path = error code π
π SEE ALSO π
also peep these, iykyk π
- Kernel file
./drivers/net/ethernet/intel/ice/devlink/port.c ice_devlink_port_opt_speed_str(9)ice_devlink_port_options_print(9)ice_devlink_aq_set_port_option(9)ice_devlink_port_split(9)ice_devlink_port_unsplit(9)ice_devlink_set_port_split_options(9)ice_devlink_set_switch_id(9)ice_devlink_create_pf_port(9)ice_devlink_destroy_pf_port(9)ice_devlink_port_get_vf_fn_mac(9)ice_devlink_port_set_vf_fn_mac(9)ice_devlink_create_vf_port(9)ice_devlink_destroy_vf_port(9)ice_devlink_create_sf_dev_port(9)ice_devlink_destroy_sf_dev_port(9)ice_activate_dynamic_port(9)ice_deactivate_dynamic_port(9)ice_dealloc_dynamic_port(9)ice_dealloc_all_dynamic_ports(9)ice_devlink_port_new_check_attr(9)ice_devlink_port_del(9)ice_devlink_port_fn_hw_addr_get(9)ice_devlink_port_fn_state_set(9)ice_devlink_port_fn_state_get(9)ice_reserve_sf_num(9)ice_devlink_create_sf_port(9)ice_devlink_destroy_sf_port(9)ice_alloc_dynamic_port(9)ice_devlink_port_new(9)
okay thatβs the whole tea π«Ά source/version: ./drivers/net/ethernet/intel/i... Β· October 2026 Β· page ice_devlink..._hw_addr_set(9) β byeee bestie π
π¦ 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