ice_is_switchdev_running(9)
π NAME π
ice_is_switchdev_running β bestie's lil vibe check for whether switchdev is actually configured π
so this is a kernel API manual page (ice_is_switchdev_running(9), section 9, slay) and honestly? it's a whole mood. it's the function that tells you if switchdev is up and running, no cap.
β¨ SYNOPSIS β¨
bool ice_is_switchdev_running (struct ice_pf *pf );
ok so it returns a bool (the O.G. true/false situation π
) and takes exactly one thing. very demure, very mindful.
π ARGUMENTS π
pfβ pointer to the PF structure. that's it. that's the whole argument. your main character parameter π«Ά
π¦ DESCRIPTION π¦
okay so here's the tea β β this function returns true if the eswitch mode is set to DEVLINK_ESWITCH_MODE_SWITCHDEV and switchdev is configured. both things. together. like a duo that ate and left no crumbs π₯
if that's not the case? it returns false. simple as. literally nothing else to report, and honestly? we love a function that knows exactly what it is π
ngl the key detail here is the and β the mode beingDEVLINK_ESWITCH_MODE_SWITCHDEValone is not enough. switchdev has to actually be configured too, or you're gettingfalse, periodt.
π SEE ALSO π
the kernel file this lives in, iconic:
./drivers/net/ethernet/intel/ice/ice.h
and a whole friend group of related functions, all of them linking out from the same page, all of them pulling up in the group chat π:
ice_vector_ch_enabled(9)ice_ptp_pf_handles_tx_interrupt(9)ice_irq_dynamic_ena(9)ice_netdev_to_pf(9)ice_is_txtime_ena(9)ice_is_txtime_cfg(9)ice_get_xp_from_qid(9)ice_rx_xsk_pool(9)ice_tx_xsk_pool(9)ice_get_max_txq(9)ice_get_max_rxq(9)ice_get_main_vsi(9)ice_get_netdev_priv_vsi(9)ice_get_ctrl_vsi(9)ice_find_vsi(9)ice_is_adq_active(9)ice_set_rdma_cap(9)ice_clear_rdma_cap(9)ice_is_dual(9)ice_is_primary(9)ice_pf_src_tmr_owned(9)ice_get_primary_hw(9)ice_get_ctrl_pf(9)
and that's the whole page, bestie π§β¨ this little gem lives in ./drivers/net/ethernet/intel/ice and the version date on it is October 2026 β like, she's from the future and she's still serving π
π bye mwah π«Άπ
π¦ 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