Searched refs:mcam_idx (Results 1 – 5 of 5) sorted by relevance
| /linux/drivers/net/ethernet/marvell/octeontx2/af/cn20k/ |
| H A D | npc.c | 295 u16 mcam_idx; in npc_vidx_maps_del_entry() local 305 mcam_idx = npc_vidx2idx(vidx); in npc_vidx_maps_del_entry() 315 map = xa_erase(&npc_priv->xa_idx2vidx_map, mcam_idx); in npc_vidx_maps_del_entry() 324 *old_midx = mcam_idx; in npc_vidx_maps_del_entry() 406 static int npc_vidx_maps_add_entry(struct rvu *rvu, u16 mcam_idx, int pcifunc, in npc_vidx_maps_add_entry() argument 417 xa_mk_value(mcam_idx), in npc_vidx_maps_add_entry() 422 __func__, mcam_idx); in npc_vidx_maps_add_entry() 426 rc = xa_insert(&npc_priv->xa_idx2vidx_map, mcam_idx, in npc_vidx_maps_add_entry() 431 __func__, mcam_idx); in npc_vidx_maps_add_entry() 820 int mcam_idx = index % mcam->banksize; in npc_cn20k_enable_mcam_entry() local [all …]
|
| /linux/drivers/net/ethernet/marvell/octeontx2/af/ |
| H A D | rvu_npc_fs.c | 1656 bool free_entry, int mcam_idx) in rvu_npc_free_entry_for_flow_install() argument 1666 free_req.entry = mcam_idx; in rvu_npc_free_entry_for_flow_install() 1674 u16 *mcam_idx, u8 *kw_type, in rvu_npc_alloc_entry_for_flow_install() argument 1732 *mcam_idx = entry_rsp.entry_list[0]; in rvu_npc_alloc_entry_for_flow_install() 2122 int npc_install_mcam_drop_rule(struct rvu *rvu, int mcam_idx, u16 *counter_idx, in npc_install_mcam_drop_rule() argument 2151 enabled = is_mcam_entry_enabled(rvu, mcam, blkaddr, mcam_idx); in npc_install_mcam_drop_rule() 2154 __func__, mcam_idx); in npc_install_mcam_drop_rule() 2169 rule->entry = mcam_idx; in npc_install_mcam_drop_rule() 2173 npc_mcam_rsrcs_reserve(rvu, blkaddr, mcam_idx); in npc_install_mcam_drop_rule() 2205 cn20k_req.entry = mcam_idx; in npc_install_mcam_drop_rule() [all …]
|
| H A D | rvu.h | 1137 int npc_install_mcam_drop_rule(struct rvu *rvu, int mcam_idx, u16 *counter_idx,
|
| /linux/drivers/net/ethernet/marvell/octeontx2/nic/ |
| H A D | otx2_tc.c | 1139 int mcam_idx = flow_cfg->max_flows - flow_cfg->nr_flows - 1; in otx2_tc_update_mcam_table_add_req() local 1159 tmp->entry = flow_cfg->flow_ent[mcam_idx]; in otx2_tc_update_mcam_table_add_req() 1163 mcam_idx++; in otx2_tc_update_mcam_table_add_req() 1166 return flow_cfg->flow_ent[mcam_idx]; in otx2_tc_update_mcam_table_add_req()
|
| H A D | otx2_flows.c | 95 static int otx2_get_dft_rl_idx(struct otx2_nic *pfvf, u16 *mcam_idx) in otx2_get_dft_rl_idx() argument 123 *mcam_idx = rsp->promisc; in otx2_get_dft_rl_idx() 125 *mcam_idx = rsp->ucast; in otx2_get_dft_rl_idx()
|