ice_fdir_num_avail_fltr(9)
π ice_fdir_num_avail_fltr β the Kernel API Manual, bestie edition π¦
okay so this is a page from the Kernel API Manual (the (9) is giving "section 9, kernel interfaces" β¨) and it's all about ice_fdir_num_avail_fltr. yes that's a long name. no we're not shortening it. it's iconic and we respect it. π
β¨ NAME β¨
ice_fdir_num_avail_fltr β literally just returns the number of unused flow director filters π
that's it. that's the whole job. and she does it flawlessly.
π¦ SYNOPSIS π¦
int ice_fdir_num_avail_fltr (struct ice_hw *hw , struct ice_vsi *vsi );
like, she takes two pointers and hands you back an int. simple. elegant. main character energy fr fr π
π ARGUMENTS π
hwβ pointer to the hardware structure. the actual physical vibes. π₯οΈvsiβ the software VSI structure. the software-side bestie that mirrors it. πΈ
π DESCRIPTION π
okay so here's the lore, because you need to know this. there are 2 filter pools:
- the guaranteed pool π₯
- the best effort pool (a.k.a. shared) π€
each VSI can pull filters from either pool. no gatekeeping. π«Ά
the guaranteed pool gets divided between VSIs β so everyone gets their own little slice, cute. and the best effort filter pool is common to all VSIs and is a device shared resource pool β meaning it's one big communal snack bowl for the whole device π
so the number of filters available to this VSI is:
the sum of the VSI's guaranteed filter pool β the global available best effort filter pool β¨
and then β the moment we've all been waiting for β she returns the number of available flow director filters to this VSI. ate. no crumbs. π₯
π SEE ALSO π
the kernel file lives at ./drivers/net/ethernet/intel/ice/ice_ethtool_fdir.c β go read it, it's giving lore drop π
and now, the squad. the whole friend group. every single one of them, not skipping a single name because that would be disrespectful: π
ice_fltr_to_ethtool_flow(9)ice_ethtool_flow_to_fltr(9)ice_is_mask_valid(9)ice_get_ethtool_fdir_entry(9)ice_get_fdir_fltr_ids(9)ice_fdir_remap_entries(9)ice_fdir_rem_adq_chnl(9)ice_fdir_get_hw_prof(9)ice_fdir_erase_flow_from_hw(9)ice_fdir_rem_flow(9)ice_fdir_release_flows(9)ice_fdir_replay_flows(9)ice_parse_rx_flow_user_data(9)ice_fdir_alloc_flow_prof(9)ice_fdir_prof_vsi_idx(9)ice_fdir_set_hw_fltr_rule(9)ice_set_init_fdir_seg(9)ice_create_init_fdir_rule(9)ice_set_fdir_ip4_seg(9)ice_set_fdir_ip4_usr_seg(9)ice_set_fdir_ip6_seg(9)ice_set_fdir_ip6_usr_seg(9)ice_fdir_vlan_valid(9)ice_set_ether_flow_seg(9)ice_set_fdir_vlan_seg(9)ice_cfg_fdir_xtrct_seq(9)ice_update_per_q_fltr(9)ice_fdir_write_fltr(9)ice_fdir_write_all_fltr(9)ice_fdir_replay_fltrs(9)ice_fdir_create_dflt_rules(9)ice_fdir_del_all_fltrs(9)ice_vsi_manage_fdir(9)ice_fdir_do_rem_flow(9)ice_fdir_update_list_entry(9)ice_del_fdir_ethtool(9)ice_update_ring_dest_vsi(9)ice_set_fdir_input_set(9)ice_add_fdir_ethtool(9)
like. forty of them. a whole group chat. iykyk πβ¨
ngl bestie, this one's genuinely chill β no danger flags, no deprecated warnings, no undefined behaviour lurking in the shadows. she just counts filters and goes home. a queen. π
πΈ okay that's the page!! huge shoutout to ./drivers/net/ethernet/intel/ice for hosting this masterpiece, and to October 2026 for the timestamp β future vibes only, we love to see it π¦β¨π mwah, go read your kerneldoc, ily, byeee π
π¦ 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