i40e_get_ethtool_fdir_entry(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… i40e_get_ethtool_fdir_entry β€” look up a filter based on Rx flow

okay so this is a page from the Kernel API Manual, bestie, and it's about one very specific little function that goes hunting for a filter. let's get into it πŸŽ€


✨ SYNOPSIS ✨

int i40e_get_ethtool_fdir_entry (struct i40e_pf *pf , struct ethtool_rxnfc *cmd );

that's the whole signature, no cap. it takes two pointers and gives you back an int. 🫢


🌸 ARGUMENTS 🌸

  • pf β€” pointer to the physical function struct. like, the big one. the main character. you're passing in the whole PF here πŸ’œ
  • cmd β€” the command to get or set Rx flow classification rules. this is the little envelope carrying your request πŸ¦‹

πŸ’– DESCRIPTION πŸ’–

okay so what does it actually do. this function looks up a filter based on the Rx flow classification command, and if it finds one, it fills in the flow spec info for it. that's it. that's the whole vibe. πŸ”₯

so basically: you hand it a command, it goes searching, and when the filter exists it fills in the flow spec info so you can see what you got. obsessed.

and the return value? tea time πŸ“:

  • returns 0 on success πŸŽ‰
  • returns -EINVAL if the filter is not found 😭

so if you get -EINVAL back, don't panic β€” it just means there was no filter matching what you asked for. it's giving "nothing to see here." πŸ’€


πŸ¦‹ SEE ALSO πŸ¦‹

the kernel file this lives in is ./drivers/net/ethernet/intel/i40e/i40e_ethtool.c β€” that's the home base, iykyk. and here's the whole friend group, literally every single one, in order, not skipping a single bestie 🌈:

like, that is a lot of related functions and honestly? iconic. go read them if you want the full lore πŸ‘‘


and that's the page!! πŸ’… huge shoutout to the ./drivers/net/ethernet/intel/i40e directory β€” that's where all this lives β€” and this particular manual page is dated October 2026. slay, see you in the next one, bestie πŸ§šβ€β™€οΈβ­

πŸ“¦ where this page comes from