rvu_npc_exa..._table_entry(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… rvu_npc_exact_add_table_entry β€” the one where we add a table entry ✨

okay bestie, so we're deep in the Kernel API Manual today, and this little icon is literally out here creating exact match table entries in the Marvell OcteonTX2 NPC hash world πŸ¦‹. It's giving "small function, big responsibility," and honestly? We're obsessed. Let's get into it πŸ’–


✨ NAME ✨

rvu_npc_exact_add_table_entry β€” Adds a table entry πŸŽ€

That's it. That's the whole vibe. It adds a table entry. Periodt.


🌸 SYNOPSIS 🌸

int rvu_npc_exact_add_table_entry (struct rvu *rvu , u8 cgx_id , u8
       lmac_id , u8 *mac , u16 chan , u8 ctype , u32 *seq_id , bool cmd , u32
       mcam_idx , u16 pcifunc );

Ten arguments. Ten. She's high-maintenance and we respect it πŸ‘‘. Returns an int, so bestie, you will be checking that return value, no cap 😌.


πŸŽ€ ARGUMENTS πŸŽ€

  • rvu β€” the resource virtualization unit. main character energy fr πŸ’œ
  • cgx_id β€” the cgx identifier πŸ‘€
  • lmac_id β€” the lmac identifier. yes it needs both, don't ask, iykyk πŸ¦‹
  • mac β€” the MAC address πŸ’Œ
  • chan β€” the channel number 🌈
  • ctype β€” the Channel Type (capital C, capital T, we're being fancy today) ✨
  • seq_id β€” the sequence number πŸ”’
  • cmd β€” whether this was invoked by an ethtool cmd. like, "was this your idea or ethtool's?" πŸ’€
  • mcam_idx β€” the NPC mcam index corresponding to the MAC 🎯
  • pcifunc β€” the PCI func 🫢
ngl, that's a lot of parameters to keep track of, so maybe don't shuffle them around, bestie 😭. Order matters.

πŸ’« DESCRIPTION πŸ’«

Creates a new exact match table entry in either the CAM or the MEM table. Like, she'll pick a table and drop the entry in there, and that's the whole arc of the story 🌸. Two possible homes, one new entry β€” very "choose your own adventure" of her πŸ’….


⭐ RETURN ⭐

0 upon success πŸŽ‰. That's the good ending. Slay.


πŸ”₯ SEE ALSO πŸ”₯

First up, the source herself, the literal kernel file:

Kernel file ./drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.c

And now the extended universe β€” a whole friend group of functions, all in (9) section, all listed here verbatim because we do not drop names in this house πŸ’–:

That's the whole group chat right there 😭🫢. Go read them, they're all iconic in their own way.


and that's the page, bestie!! πŸ’–βœ¨ This gem comes from ./drivers/net/ethernet/marvell... and it's dated October 2026 β€” so yeah, future vibes πŸ¦‹. mwah, go add those table entries responsibly πŸ’…πŸ‘‘

πŸ“¦ where this page comes from