rvu_npc_exac...e_to_pcifunc(9)
π NAME π
okay so this is rvu_npc_exac...e_to_pcifunc(9) from the kernel API manual, and it's literally the page for rvu_npc_exact_drop_rule_to_pcifunc β the little function whose whole job is retrieving the pcifunc π
β¨ SYNOPSIS β¨
like, here's the exact signature bestie, don't @ me:
u16 rvu_npc_exact_drop_rule_to_pcifunc (struct rvu *rvu , u32
drop_rule_idx );
π«Ά ARGUMENTS π«Ά
rvuβ the resource virtualization unit. that's the whole vibe of this param, she's just the rvu πdrop_rule_idxβ the drop rule index in NPC mcam. yes that's literally what it is, no extra lore πΈ
π¦ DESCRIPTION π¦
so the Debugfs entry exact_drop_cnt displays the pcifunc for an interface, and how does it do that?? by retrieving the pcifunc value from the data base π that's it, that's the plot, she's serving one (1) purpose and she's slaying it π
π RETURN π
returns the drop rule index. iconic, straightforward, no notes β
π SEE ALSO π
the kernel file lives right here, bookmark it fr fr:
./drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.c
and here's the whole friend group, every single one of them, in order, no cap π:
rvu_exact_prepare_mdata(9)rvu_exact_calculate_hash(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_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)
ngl this page is short but she ate π go read the source, iykyk π§
okay bye bestie, this came from ./drivers/net/ethernet/marvell... and it's dated October 2026, so like, future-core of it all π₯π 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