ice_eswitch_mode_set(9)
π ice_eswitch_mode_set(9) β the glow-up edition
okay so bestie, welcome to section 9 of the Kernel API Manual β yes this is a kernel-doc moment, and no you may not skip it π the star of the show today is ice_eswitch_mode_set, and honestly? she's giving "one job, does it well." β¨
πΈ NAME πΈ
ice_eswitch_mode_set β bestie. she sets a new eswitch mode. that's it. that's the whole vibe. no cap π
π¦ SYNOPSIS π¦
int ice_eswitch_mode_set (struct devlink *devlink , u16 mode , struct
netlink_ext_ack *extack );
lowkey iconic signature, ngl. returns an int, takes three things, we love a clean API π«Ά
β¨ ARGUMENTS β¨
devlinkβ pointer to thedevlinkstructure π literally the main character of this whole call.modeβ the eswitch mode we're switching to. it's au16, it's the destination, it's the moment πextackβ pointer to theextackstructure. the receipts handler, if you will π
π SEE ALSO π
okay so if you wanna go deeper (and you should), the source lives right here in the kernel tree:
./drivers/net/ethernet/intel/ice/ice_eswitch.c
and here's the whole friend group β they all show up together, it's giving squad goals fr fr π§:
ice_eswitch_setup_env(9)ice_eswitch_release_repr(9)ice_eswitch_setup_repr(9)ice_eswitch_cfg_vsi(9)ice_eswitch_decfg_vsi(9)ice_eswitch_update_repr(9)ice_eswitch_port_start_xmit(9)ice_eswitch_set_target_vsi(9)ice_eswitch_release_env(9)ice_eswitch_enable_switchdev(9)ice_eswitch_disable_switchdev(9)ice_eswitch_mode_get(9)ice_is_eswitch_mode_switchdev(9)ice_eswitch_start_all_tx_queues(9)ice_eswitch_stop_all_tx_queues(9)ice_eswitch_attach_vf(9)ice_eswitch_attach_sf(9)ice_eswitch_detach_vf(9)ice_eswitch_detach_sf(9)ice_eswitch_get_target(9)
like, that's a whole group chat right there π every single one of them, not a single name dropped (or, um, not dropped) π
ngl bestie, this page is short and sweet β so read it twice, screenshot it, put it in the group chat. the vibe check is: set the mode. slay. β
sign-off time π«Άβ¨ this little gem comes to you from ./drivers/net/ethernet/intel/ice, dated October 2026 β periodt. now go forth and eswitch responsibly ππ
π¦ 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