ice_devlink...w_check_attr(9)
π NAME π
ice_devlink_port_new_check_attr β bestie, this is the vibe check for new port attributes β¨
So like, this is a page from the Kernel API Manual (ice_devlink...w_check_attr(9)), and it's literally just here to make sure the new port attrs are valid before anything else happens.
π SYNOPSIS π
int ice_devlink_port_new_check_attr (struct ice_pf *pf , const struct
devlink_port_new_attrs *new_attr , struct netlink_ext_ack *extack );
πΈ ARGUMENTS πΈ
pfβ pointer to the PF structure, aka the main character of this whole function π«Άnew_attrβ the attributes for the new port, like the little outfit the port is gonna wear β¨extackβ extack for reporting error messages, so when something's off it can actually tell you why π
π¦ DESCRIPTION π¦
Okay so real talk: this function checks that the attributes for the new port are valid before continuing on to allocate the devlink port. Like a bouncer at the club checking IDs, but for port attrs π No valid attrs, no port, periodt.
β RETURN β
zero on success or an error code on failure. Slay if it's zero, not slay if it's an error code π
π SEE ALSO π
The kernel file this lives in, no cap:
./drivers/net/ethernet/intel/ice/devlink/port.c
And the whole friend group π«Ά:
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_del(9)ice_devlink_port_fn_hw_addr_set(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)
that's the whole page bestie, go forth and validate those attrs πβ¨
π§ sign-off cuteness: this was the Kernel API Manual version ofice_devlink...w_check_attr(9), sourced from./drivers/net/ethernet/intel/i...and dated October 2026 β iconic, no notes π π
π¦ 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