rvu_exact_calculate_hash(9)
π rvu_exact_calculate_hash β a Kernel API Manual moment β¨
okay so bestie, gather round, because today we're looking at rvu_exact_calculate_hash(9), and it's literally the little function that does the math so the mem table knows where to put stuff. That's it. That's the whole vibe. π
πΈ NAME πΈ
rvu_exact_calculate_hash β calculate hash index to mem table. lowkey the whole personality right there.
β¨ SYNOPSIS β¨
here's the signature, copied exactly, don't @ me:
u32 rvu_exact_calculate_hash (struct rvu *rvu , u16 chan , u16 ctype ,
u8 *mac , u64 mask , u32 table_depth );
she takes six things and gives you back a u32, periodt. π
π«Ά ARGUMENTS π«Ά
every single one, no skips:
rvuβ resource virtualization unit. the main character struct fr.chanβ Channel number. yep, the channel. the number of it.ctypeβ Channel type. what kind of channel, bestie.macβ MAC address. iconic, we love her.maskβ HASH mask. this is the mask, for the hash. πtable_depthβ Depth of table. how deep the table goes. like, emotionally. π
β RETURN β
Hash value. that's the answer, that's the whole gift, go off king π
π¦ SEE ALSO π¦
the kernel file lives right here:
./drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.c
and here's the entire friend group, all of them, in order, don't lose a single one π:
rvu_exact_prepare_mdata(9), rvu_npc_exact_alloc_mem_table_entry(9), rvu_npc_exact_free_id(9), rvu_npc_exact_alloc_id(9), rvu_npc_exact_alloc_cam_table_entry(9), rvu_exact_prepare_table_entry(9), rvu_exact_config_secret_key(9), rvu_exact_config_search_key(9), rvu_exact_config_result_ctrl(9), rvu_exact_config_table_mask(9), rvu_npc_exact_get_max_entries(9), rvu_npc_exact_has_match_table(9), __rvu_npc_exact_find_entry_by_seq_id(9), rvu_npc_exact_add_to_list(9), rvu_npc_exact_mem_table_write(9), rvu_npc_exact_cam_table_write(9), rvu_npc_exact_dealloc_table_entry(9), rvu_npc_exact_alloc_table_entry(9), rvu_npc_exact_save_drop_rule_chan_and_mask(9), rvu_npc_exact_calc_drop_rule_chan_and_mask(9), rvu_npc_exact_drop_rule_to_pcifunc(9), rvu_npc_exact_get_drop_rule_info(9), __rvu_npc_exact_cmd_rules_cnt_update(9), rvu_npc_exact_del_table_entry_by_id(9), rvu_npc_exact_add_table_entry(9), rvu_npc_exact_update_table_entry(9), rvu_npc_exact_promisc_disable(9), rvu_npc_exact_promisc_enable(9), rvu_npc_exact_mac_addr_reset(9), rvu_npc_exact_mac_addr_update(9), rvu_npc_exact_mac_addr_add(9), rvu_npc_exact_mac_addr_del(9), rvu_npc_exact_mac_addr_set(9), rvu_npc_exact_can_disable_feature(9), rvu_npc_exact_disable_feature(9), rvu_npc_exact_reset(9), rvu_npc_exact_init(9)
like, that's the whole group chat and every single one of them is invited π§π
ngl bestie, if you got here looking for drama, there is none β she's a hash calculator, she minds her business, she slays responsibly. π
and that's the page!! sourced from ./drivers/net/ethernet/marvell..., dated October 2026 β huge shoutout to the manual, mwah, kissing it on the forehead, bye bestie π«Άπβ¨
π¦ 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