/Linux-v5.10/drivers/net/ethernet/marvell/octeontx2/af/ |
D | rvu_nix.c | 77 if (!pfvf->nixlf || blkaddr < 0) in is_nixlf_attached() 94 int nix_get_nixlf(struct rvu *rvu, u16 pcifunc, int *nixlf, int *nix_blkaddr) in nix_get_nixlf() argument 101 if (!pfvf->nixlf || blkaddr < 0) in nix_get_nixlf() 104 *nixlf = rvu_get_lf(rvu, &hw->block[blkaddr], pcifunc, 0); in nix_get_nixlf() 105 if (*nixlf < 0) in nix_get_nixlf() 187 static int nix_interface_init(struct rvu *rvu, u16 pcifunc, int type, int nixlf) in nix_interface_init() argument 233 rvu_npc_install_promisc_entry(rvu, pcifunc, nixlf, in nix_interface_init() 241 rvu_npc_install_ucast_entry(rvu, pcifunc, nixlf, in nix_interface_init() 254 nixlf, pfvf->rx_chan_base); in nix_interface_init() 261 static void nix_interface_deinit(struct rvu *rvu, u16 pcifunc, u8 nixlf) in nix_interface_deinit() argument [all …]
|
D | rvu.h | 135 bool nixlf; /* Only one NIXLF per RVU_FUNC */ member 486 int nix_get_nixlf(struct rvu *rvu, u16 pcifunc, int *nixlf, int *nix_blkaddr); 496 int nixlf, u64 chan, u8 *mac_addr); 498 int nixlf, u64 chan, bool allmulti); 499 void rvu_npc_disable_promisc_entry(struct rvu *rvu, u16 pcifunc, int nixlf); 500 void rvu_npc_enable_promisc_entry(struct rvu *rvu, u16 pcifunc, int nixlf); 502 int nixlf, u64 chan); 504 int rvu_npc_update_rxvlan(struct rvu *rvu, u16 pcifunc, int nixlf); 505 void rvu_npc_disable_mcam_entries(struct rvu *rvu, u16 pcifunc, int nixlf); 506 void rvu_npc_disable_default_entries(struct rvu *rvu, u16 pcifunc, int nixlf); [all …]
|
D | rvu_npc.c | 98 u16 pcifunc, int nixlf, int type) in npc_get_nixlf_mcam_index() argument 117 return (mcam->nixlf_offset + (nixlf * RSVD_MCAM_ENTRIES_PER_NIXLF)); in npc_get_nixlf_mcam_index() 371 int nixlf, u64 chan, u8 *mac_addr) in rvu_npc_install_ucast_entry() argument 392 nixlf, NIXLF_UCAST_ENTRY); in rvu_npc_install_ucast_entry() 431 int nixlf, u64 chan, bool allmulti) in rvu_npc_install_promisc_entry() argument 447 nixlf, NIXLF_PROMISC_ENTRY); in rvu_npc_install_promisc_entry() 459 nixlf, NIXLF_UCAST_ENTRY); in rvu_npc_install_promisc_entry() 480 int nixlf, bool enable) in npc_enadis_promisc_entry() argument 494 nixlf, NIXLF_PROMISC_ENTRY); in npc_enadis_promisc_entry() 498 void rvu_npc_disable_promisc_entry(struct rvu *rvu, u16 pcifunc, int nixlf) in rvu_npc_disable_promisc_entry() argument [all …]
|
D | rvu_debugfs.c | 978 int nixlf, id, all; in rvu_dbg_nix_queue_ctx_display() local 983 nixlf = rvu->rvu_dbg.nix_cq_ctx.lf; in rvu_dbg_nix_queue_ctx_display() 989 nixlf = rvu->rvu_dbg.nix_sq_ctx.lf; in rvu_dbg_nix_queue_ctx_display() 995 nixlf = rvu->rvu_dbg.nix_rq_ctx.lf; in rvu_dbg_nix_queue_ctx_display() 1004 if (!rvu_dbg_is_valid_lf(rvu, BLKTYPE_NIX, nixlf, &pcifunc)) in rvu_dbg_nix_queue_ctx_display() 1044 ctype_string, nixlf, aq_req.qidx); in rvu_dbg_nix_queue_ctx_display() 1055 static int write_nix_queue_ctx(struct rvu *rvu, bool all, int nixlf, in write_nix_queue_ctx() argument 1062 if (!rvu_dbg_is_valid_lf(rvu, BLKTYPE_NIX, nixlf, &pcifunc)) in write_nix_queue_ctx() 1094 rvu->rvu_dbg.nix_cq_ctx.lf = nixlf; in write_nix_queue_ctx() 1100 rvu->rvu_dbg.nix_sq_ctx.lf = nixlf; in write_nix_queue_ctx() [all …]
|
D | rvu.c | 315 pfvf->nixlf = attach ? true : false; in rvu_update_rsrc_map() 316 num_lfs = pfvf->nixlf; in rvu_update_rsrc_map() 1034 return pfvf->nixlf ? 1 : 0; in rvu_get_rsrc_mapcount() 1147 else if ((blkid == BLKADDR_NIX0) && !detach->nixlf) in rvu_detach_rsrcs() 1232 if (req->nixlf && !rvu_get_rsrc_mapcount(pfvf, BLKTYPE_NIX)) { in rvu_check_rsrc_availability() 1237 } else if (req->nixlf) { in rvu_check_rsrc_availability() 1335 if (attach->nixlf) in rvu_mbox_handler_attach_resources()
|
D | mbox.h | 279 u8 nixlf:1; member 295 u8 nixlf:1; member
|
/Linux-v5.10/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | otx2_common.c | 966 struct nix_lf_alloc_req *nixlf; in otx2_config_nix() local 973 nixlf = otx2_mbox_alloc_msg_nix_lf_alloc(&pfvf->mbox); in otx2_config_nix() 974 if (!nixlf) in otx2_config_nix() 978 nixlf->rq_cnt = pfvf->hw.rx_queues; in otx2_config_nix() 979 nixlf->sq_cnt = pfvf->hw.tx_queues; in otx2_config_nix() 980 nixlf->cq_cnt = pfvf->qset.cq_cnt; in otx2_config_nix() 981 nixlf->rss_sz = MAX_RSS_INDIR_TBL_SIZE; in otx2_config_nix() 982 nixlf->rss_grps = 1; /* Single RSS indir table supported, for now */ in otx2_config_nix() 983 nixlf->xqe_sz = NIX_XQESZ_W16; in otx2_config_nix() 988 nixlf->npa_func = RVU_DEFAULT_PF_FUNC; in otx2_config_nix() [all …]
|