ice_calc_gtpu_ctx_idx(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ice_calc_gtpu_ctx_idx πŸ’…

okay so bestie, welcome to the Kernel API Manual section 9, and today's main character is ice_calc_gtpu_ctx_idx ✨


✨ NAME ✨

ice_calc_gtpu_ctx_idx β€” no cap, this one just calculates the GTPU hash context index πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

enum ice_hash_gtpu_ctx_type ice_calc_gtpu_ctx_idx (u32 hdrs );

like, that's the whole vibe. one arg. one return type. slay πŸ’…


🌸 ARGUMENTS 🌸

  • hdrs β€” a bitmask of protocol headers prefixed with ICE_FLOW_SEG_HDR_* 🫢 (yes bestie, it's a bitmask, so it's giving "several things turned on at once" energy)

πŸ’– DESCRIPTION πŸ’–

so what this function actually does is determine the GTPU hash context index based on the combination of encapsulation headers β€” that's GTPU_EH, GTPU_UP, and GTPU_DWN β€” and the transport protocols (UDP, TCP) sitting inside IPv4 or IPv6 flows 🌈

literally it's just looking at which headers you stacked up and going "okay, which context index does this combo belong to" πŸ”₯


πŸ‘‘ RETURN πŸ‘‘

  • A valid context index (0-8) if the header combination is supported πŸŽ‰
  • Or ICE_HASH_GTPU_CTX_MAX if the combination is invalid πŸ’€ (yeah, that's the "nope, not a vibe" answer)

⭐ SEE ALSO ⭐

the friend group 😭 β€” all of these are in the kernel file ./drivers/net/ethernet/intel/ice/virt/rss.c:


ok that's the whole page 🫢 go forth and index your GTPU contexts, bestie. periodt. πŸ’œ

sign-off time 🧚 β€” this lil masterpiece lives in ./drivers/net/ethernet/intel/i... (yes, the path got cut off in the footer, don't @ me 😭) and it's dated October 2026. mwah πŸ’‹

πŸ“¦ where this page comes from