ice_eswitch_cfg_vsi(9)
π ice_eswitch_cfg_vsi(9) β the kernel API manual, but make it make sense
okay so bestie, welcome to the Kernel API Manual entry for ice_eswitch_cfg_vsi(9) β yes that's the real manual name, we're in the kernel docs section (section 9, the fun one) β and no, it's not scary, i promise. this is the little function that sets a VSI up so it can vibe in slow-path mode. that's the whole plot. let's get into it π«Ά
β¨ NAME β¨
ice_eswitch_cfg_vsi β configure VSI to work in slow-path
like, that's it. that's the job. it takes a VSI and gets it configured to live its slow-path life. iconic, honestly πΈ
π¦ SYNOPSIS π¦
int ice_eswitch_cfg_vsi(struct ice_vsi *vsi, const u8 *mac);
two arguments in, int out. classic. very demure, very kernel π
π ARGUMENTS π
vsiβ thestruct ice_vsi *β this is the VSI structure of the representee. yep, the one being represented. she's the main character here πmacβ theconst u8 *β the representee's MAC address. literally just the MAC. no cap π
β RETURN β
0on success π (slay)- non-zero on error π (not slay, but like, it happens)
fr fr bestie, check that return value. 0 is the green flag, anything else is the red flag and you should not just ignore it π
π SEE ALSO π
the whole friend group, in the source file:
- Kernel file
./drivers/net/ethernet/intel/ice/ice_eswitch.c
and the linked crew (all (9) sections, all part of the same lore):
ice_eswitch_setup_env(9)ice_eswitch_release_repr(9)ice_eswitch_setup_repr(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_set(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 i said. whole friend group. go read them, iykyk π₯
lowkey the most important part: this one only does the slow-path config. don't go expecting fast-path magic from it. it says what it does, it does what it says π§
and that's the page!! source is ./drivers/net/ethernet/intel/ice, dated October 2026, and it goes out under the ice_eswitch_cfg_vsi(9) header β periodt ππβ¨
π¦ 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