ice_check_if_dflt_vsi(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ice_check_if_dflt_vsi β€” from the Kernel API Manual, section (9) 🧚

okay so bestie, we're in the kernel API manual today and honestly? this one is short and sweet and we're gonna slay it. ice_check_if_dflt_vsi is the function, it lives in section (9) of the Kernel API Manual, and its whole entire job is literally in the name. let's get into it πŸ’–


✨ NAME ✨

ice_check_if_dflt_vsi β€” check if VSI is default VSI πŸŽ€

like... that's it. that's the function. vibe check for VSIs, no cap.


πŸ¦‹ SYNOPSIS πŸ¦‹

bool ice_check_if_dflt_vsi (struct ice_port_info *pi , u16 vsi_handle ,
       bool *rule_exists );

she returns a bool, periodt. three args, all in the block above, copy them exactly bestie πŸ™ˆ


🌸 ARGUMENTS 🌸

  • pi β€” pointer to the port_info structure, your main character struct fr fr
  • vsi_handle β€” the vsi handle to check for in the filter list, iykyk
  • rule_exists β€” indicates if there are any VSI's in the rule list (yes it's an out-param, she's reporting back to you πŸ’Œ)

πŸ’œ DESCRIPTION πŸ’œ

so what does she actually do? she checks if the VSI is in a default VSI list, and β€” bonus β€” also indicates if the default VSI list is empty. that's the whole thing. short queen, iconic behavior, ate and left no crumbs πŸ‘‘


πŸ”₯ SEE ALSO πŸ”₯

the friend group is huge, ngl, literally the entire ice_switch.c extended universe. here's everybody, exactly as listed, no gatekeeping:

Kernel file ./drivers/net/ethernet/intel/ice/ice_switch.c
ice_init_def_sw_recp(9), ice_aq_get_sw_cfg(9), ice_aq_add_vsi(9),
ice_aq_free_vsi(9), ice_aq_update_vsi(9), ice_is_vsi_valid(9),
ice_get_hw_vsi_num(9), ice_get_vsi_ctx(9), ice_save_vsi_ctx(9),
ice_clear_vsi_q_ctx(9), ice_clear_vsi_ctx(9), ice_clear_all_vsi_ctx(9),
ice_add_vsi(9), ice_free_vsi(9), ice_update_vsi(9),
ice_cfg_rdma_fltr(9), ice_aq_alloc_free_vsi_list(9), ice_aq_sw_rules(9),
ice_aq_add_recipe(9), ice_aq_get_recipe(9),
ice_update_recipe_lkup_idx(9), ice_aq_map_recipe_to_profile(9),
ice_aq_get_recipe_to_profile(9), ice_init_chk_recipe_reuse_support(9),
ice_alloc_recipe(9), ice_free_recipe_res(9), ice_release_recipe_res(9),
ice_get_recp_to_prof_map(9), ice_get_recp_frm_fw(9),
ice_fill_sw_info(9), ice_fill_eth_hdr(9), ice_fill_sw_rule(9),
ice_add_marker_act(9), ice_create_vsi_list_map(9),
ice_update_vsi_list_rule(9), ice_create_vsi_list_rule(9),
ice_create_pkt_fwd_rule(9), ice_update_pkt_fwd_rule(9),
ice_update_sw_rule_bridge_mode(9), ice_add_update_vsi_list(9),
ice_find_rule_entry(9), ice_find_vsi_list_entry(9),
ice_add_rule_internal(9), ice_remove_vsi_list_rule(9),
ice_rem_update_vsi_list(9), ice_remove_rule_internal(9),
ice_vlan_fltr_exist(9), ice_add_mac(9), ice_add_vlan_internal(9),
ice_add_vlan(9), ice_add_eth_mac(9), ice_remove_eth_mac(9),
ice_rem_sw_rule_info(9), ice_rem_adv_rule_info(9), ice_cfg_dflt_vsi(9),
ice_vsi_uses_fltr(9), ice_remove_mac(9), ice_remove_vlan(9),
ice_add_entry_to_vsi_fltr_list(9), ice_add_to_vsi_fltr_list(9),
ice_determine_promisc_mask(9), ice_remove_promisc(9),
ice_clear_vsi_promisc(9), ice_set_vsi_promisc(9),
ice_set_vlan_vsi_promisc(9), ice_remove_vsi_lkup_fltr(9),
ice_remove_vsi_fltr(9), ice_alloc_res_cntr(9), ice_free_res_cntr(9),
ice_share_res(9), ice_find_recp(9), ice_change_proto_id_to_dvm(9),
ice_prot_type_to_id(9), ice_fill_valid_words(9),
ice_fill_fv_word_index(9), ice_find_free_recp_res_idx(9),
ice_calc_recp_cnt(9), ice_add_sw_recipe(9), ice_subscribe_recipe(9),
ice_subscribable_recp_shared(9), ice_add_adv_recipe(9),
ice_dummy_packet_add_vlan(9), ice_find_dummy_packet(9),
ice_fill_adv_dummy_packet(9), ice_fill_adv_packet_tun(9),
ice_fill_adv_packet_vlan(9), ice_find_adv_rule_entry(9),
ice_adv_add_update_vsi_list(9), ice_add_adv_rule(9),
ice_replay_vsi_fltr(9), ice_adv_rem_update_vsi_list(9),
ice_rem_adv_rule(9), ice_rem_adv_rule_by_id(9),
ice_replay_vsi_adv_rule(9), ice_replay_vsi_all_fltr(9),
ice_rm_all_sw_replay_rule_info(9)
bestie there are like a hundred of them and yes i listed every single one, we do not do "etc." in this house πŸ’…

and that's the whole page!! 🫢 she's from ./drivers/net/ethernet/intel/ice, version October 2026, and the manual page title is ice_check_if_dflt_vsi(9) β€” so like, if you ever forget where this came from, it's right there ✨ mwah, go read some kernel source, ily, bye πŸ“πŸ’–

πŸ“¦ where this page comes from