ice_devlink_set_switch_id(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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 β€” a struct with 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:

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