rvu_npc_exac..._table_entry(9)
π rvu_npc_exac..._table_entry(9) π
okay so bestie, welcome to the Kernel API Manual β¨ β yes the whole thing, section 9, the deep lore. this page is about rvu_npc_exact_update_table_entry and it's giving "small function, big responsibilities" energy, i'm obsessed π
π¦ NAME π¦
rvu_npc_exact_update_table_entry β literally just updates an exact match table. that's it. that's the whole vibe. π
β¨ SYNOPSIS β¨
int rvu_npc_exact_update_table_entry (struct rvu *rvu , u8 cgx_id , u8
lmac_id , u8 *old_mac , u8 *new_mac , u32 *seq_id );
like, look at her. six arguments. main character energy fr fr π
πΈ ARGUMENTS πΈ
rvuβ the resource virtualization unit. the whole reason we're here π«Άcgx_idβ CGX identifier. (that's her name, that's her whole identity)lmac_idβ LMAC identifier. sisters, not twins πold_macβ the existing MAC address entry. the before pic πΈnew_macβ the new MAC address entry. the glow-up πseq_idβ sequence identifier of the entry. gotta know which one we're talking about, iykyk π₯
π§ DESCRIPTION π§
so what does she do? she updates the MAC address of an entry. simple. iconic. no notes. β
but okay, plot twist alert π¨ β if the entry is in the MEM table, the new hash value may not match with the old one. not me finding out it's not a one-to-one, that's so real of her π
π RETURN π
0 upon success. that's the only documented return value, so like... manifesting that 0 for you bestie ππ
π SEE ALSO π
bestie we are about to scroll. the kernel file lives at ./drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.c β go read it, it's tea β here's the whole friend group:
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_add_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)
like. thirty-six entries. ate and left no crumbs π
quick vibe check π:u8u8u8 *u8 *u32 *β the types stay exactly as written, no cap, we do not touch the code bestie
and that's the whole page!! π brought to you by the Kernel API Manual, source ./drivers/net/ethernet/marvell..., dated October 2026, filed under rvu_npc_exac..._table_entry(9) β mwah, go touch some tables, ily π«Άβ¨
π¦ 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