rvu_npc_exa..._table_entry(9)
π
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 anethtoolcmd. 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 π:
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_cmd_rules_cnt_update(9)rvu_npc_exact_del_table_entry_by_id(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)
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
- 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