ice_add_rss_cfg_pre_gtpu(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ice_add_rss_cfg_pre_gtpu β€” the Kernel API Manual era ✨

okay so bestie, picture this: we're deep in the Intel ice driver, vibes are immaculate, and somebody needs to pre-process the GTPU RSS configuration before a brand new hash context gets added. That's this function. She's from the Kernel API Manual, she's ice_add_rss_cfg_pre_gtpu(9), and she is literally the bouncer at the door of your hash config. 🫢


✨ SYNOPSIS ✨

int ice_add_rss_cfg_pre_gtpu (struct ice_vf *vf , struct
       ice_vf_hash_gtpu_ctx *ctx , u32 ctx_idx );

no cap, that's the whole signature. let's break her down πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • vf β€” pointer to the VF info. the VF in question. she knows her.
  • ctx β€” pointer to the context of the GTPU hash. the actual vibe of the hash, handed to you.
  • ctx_idx β€” index of the hash context. which slot in the lineup we're talking about.

πŸ¦‹ DESCRIPTION πŸ¦‹

so what she actually does? She pre-processes the GTPU hash configuration before adding a new hash context. Iconic behaviour: she goes in and removes or reorders the existing hash configurations that might conflict with the new one. yes, she will move things. yes, she will delete things. it's giving main character energy but for TCAM entries. 😭

the way that this matters is because of ordering, bestie, and it is so real:

  • if a GTPU_UP or GTPU_DWN rule is configured after a GTPU_EH rule, the GTPU_EH hash will be matched first β€” because of TCAM write and match order, which is top-down. so in that case, the GTPU_EH rule must be moved after the GTPU_UP/DWN rule.
  • conversely (love a good conversely πŸ’œ), if a GTPU_EH rule is configured after a GTPU_UP/DWN rule, the UP/DWN rules should be removed to avoid conflict.

so yeah. she's the pre-processor. she's keeping the TCAM match order from becoming a whole mess. obsessed. 🌈


πŸ‘‘ RETURN πŸ‘‘

  • 0 on success πŸŽ‰
  • or a negative error code on failure πŸ’€ (she tried her best, fr fr)

πŸ”₯ SEE ALSO πŸ”₯

like, an entire friend group. the whole squad. 🧚


okay that's the page, bestie πŸ’– β€” source/version line lives at ./drivers/net/ethernet/intel/i... and this queen is dated October 2026. slay, see you in the next (9) page πŸŒΈπŸŽ€

πŸ“¦ where this page comes from