__rvu_npc_ex...s_cnt_update(9)
π
__rvu_npc_exact_cmd_rules_cnt_update β yasss bestie, welcome to the kernel API manual β¨
okay so quick vibe check: this whole page lives in the Kernel API Manual, and the star of the show is __rvu_npc_exact_cmd_rules_cnt_update(9). she keeps track of how many dmac rules are stacked against a drop rule. lowkey iconic bookkeeping. π
β¨ NAME β¨
__rvu_npc_exact_cmd_rules_cnt_update β she updates the number of dmac rules that are hanging around against a drop rule. periodt. π
π¦ SYNOPSIS π¦
u16 __rvu_npc_exact_cmd_rules_cnt_update (struct rvu *rvu , int
drop_mcam_idx , int val , bool *enable_or_disable_cam );
like, she takes four things and hands you back a u16. no cap.
πΈ ARGUMENTS πΈ
rvuβ the resource virtualization unit. that's the whole context she's working in, bestie. π«Άdrop_mcam_idxβ the NPC mcam drop rule index. yep, that's the one.valβ literally just+1or-1. that's it. that's the whole vibe. adding or removing. πenable_or_disable_camβ if there are no exact match rules against a drop rule, this is what gets disabled. so she flips this little flag for you. π
π₯ DESCRIPTION π₯
okay so here's the tea, fr fr:
- when the first exact match entry against a drop rule is added,
enable_or_disable_camis set totrue. π - when the last exact match entry against a drop rule is deleted,
enable_or_disable_camis set totrue. π
that's the whole thing. first in, last out, and the flag goes true either way. iykyk. β¨
β RETURN β
the number of rules. that's the u16 she's handing back to you. slay. π
π SEE ALSO π
the kernel file itself lives at ./drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.c β go say hi π
and here's the whole friend group, like a full-on group chat of related functions:
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_drop_rule_to_pcifunc(9)rvu_npc_exact_get_drop_rule_info(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)
ok that's every single one of them, don't come for me, i listed them all π
and that's a wrap, bestie π§ this page was brought to you by the source path ./drivers/net/ethernet/marvell..., dated October 2026, and it's all about __rvu_npc_ex...s_cnt_update(9). go forth and count your rules πβ¨ππ¦
π¦ 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