rvu_npc_exa..._table_entry(9)
π rvu_npc_exact_alloc_table_entry β¨
okay bestie, welcome to the Kernel API Manual π β this is a kernel function page, and yes it's about grabbing a table entry. buckle up, it's shorter than it looks but the SEE ALSO list is huge π
πΈ NAME πΈ
rvu_npc_exact_alloc_table_entry β Allociate an entry (not me spelling it like that, that's literally what the page says π)
β SYNOPSIS β
int rvu_npc_exact_alloc_table_entry (struct rvu *rvu , char *mac , u16
chan , u8 ctype , u32 *index , u8 *ways , enum npc_exact_opc_type
*opc_type );
π¦ ARGUMENTS π¦
rvuβ resource virtualization unit. the whole vibe source, iykyk πmacβ MAC address.chanβ Channel number.ctypeβ Channel Type.indexβ Index of MEM table or CAM table. πwaysβ Ways. Only valid for MEM table. (MEM-table-only bestie, don't try it elsewhere π)opc_typeβ OPCODE to select table (MEM or CAM) π₯
π DESCRIPTION π
so here's the tea π: it tries allocating a slot from the MEM table. if all 4 ways slot are full for a hash index, it checks availability in the 32-entry CAM table for allocation. that's it, that's the whole personality β¨
π RETURN π
0 upon success. slay. π
π§ SEE ALSO π§
the kernel file lives at ./drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.c β and here's the entire 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_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_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)
ngl this page is giving "one function, thirty-seven friends" energy π but every single one of them is linked above, no cap.
okay that's the whole page bestie π«Ά mwah π β it ships from ./drivers/net/ethernet/marvell... and the version stamp says October 2026, so like, future-era kernel lore β see you in the next manpage β¨
π¦ 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