__rvu_npc_ex...s_cnt_update(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… __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 +1 or -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_cam is set to true. πŸŽ€
  • when the last exact match entry against a drop rule is deleted, enable_or_disable_cam is set to true. πŸ’–

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:


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