ice_is_hash_cfg_valid(9)
π ice_is_hash_cfg_valid β the vibe check for your RSS hash config β¨
Okay bestie, welcome to the Kernel API Manual β specifically the ice_is_hash_cfg_valid(9) page, aka the tiny little gatekeeper that decides whether your RSS hash context is actually valid or just... not. π«Ά
πΈ NAME πΈ
ice_is_hash_cfg_valid β check whether an RSS hash context is valid π
Like literally, that's its whole job. It looks at your config and goes "valid" or "not valid." No drama, no notes.
β¨ SYNOPSIS β¨
bool ice_is_hash_cfg_valid (struct ice_rss_hash_cfg *cfg );
Short, sweet, takes one pointer. Obsessed. π
π¦ ARGUMENTS π¦
cfgβ the RSS hash configuration you want to test, bestie. It's astruct ice_rss_hash_cfg *, so yes, you're passing a pointer. Respect the pointer. π
β RETURN β
It returns true when both cfg->hash_flds and cfg->addl_hdrs are non-zero. If either one is zero? It returns false. That's it. That's the whole test. No cap. π₯
Fr fr, note the "both" β it's an AND situation, not an OR situation. One of them being non-zero is not enough to slay here. π
π SEE ALSO π
First up, the kernel file where all this lives, in all its glory:
./drivers/net/ethernet/intel/ice/virt/rss.c
And then the whole friend group, because this function does not exist in isolation, bestie:
ice_vc_validate_pattern(9)ice_vc_parse_rss_cfg(9)ice_vf_adv_rss_offload_ena(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_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)
Like, that's a whole squad. Go read about them too. π
That's the page, bestie β go forth and validate those hash configs. π§π
Sign-off era: this one's from ./drivers/net/ethernet/intel/i..., dated October 2026, and it's the ice_is_hash_cfg_valid(9) page. 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