ice_set_fdir_ip4_usr_seg(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ‘‘ ice_set_fdir_ip4_usr_seg(9) β€” Kernel API Manual 🧚

okay bestie, welcome to the group chat πŸ’– this one's a kernel API manual page, and yeah the upstream NAME line is literally just the function name with a sad little dangling dash and no description behind it β€” iconic minimalism honestly, but we're gonna explain it properly anyway. 🫢


✨ NAME ✨

ice_set_fdir_ip4_usr_seg β€” (and that's it, that's the whole name blurb upstream gave us, no cap, they left the description slot empty πŸ’€)


🌸 SYNOPSIS 🌸

int ice_set_fdir_ip4_usr_seg (struct ice_flow_seg_info *seg ,
                              struct ethtool_usrip4_spec *usr_ip4_spec ,
                              bool *perfect_fltr );

that's the whole signature, returns an int, takes three things. slay. ⭐


πŸŽ€ ARGUMENTS πŸŽ€

  • seg β€” the flow segment you're programming, i.e. the thing we're about to stuff offset data into. πŸ‘‘
  • usr_ip4_spec β€” the ethtool userdef packet offset. it's giving "user-defined, please respect my choices". 🌈
  • perfect_fltr β€” heads up bestie, this one is only valid on success 😭 it comes back true if it's a perfect filter, and false if it's not. don't go reading it if the call flaked, it's not gonna be meaningful, fr fr.

πŸ’… DESCRIPTION πŸ’…

so what does this thing actually do? it sets the offset data into the flow segment, and that segment is what gets used to program the HW table for IPv4. that's the tea. πŸ“

like literally that's it β€” it's a little helper that takes your ethtool_usrip4_spec info, works out the offsets, and drops them into the segment structure so the hardware table programming step knows wtf to do for IPv4 flows. lowkey essential, highkey unglamorous. ✨


πŸ¦‹ SEE ALSO πŸ¦‹

the kernel file this lives in! πŸ“

  • ./drivers/net/ethernet/intel/ice/ice_ethtool_fdir.c

and the whole extended friend group of related functions (yes, all of them, we're not skipping a single one, that would be rude πŸ™ˆ):


okay that's the page!! πŸŽ€ sign-off time: this one's sourced from ./drivers/net/ethernet/intel/ice, dated October 2026, and it's all filed under the kernel API manual section 9. go forth and set those IPv4 offsets bestie, ily, bye!! πŸ’œπŸ”₯πŸ‘‘

πŸ“¦ where this page comes from