ice_flow_add_fld_raw(9)
πΈ NAME πΈ
ice_flow_add_fld_raw β sets the locations of a raw field from the entry's input buf, bestie π
(this one lives in the Kernel API Manual, section 9, iykyk π)
β¨ SYNOPSIS β¨
void ice_flow_add_fld_raw (struct ice_flow_seg_info *seg , u16 off , u8
len , u16 val_loc , u16 mask_loc );
π ARGUMENTS π
segβ the packet segment that the field you're setting actually belongs to, no cap π«Άoffβ where the raw field starts, measured in bytes from the beginning of the segmentlenβ the length of the raw pattern you wanna matchval_locβ the location of the value to match, taken from the entry's input buffermask_locβ the location of the mask value, also from the entry's input buffer
π DESCRIPTION π
okay so here's the vibe: this function specifies the offset of the raw field to be matched, counted from the beginning of the specified packet segment β¨ and it also specifies the locations β as byte offsets from the start of a flow entry's input buffer β of where the value to match and the mask value get extracted from.
Those locations then get stored in the flow profile. and like, when you're adding flow entries to the associated flow profile, those same locations can be used to quickly extract the values so you can build the content of a match entry. it's giving efficient. it's giving main character energy π
β οΈ real talk though: this function should only be used for fixed-size data structures. fixed-size only, bestie, don't play yourself π
π¦ SEE ALSO π¦
the kernel file itself, right here: ./drivers/net/ethernet/intel/ice/ice_flow.c π
and the whole extended friend group:
ice_flow_val_hdrs(9),ice_flow_calc_seg_sz(9),ice_flow_proc_seg_hdrs(9),ice_flow_xtract_fld(9),ice_flow_xtract_raws(9),ice_flow_create_xtrct_seq(9),ice_flow_proc_segs(9),ice_flow_find_prof_conds(9),ice_flow_find_prof_id(9),ice_flow_rem_entry_sync(9),ice_flow_add_prof_sync(9),ice_flow_rem_prof_sync(9),ice_flow_assoc_prof(9),ice_flow_disassoc_prof(9),ice_flow_set_parser_prof(9),ice_flow_add_prof(9),ice_flow_rem_prof(9),ice_flow_add_entry(9),ice_flow_rem_entry(9),ice_flow_set_fld_ext(9),ice_flow_set_fld(9),ice_flow_rem_vsi_prof(9),ice_flow_set_rss_seg_info(9),ice_rem_vsi_rss_list(9),ice_rem_vsi_rss_cfg(9),ice_get_rss_hdr_type(9),ice_rem_rss_list(9),ice_add_rss_list(9),ice_rss_config_xor_word(9),ice_rss_config_xor(9),ice_rss_set_symm(9),ice_rss_cfg_raw_symm(9),ice_rss_update_raw_symm(9),ice_add_rss_cfg_sync(9),ice_add_rss_cfg(9),ice_rem_rss_cfg_sync(9),ice_rem_rss_cfg(9),ice_add_avf_rss_cfg(9),ice_set_rss_cfg_symm(9),ice_replay_rss_cfg(9),ice_get_rss_cfg(9)
and that's the whole page, periodt π«Άπ this little icon came from ./drivers/net/ethernet/intel/ice and it's dated October 2026 β go off, ice_flow_add_fld_raw(9), you ate π
β¨
π¦ 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