ice_get_ethtool_fdir_entry(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ice_get_ethtool_fdir_entry(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual ✨ β€” yes we're reading kernel docs together, this is our bonding activity now, no takebacks 🫢


🌸 NAME 🌸

ice_get_ethtool_fdir_entry β€” the girl whose whole job is filling an ethtool structure with fdir filter data πŸ’– like she's literally the messenger between the hardware and ethtool, and she does it flawlessly, periodt.


✨ SYNOPSIS ✨

int ice_get_ethtool_fdir_entry (struct ice_hw *hw , struct ethtool_rxnfc *cmd );

that's her signature, that's the whole vibe, she takes two things and returns an int and honestly? iconic. πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • hw β€” the hardware structure that contains the filter list πŸ¦‹ this is the source-of-truth bestie, the one holding all the fdir filters, and she's gonna go look at it.
  • cmd β€” the ethtool command data structure that receives the filter data πŸ’Œ so hw has the tea, and cmd is the one getting told everything. it's giving passing notes in class.

🌈 DESCRIPTION 🌈

So what does she actually return? Simple, clean, no cap:

  • Returns 0 on success πŸŽ‰
  • Returns -EINVAL on failure πŸ’€

that's it. that's the whole description. she's a one-job icon and she ate. ✨


πŸ‘‘ SEE ALSO πŸ‘‘

bestie there are so many siblings in this family, buckle up, we're listing literally every single one πŸ§šβ€β™€οΈ

Kernel file: ./drivers/net/ethernet/intel/ice/ice_ethtool_fdir.c

and then the whole friend group:

look at that roster 😭 literally the whole friend group showed up to the group chat. iykyk πŸ’œ


ngl bestie, if you ever forget what -EINVAL means, just remember: she tried her best but the vibes were off πŸ’€

and that's a wrap, mwah πŸ’‹ this page lives in ./drivers/net/ethernet/intel/ice, dated October 2026 β€” see you in the next manual bestie, stay slaying πŸŒŸπŸŽ€πŸ¦‹

πŸ“¦ where this page comes from