ice_map_ip_ctx_idx(9)
π ice_map_ip_ctx_idx(9) β like, the Kernel API Manual page your bestie actually wants to read
okay so bestie, welcome to ice_map_ip_ctx_idx(9) from the Kernel API Manual β¨ this one is a tiny lil function but she's important, so grab your iced coffee and let's go π
β¨ NAME β¨
ice_map_ip_ctx_idx β bestie, this maps the index of the IP L4 hash context π
that's literally the whole vibe.
π¦ SYNOPSIS π¦
u8 ice_map_ip_ctx_idx (u32 hdrs );
like, she takes one thing and gives you back a u8. simple. iconic. no cap π«Ά
π ARGUMENTS π
hdrsβ this is the protocol headers prefix, and it's carryingICE_FLOW_SEG_HDR_XXXvalues with it. yes, exactly those ones, don't swap 'em out π
πΈ DESCRIPTION πΈ
so here's the tea β β the IP L4 hash context uses the index to classify for IPv4/IPv6 with ESP/UDP_ESP/AH/PFCP, plus the non-tunnel UDP/TCP/SCTP crew π and what this function does is map that index based on the protocol headers. like it looks at the headers you handed it and goes "okay so this one" β¨
that's it, that's the whole job. main character energy honestly π
π₯ RETURN π₯
- the mapped IP context index on success π slay
- or
ICE_HASH_IP_CTX_MAXif no matching context is found π like, nothing matched, that's the "no thoughts head empty" outcome, and yes you have to actually check for it, don't just assume success bestie π
π§ SEE ALSO π§
- Kernel file
./drivers/net/ethernet/intel/ice/virt/rss.cβ go read her, she's the source of truth π 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_calc_gtpu_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)
like yes that's a lot of friends but they're all in the same group chat, iykyk π
ngl, if you're ever lost, just come back to ICE_HASH_IP_CTX_MAX and remember: no match β success π
okay and the cute lil sign-off π this page lives at ./drivers/net/ethernet/intel/i... (yes it's truncated in the original, she's mysterious like that π¦), dated October 2026, and it's ice_map_ip_ctx_idx(9) forever and always. mwah π periodt β¨π
π¦ 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