/linux-6.1.9/drivers/net/ethernet/marvell/octeontx2/af/ |
D | rvu_nix.c | 105 if (!pfvf->nixlf || blkaddr < 0) in is_nixlf_attached() 124 int nix_get_nixlf(struct rvu *rvu, u16 pcifunc, int *nixlf, int *nix_blkaddr) in nix_get_nixlf() argument 131 if (!pfvf->nixlf || blkaddr < 0) in nix_get_nixlf() 134 *nixlf = rvu_get_lf(rvu, &hw->block[blkaddr], pcifunc, 0); in nix_get_nixlf() 135 if (*nixlf < 0) in nix_get_nixlf() 151 if (!pfvf->nixlf || *blkaddr < 0) in nix_get_struct_ptrs() 292 static int nix_interface_init(struct rvu *rvu, u16 pcifunc, int type, int nixlf, in nix_interface_init() argument 375 rvu_npc_install_promisc_entry(rvu, pcifunc, nixlf, in nix_interface_init() 414 rvu_npc_install_promisc_entry(rvu, pcifunc, nixlf, in nix_interface_init() 423 rvu_npc_install_ucast_entry(rvu, pcifunc, nixlf, in nix_interface_init() [all …]
|
D | rvu.h | 192 bool nixlf; /* Only one NIXLF per RVU_FUNC */ member 764 int nix_get_nixlf(struct rvu *rvu, u16 pcifunc, int *nixlf, int *nix_blkaddr); 791 int nixlf, u64 chan, u8 *mac_addr); 793 int nixlf, u64 chan, u8 chan_cnt); 794 void rvu_npc_enable_promisc_entry(struct rvu *rvu, u16 pcifunc, int nixlf, 797 int nixlf, u64 chan); 798 void rvu_npc_enable_bcast_entry(struct rvu *rvu, u16 pcifunc, int nixlf, 800 void rvu_npc_install_allmulti_entry(struct rvu *rvu, u16 pcifunc, int nixlf, 802 void rvu_npc_enable_allmulti_entry(struct rvu *rvu, u16 pcifunc, int nixlf, 806 int nixlf, int type, bool enable); [all …]
|
D | rvu_npc.c | 145 int nixlf) in npc_get_ucast_mcam_index() argument 166 return mcam->nixlf_offset + (max + nixlf) * RSVD_MCAM_ENTRIES_PER_NIXLF; in npc_get_ucast_mcam_index() 170 u16 pcifunc, int nixlf, int type) in npc_get_nixlf_mcam_index() argument 191 return npc_get_ucast_mcam_index(mcam, pcifunc, nixlf); in npc_get_nixlf_mcam_index() 389 int bank, nixlf, index; in npc_get_default_entry_action() local 392 nix_get_nixlf(rvu, pf_func, &nixlf, NULL); in npc_get_default_entry_action() 393 index = npc_get_nixlf_mcam_index(mcam, pf_func, nixlf, in npc_get_default_entry_action() 603 int nixlf, u64 chan, u8 *mac_addr) in rvu_npc_install_ucast_entry() argument 621 nixlf, NIXLF_UCAST_ENTRY); in rvu_npc_install_ucast_entry() 652 int nixlf, u64 chan, u8 chan_cnt) in rvu_npc_install_promisc_entry() argument [all …]
|
D | rvu.c | 374 pfvf->nixlf = attach ? true : false; in rvu_update_rsrc_map() 375 num_lfs = pfvf->nixlf; in rvu_update_rsrc_map() 1243 return pfvf->nixlf ? 1 : 0; in rvu_get_rsrc_mapcount() 1265 return pfvf->nixlf ? 1 : 0; in is_blktype_attached() 1436 else if ((blkid == BLKADDR_NIX0) && !detach->nixlf) in rvu_detach_rsrcs() 1438 else if ((blkid == BLKADDR_NIX1) && !detach->nixlf) in rvu_detach_rsrcs() 1595 if (req->nixlf && !is_blktype_attached(pfvf, BLKTYPE_NIX)) { in rvu_check_rsrc_availability() 1604 } else if (req->nixlf) { in rvu_check_rsrc_availability() 1722 if (attach->nixlf) in rvu_mbox_handler_attach_resources() 2022 int blkaddr, nixlf; in rvu_mbox_handler_set_vf_perm() local [all …]
|
D | rvu_debugfs.c | 1862 int nixlf, id, all; in rvu_dbg_nix_queue_ctx_display() local 1867 nixlf = rvu->rvu_dbg.nix_cq_ctx.lf; in rvu_dbg_nix_queue_ctx_display() 1873 nixlf = rvu->rvu_dbg.nix_sq_ctx.lf; in rvu_dbg_nix_queue_ctx_display() 1879 nixlf = rvu->rvu_dbg.nix_rq_ctx.lf; in rvu_dbg_nix_queue_ctx_display() 1888 if (!rvu_dbg_is_valid_lf(rvu, nix_hw->blkaddr, nixlf, &pcifunc)) in rvu_dbg_nix_queue_ctx_display() 1928 ctype_string, nixlf, aq_req.qidx); in rvu_dbg_nix_queue_ctx_display() 1939 static int write_nix_queue_ctx(struct rvu *rvu, bool all, int nixlf, in write_nix_queue_ctx() argument 1948 if (!rvu_dbg_is_valid_lf(rvu, nix_hw->blkaddr, nixlf, &pcifunc)) in write_nix_queue_ctx() 1980 rvu->rvu_dbg.nix_cq_ctx.lf = nixlf; in write_nix_queue_ctx() 1986 rvu->rvu_dbg.nix_sq_ctx.lf = nixlf; in write_nix_queue_ctx() [all …]
|
D | rvu_npc_fs.c | 1049 int nixlf, struct rvu_pfvf *pfvf, in npc_install_flow() argument 1085 entry_index = npc_get_nixlf_mcam_index(mcam, target, nixlf, in npc_install_flow() 1203 int blkaddr, nixlf, err; in rvu_mbox_handler_npc_install_flow() local 1261 err = nix_get_nixlf(rvu, target, &nixlf, NULL); in rvu_mbox_handler_npc_install_flow() 1290 err = npc_install_flow(rvu, blkaddr, target, nixlf, pfvf, in rvu_mbox_handler_npc_install_flow()
|
D | rvu_npc_hash.c | 1712 int rc, nixlf; in rvu_npc_exact_mac_addr_set() local 1740 rc = nix_get_nixlf(rvu, req->hdr.pcifunc, &nixlf, NULL); in rvu_npc_exact_mac_addr_set() 1743 nixlf, NIXLF_UCAST_ENTRY); in rvu_npc_exact_mac_addr_set()
|
D | mbox.h | 419 u8 nixlf:1; member 436 u8 nixlf:1; member
|
/linux-6.1.9/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | otx2_common.c | 1085 struct nix_lf_alloc_req *nixlf; in otx2_config_nix() local 1092 nixlf = otx2_mbox_alloc_msg_nix_lf_alloc(&pfvf->mbox); in otx2_config_nix() 1093 if (!nixlf) in otx2_config_nix() 1097 nixlf->rq_cnt = pfvf->hw.rx_queues; in otx2_config_nix() 1098 nixlf->sq_cnt = pfvf->hw.tot_tx_queues; in otx2_config_nix() 1099 nixlf->cq_cnt = pfvf->qset.cq_cnt; in otx2_config_nix() 1100 nixlf->rss_sz = MAX_RSS_INDIR_TBL_SIZE; in otx2_config_nix() 1101 nixlf->rss_grps = MAX_RSS_GROUPS; in otx2_config_nix() 1102 nixlf->xqe_sz = pfvf->hw.xqe_size == 128 ? NIX_XQESZ_W16 : NIX_XQESZ_W64; in otx2_config_nix() 1107 nixlf->npa_func = RVU_DEFAULT_PF_FUNC; in otx2_config_nix() [all …]
|