ice_set_init_fdir_seg(9)
π ice_set_init_fdir_seg(9) β Kernel API Manual, bestie edition β¨
okay so this is a page from the Kernel API Manual and it's about ice_set_init_fdir_seg(9) β yes that's a whole mouthful, i know, but stay with me π«Ά
πΈ NAME πΈ
ice_set_init_fdir_seg β literally the function that sets up your init flow segment. that's it. that's the name. the manpage gives us nothing else and honestly? iconic minimalism π
β¨ SYNOPSIS β¨
int ice_set_init_fdir_seg (struct ice_flow_seg_info *seg , enum
ice_flow_seg_hdr l3_proto , enum ice_flow_seg_hdr l4_proto );
so it returns an int (as functions do π) and takes three things. three! not four. we love a manageable arg count π
π¦ ARGUMENTS π¦
segβ the flow segment that's getting programmed, like this is the thing you're handing over to be set up πl3_protoβ you gotta give it eitherICE_FLOW_SEG_HDR_IPV4orICE_FLOW_SEG_HDR_IPV6. that's the whole vibe check for layer 3, no other options bestie πl4_protoβ and for layer 4 it's eitherICE_FLOW_SEG_HDR_TCPorICE_FLOW_SEG_HDR_UDP. tcp or udp, pick your fighter β
π₯ DESCRIPTION π₯
okay so what does it actually do: it sets the configuration for perfect filters onto the flow segment you passed in, so the HW filter can be programmed. slay π
β οΈ but hear me LOUD: this is to be called only when initializing filters, because this function assumes no filters exist. it literally does not check. it trusts you. do not betray that trust π if you call it at the wrong time you're on your own, fr fr.
π§ SEE ALSO π§
so many friends, so little time β here's the whole group chat:
- Kernel file
./drivers/net/ethernet/intel/ice/ice_ethtool_fdir.c 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_num_avail_fltr(9)ice_fdir_alloc_flow_prof(9)ice_fdir_prof_vsi_idx(9)ice_fdir_set_hw_fltr_rule(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 i said. huge friend group. no cap π
π sign-off π
and that's the whole page, bestie! this one lives in ./drivers/net/ethernet/intel/ice and it's dated October 2026 β yes, the future, because this kernel manpage is ahead of its time βπ
go forth and initialize your filters correctly, 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