ice_devlink_set_switch_id(9)
π ice_devlink_set_switch_id(9) β a Kernel API Manual moment
okay bestie, sit down, because we're doing kernel networking today and this one is lowkey cute. This page lives in the Kernel API Manual (yes, the whole manual, and this function is one of its main characters β¨). Also quick vibe note: the synopsis looks split across two lines in the traditional formatting, but it's fr fr just one call:
void ice_devlink_set_switch_id (struct ice_pf *pf , struct
netdev_phys_item_id *ppid );
πΈ NAME πΈ
ice_devlink_set_switch_id β it sets a unique switch id based on the pci dsn</p>. that's the whole job. she does one thing and she eats. π
β¨ SYNOPSIS β¨
void ice_devlink_set_switch_id (struct ice_pf *pf , struct netdev_phys_item_id *ppid );
like, copy it exactly, don't @ me about the spacing, that's how the original rolls. π«Ά
π ARGUMENTS π
pfβ the PF you're creating a devlink port for. yes, that PF. your fave. πppidβ astructwith switch id information inside it. it's giving "little container of identity" π¦
π₯ SEE ALSO π₯
okay this is the part where the manpage goes full group-chat-adds-everyone. here's the whole squad, no cap, nobody gets left out:
Kernel file ./drivers/net/ethernet/intel/ice/devlink/port.cβ the literal file, the source of truth, the origin story π§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_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_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 twenty-nine besties plus the file path. iconic behavior honestly. π
tiny note from your girl: this page has no OPTIONS, no ENVIRONMENT, no EXIT STATUS, no ERRORS, no WARNINGS, no BUGS, no AUTHOR and no COPYRIGHT section β that's not me being lazy, that's genuinely the whole page. the vibe check came back minimal. πβ¨
and that's the page, bestie!! π sign-off time: this little beauty comes from the kernel source path cutely abbreviated as ./drivers/net/ethernet/intel/i..., dated October 2026, and it's all part of the Kernel API Manual. go forth and set those switch ids, you absolute main character. ππ¦πΈ
π¦ 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