ice_calc_gtpu_ctx_idx(9)
π 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 withICE_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_MAXif 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:
ice_vc_validate_pattern(9)ice_vc_parse_rss_cfg(9)ice_vf_adv_rss_offload_ena(9)ice_is_hash_cfg_valid(9)ice_hash_cfg_reset(9)ice_hash_cfg_record(9)ice_hash_moveout(9)ice_hash_moveback(9)ice_hash_remove(9)ice_add_rss_cfg_pre_gtpu(9)ice_add_rss_cfg_pre_ip(9)ice_map_ip_ctx_idx(9)ice_add_rss_cfg_pre(9)ice_add_rss_cfg_post_gtpu(9)ice_rem_rss_cfg_post(9)ice_rem_rss_cfg_wrap(9)ice_add_rss_cfg_wrap(9)ice_parse_raw_rss_pattern(9)ice_add_raw_rss_cfg(9)ice_rem_raw_rss_cfg(9)ice_vc_handle_rss_cfg(9)ice_vc_config_rss_key(9)ice_vc_config_rss_lut(9)ice_vc_config_rss_hfunc(9)ice_vc_get_rss_hashcfg(9)ice_vc_set_rss_hashcfg(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms