/linux-6.6.21/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | otx2_dcbnl.c | 10 static int otx2_check_pfc_config(struct otx2_nic *pfvf) in otx2_check_pfc_config() argument 12 u8 tx_queues = pfvf->hw.tx_queues, prio; in otx2_check_pfc_config() 13 u8 pfc_en = pfvf->pfc_en; in otx2_check_pfc_config() 18 dev_warn(pfvf->dev, in otx2_check_pfc_config() 28 int otx2_pfc_txschq_config(struct otx2_nic *pfvf) in otx2_pfc_txschq_config() argument 33 pfc_en = pfvf->pfc_en; in otx2_pfc_txschq_config() 40 if (!pfc_bit_set || !pfvf->pfc_alloc_status[prio]) in otx2_pfc_txschq_config() 45 err = otx2_txschq_config(pfvf, lvl, prio, true); in otx2_pfc_txschq_config() 47 dev_err(pfvf->dev, in otx2_pfc_txschq_config() 58 static int otx2_pfc_txschq_alloc_one(struct otx2_nic *pfvf, u8 prio) in otx2_pfc_txschq_alloc_one() argument [all …]
|
D | otx2_common.c | 20 struct otx2_nic *pfvf, int qidx) in otx2_nix_rq_op_stats() argument 25 ptr = (u64 *)otx2_get_regaddr(pfvf, NIX_LF_RQ_OP_OCTS); in otx2_nix_rq_op_stats() 28 ptr = (u64 *)otx2_get_regaddr(pfvf, NIX_LF_RQ_OP_PKTS); in otx2_nix_rq_op_stats() 33 struct otx2_nic *pfvf, int qidx) in otx2_nix_sq_op_stats() argument 38 ptr = (u64 *)otx2_get_regaddr(pfvf, NIX_LF_SQ_OP_OCTS); in otx2_nix_sq_op_stats() 41 ptr = (u64 *)otx2_get_regaddr(pfvf, NIX_LF_SQ_OP_PKTS); in otx2_nix_sq_op_stats() 45 void otx2_update_lmac_stats(struct otx2_nic *pfvf) in otx2_update_lmac_stats() argument 49 if (!netif_running(pfvf->netdev)) in otx2_update_lmac_stats() 52 mutex_lock(&pfvf->mbox.lock); in otx2_update_lmac_stats() 53 req = otx2_mbox_alloc_msg_cgx_stats(&pfvf->mbox); in otx2_update_lmac_stats() [all …]
|
D | qos_sq.c | 19 static void otx2_qos_aura_pool_free(struct otx2_nic *pfvf, int pool_id) in otx2_qos_aura_pool_free() argument 23 if (!pfvf->qset.pool) in otx2_qos_aura_pool_free() 26 pool = &pfvf->qset.pool[pool_id]; in otx2_qos_aura_pool_free() 27 qmem_free(pfvf->dev, pool->stack); in otx2_qos_aura_pool_free() 28 qmem_free(pfvf->dev, pool->fc_addr); in otx2_qos_aura_pool_free() 33 static int otx2_qos_sq_aura_pool_init(struct otx2_nic *pfvf, int qidx) in otx2_qos_sq_aura_pool_init() argument 35 struct otx2_qset *qset = &pfvf->qset; in otx2_qos_sq_aura_pool_init() 37 struct otx2_hw *hw = &pfvf->hw; in otx2_qos_sq_aura_pool_init() 56 pool_id = otx2_get_pool_idx(pfvf, AURA_NIX_SQ, qidx); in otx2_qos_sq_aura_pool_init() 57 pool = &pfvf->qset.pool[pool_id]; in otx2_qos_sq_aura_pool_init() [all …]
|
D | qos.c | 26 static void otx2_qos_update_tx_netdev_queues(struct otx2_nic *pfvf) in otx2_qos_update_tx_netdev_queues() argument 28 struct otx2_hw *hw = &pfvf->hw; in otx2_qos_update_tx_netdev_queues() 31 qos_txqs = bitmap_weight(pfvf->qos.qos_sq_bmap, in otx2_qos_update_tx_netdev_queues() 36 err = netif_set_real_num_tx_queues(pfvf->netdev, tx_queues); in otx2_qos_update_tx_netdev_queues() 38 netdev_err(pfvf->netdev, in otx2_qos_update_tx_netdev_queues() 71 static int otx2_qos_quantum_to_dwrr_weight(struct otx2_nic *pfvf, u32 quantum) in otx2_qos_quantum_to_dwrr_weight() argument 75 weight = quantum / pfvf->hw.dwrr_mtu; in otx2_qos_quantum_to_dwrr_weight() 76 if (quantum % pfvf->hw.dwrr_mtu) in otx2_qos_quantum_to_dwrr_weight() 82 static void otx2_config_sched_shaping(struct otx2_nic *pfvf, in otx2_config_sched_shaping() argument 100 mtu_to_dwrr_weight(pfvf, pfvf->tx_max_pktlen); in otx2_config_sched_shaping() [all …]
|
D | cn10k.c | 26 int cn10k_lmtst_init(struct otx2_nic *pfvf) in cn10k_lmtst_init() argument 33 if (!test_bit(CN10K_LMTST, &pfvf->hw.cap_flag)) { in cn10k_lmtst_init() 34 pfvf->hw_ops = &otx2_hw_ops; in cn10k_lmtst_init() 38 pfvf->hw_ops = &cn10k_hw_ops; in cn10k_lmtst_init() 40 pfvf->tot_lmt_lines = (num_online_cpus() * LMT_BURST_SIZE); in cn10k_lmtst_init() 41 pfvf->hw.lmt_info = alloc_percpu(struct otx2_lmt_info); in cn10k_lmtst_init() 43 mutex_lock(&pfvf->mbox.lock); in cn10k_lmtst_init() 44 req = otx2_mbox_alloc_msg_lmtst_tbl_setup(&pfvf->mbox); in cn10k_lmtst_init() 46 mutex_unlock(&pfvf->mbox.lock); in cn10k_lmtst_init() 52 err = qmem_alloc(pfvf->dev, &pfvf->dync_lmt, pfvf->tot_lmt_lines, in cn10k_lmtst_init() [all …]
|
D | otx2_ethtool.c | 72 static struct cgx_fw_data *otx2_get_fwdata(struct otx2_nic *pfvf); 77 struct otx2_nic *pfvf = netdev_priv(netdev); in otx2_get_drvinfo() local 80 strscpy(info->bus_info, pci_name(pfvf->pdev), sizeof(info->bus_info)); in otx2_get_drvinfo() 83 static void otx2_get_qset_strings(struct otx2_nic *pfvf, u8 **data, int qset) in otx2_get_qset_strings() argument 85 int start_qidx = qset * pfvf->hw.rx_queues; in otx2_get_qset_strings() 88 for (qidx = 0; qidx < pfvf->hw.rx_queues; qidx++) { in otx2_get_qset_strings() 96 for (qidx = 0; qidx < otx2_get_total_tx_queues(pfvf); qidx++) { in otx2_get_qset_strings() 98 if (qidx >= pfvf->hw.non_qos_queues) in otx2_get_qset_strings() 100 qidx + start_qidx - pfvf->hw.non_qos_queues, in otx2_get_qset_strings() 112 struct otx2_nic *pfvf = netdev_priv(netdev); in otx2_get_strings() local [all …]
|
D | otx2_common.h | 71 otx2_read64(pfvf, NIX_LF_RX_STATX(reg)) 73 otx2_read64(pfvf, NIX_LF_TX_STATX(reg)) 181 struct otx2_nic *pfvf; member 579 static inline void otx2_setup_dev_hw_settings(struct otx2_nic *pfvf) in otx2_setup_dev_hw_settings() argument 581 struct otx2_hw *hw = &pfvf->hw; in otx2_setup_dev_hw_settings() 583 pfvf->hw.cq_time_wait = CQ_TIMER_THRESH_DEFAULT; in otx2_setup_dev_hw_settings() 584 pfvf->hw.cq_ecount_wait = CQ_CQE_THRESH_DEFAULT; in otx2_setup_dev_hw_settings() 585 pfvf->hw.cq_qcount_wait = CQ_QCOUNT_DEFAULT; in otx2_setup_dev_hw_settings() 589 if (is_96xx_A0(pfvf->pdev)) { in otx2_setup_dev_hw_settings() 593 pfvf->hw.cq_qcount_wait = 0x0; in otx2_setup_dev_hw_settings() [all …]
|
D | otx2_txrx.c | 29 static bool otx2_xdp_rcv_pkt_handler(struct otx2_nic *pfvf, 35 static int otx2_nix_cq_op_status(struct otx2_nic *pfvf, in otx2_nix_cq_op_status() argument 41 status = otx2_atomic64_fetch_add(incr, pfvf->cq_op_addr); in otx2_nix_cq_op_status() 45 dev_err(pfvf->dev, "CQ stopped due to error"); in otx2_nix_cq_op_status() 83 static dma_addr_t otx2_dma_map_skb_frag(struct otx2_nic *pfvf, in otx2_dma_map_skb_frag() argument 101 return otx2_dma_map_page(pfvf, page, offset, *len, DMA_TO_DEVICE); in otx2_dma_map_skb_frag() 104 static void otx2_dma_unmap_skb_frags(struct otx2_nic *pfvf, struct sg_list *sg) in otx2_dma_unmap_skb_frags() argument 109 otx2_dma_unmap_page(pfvf, sg->dma_addr[seg], in otx2_dma_unmap_skb_frags() 115 static void otx2_xdp_snd_pkt_handler(struct otx2_nic *pfvf, in otx2_xdp_snd_pkt_handler() argument 126 pa = otx2_iova_to_phys(pfvf->iommu_domain, sg->dma_addr[0]); in otx2_xdp_snd_pkt_handler() [all …]
|
D | otx2_flows.c | 15 static int otx2_mcam_entry_init(struct otx2_nic *pfvf); 35 static void otx2_clear_ntuple_flow_info(struct otx2_nic *pfvf, struct otx2_flow_config *flow_cfg) in otx2_clear_ntuple_flow_info() argument 37 devm_kfree(pfvf->dev, flow_cfg->flow_ent); in otx2_clear_ntuple_flow_info() 42 static int otx2_free_ntuple_mcam_entries(struct otx2_nic *pfvf) in otx2_free_ntuple_mcam_entries() argument 44 struct otx2_flow_config *flow_cfg = pfvf->flow_cfg; in otx2_free_ntuple_mcam_entries() 51 mutex_lock(&pfvf->mbox.lock); in otx2_free_ntuple_mcam_entries() 53 req = otx2_mbox_alloc_msg_npc_mcam_free_entry(&pfvf->mbox); in otx2_free_ntuple_mcam_entries() 60 err = otx2_sync_mbox_msg(&pfvf->mbox); in otx2_free_ntuple_mcam_entries() 64 mutex_unlock(&pfvf->mbox.lock); in otx2_free_ntuple_mcam_entries() 65 otx2_clear_ntuple_flow_info(pfvf, flow_cfg); in otx2_free_ntuple_mcam_entries() [all …]
|
D | cn10k_macsec.c | 49 static int cn10k_ecb_aes_encrypt(struct otx2_nic *pfvf, u8 *sak, in cn10k_ecb_aes_encrypt() argument 61 dev_err(pfvf->dev, "failed to allocate transform for ecb-aes\n"); in cn10k_ecb_aes_encrypt() 67 dev_err(pfvf->dev, "failed to allocate request for skcipher\n"); in cn10k_ecb_aes_encrypt() 74 dev_err(pfvf->dev, "failed to set key for skcipher\n"); in cn10k_ecb_aes_encrypt() 141 static int cn10k_mcs_alloc_rsrc(struct otx2_nic *pfvf, enum mcs_direction dir, in cn10k_mcs_alloc_rsrc() argument 144 struct mbox *mbox = &pfvf->mbox; in cn10k_mcs_alloc_rsrc() 163 rsp = (struct mcs_alloc_rsrc_rsp *)otx2_mbox_get_rsp(&pfvf->mbox.mbox, in cn10k_mcs_alloc_rsrc() 193 dev_err(pfvf->dev, "Failed to allocate %s %s resource\n", in cn10k_mcs_alloc_rsrc() 199 static void cn10k_mcs_free_rsrc(struct otx2_nic *pfvf, enum mcs_direction dir, in cn10k_mcs_free_rsrc() argument 204 struct mbox *mbox = &pfvf->mbox; in cn10k_mcs_free_rsrc() [all …]
|
D | otx2_devlink.c | 15 struct otx2_nic *pfvf = otx2_dl->pfvf; in otx2_dl_mcam_count_validate() local 18 if (!pfvf->flow_cfg) { in otx2_dl_mcam_count_validate() 24 flow_cfg = pfvf->flow_cfg; in otx2_dl_mcam_count_validate() 38 struct otx2_nic *pfvf = otx2_dl->pfvf; in otx2_dl_mcam_count_set() local 40 if (!pfvf->flow_cfg) in otx2_dl_mcam_count_set() 43 otx2_alloc_mcam_entries(pfvf, ctx->val.vu16); in otx2_dl_mcam_count_set() 52 struct otx2_nic *pfvf = otx2_dl->pfvf; in otx2_dl_mcam_count_get() local 55 if (!pfvf->flow_cfg) { in otx2_dl_mcam_count_get() 60 flow_cfg = pfvf->flow_cfg; in otx2_dl_mcam_count_get() 82 int otx2_register_dl(struct otx2_nic *pfvf) in otx2_register_dl() argument [all …]
|
D | cn10k.h | 13 static inline int mtu_to_dwrr_weight(struct otx2_nic *pfvf, int mtu) in mtu_to_dwrr_weight() argument 20 weight = mtu / pfvf->hw.dwrr_mtu; in mtu_to_dwrr_weight() 21 if (mtu % pfvf->hw.dwrr_mtu) in mtu_to_dwrr_weight() 30 int cn10k_lmtst_init(struct otx2_nic *pfvf); 31 int cn10k_free_all_ipolicers(struct otx2_nic *pfvf); 32 int cn10k_alloc_matchall_ipolicer(struct otx2_nic *pfvf); 33 int cn10k_free_matchall_ipolicer(struct otx2_nic *pfvf); 34 int cn10k_set_matchall_ipolicer_rate(struct otx2_nic *pfvf, 36 int cn10k_map_unmap_rq_policer(struct otx2_nic *pfvf, int rq_idx, 38 int cn10k_alloc_leaf_profile(struct otx2_nic *pfvf, u16 *leaf); [all …]
|
D | otx2_ptp.c | 51 struct otx2_nic *pfvf = ptp->nic; in otx2_ptp_hw_adjtime() local 58 mutex_lock(&pfvf->mbox.lock); in otx2_ptp_hw_adjtime() 61 mutex_unlock(&pfvf->mbox.lock); in otx2_ptp_hw_adjtime() 67 mutex_unlock(&pfvf->mbox.lock); in otx2_ptp_hw_adjtime() 117 struct otx2_nic *pfvf = ptp->nic; in otx2_ptp_hw_settime() local 127 mutex_lock(&pfvf->mbox.lock); in otx2_ptp_hw_settime() 130 mutex_unlock(&pfvf->mbox.lock); in otx2_ptp_hw_settime() 137 mutex_unlock(&pfvf->mbox.lock); in otx2_ptp_hw_settime() 233 struct otx2_nic *pfvf = ptp->nic; in otx2_ptp_tc_adjtime() local 235 mutex_lock(&pfvf->mbox.lock); in otx2_ptp_tc_adjtime() [all …]
|
D | otx2_ptp.h | 26 int otx2_ptp_init(struct otx2_nic *pfvf); 27 void otx2_ptp_destroy(struct otx2_nic *pfvf); 29 int otx2_ptp_clock_index(struct otx2_nic *pfvf); 30 int otx2_ptp_tstamp2time(struct otx2_nic *pfvf, u64 tstamp, u64 *tsns);
|
D | otx2_devlink.h | 13 struct otx2_nic *pfvf; member 17 int otx2_register_dl(struct otx2_nic *pfvf); 18 void otx2_unregister_dl(struct otx2_nic *pfvf);
|
D | qos.h | 26 int otx2_qos_get_qid(struct otx2_nic *pfvf); 27 void otx2_qos_free_qid(struct otx2_nic *pfvf, int qidx); 28 int otx2_qos_enable_sq(struct otx2_nic *pfvf, int qidx); 29 void otx2_qos_disable_sq(struct otx2_nic *pfvf, int qidx);
|
D | otx2_pf.c | 51 static int otx2_config_hw_tx_tstamp(struct otx2_nic *pfvf, bool enable); 52 static int otx2_config_hw_rx_tstamp(struct otx2_nic *pfvf, bool enable); 471 pf = vf_mbox->pfvf; in otx2_pfvf_mbox_handler() 506 struct otx2_nic *pf = vf_mbox->pfvf; in otx2_pfvf_mbox_up_handler() 633 mbox->pfvf = pf; in otx2_pfvf_mbox_init() 831 pf = af_mbox->pfvf; in otx2_pfaf_mbox_handler() 944 struct otx2_nic *pf = af_mbox->pfvf; in otx2_pfaf_mbox_up_handler() 1064 mbox->pfvf = pf; in otx2_pfaf_mbox_init() 1653 static bool otx2_promisc_use_mce_list(struct otx2_nic *pfvf) in otx2_promisc_use_mce_list() argument 1658 if (is_otx2_vf(pfvf->pcifunc)) in otx2_promisc_use_mce_list() [all …]
|
D | otx2_dmac_flt.c | 89 static int otx2_dmacflt_do_remove(struct otx2_nic *pfvf, const u8 *mac, in otx2_dmacflt_do_remove() argument 95 mutex_lock(&pfvf->mbox.lock); in otx2_dmacflt_do_remove() 96 req = otx2_mbox_alloc_msg_cgx_mac_addr_del(&pfvf->mbox); in otx2_dmacflt_do_remove() 98 mutex_unlock(&pfvf->mbox.lock); in otx2_dmacflt_do_remove() 104 err = otx2_sync_mbox_msg(&pfvf->mbox); in otx2_dmacflt_do_remove() 105 mutex_unlock(&pfvf->mbox.lock); in otx2_dmacflt_do_remove()
|
/linux-6.6.21/drivers/net/ethernet/marvell/octeontx2/af/ |
D | rvu_npa.c | 70 struct rvu_pfvf *pfvf; in rvu_npa_aq_enq_inst() local 74 pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_npa_aq_enq_inst() 75 if (!pfvf->aura_ctx || req->aura_id >= pfvf->aura_ctx->qsize) in rvu_npa_aq_enq_inst() 79 if (!pfvf->npalf || blkaddr < 0) in rvu_npa_aq_enq_inst() 130 if (req->aura.pool_addr >= pfvf->pool_ctx->qsize) { in rvu_npa_aq_enq_inst() 135 req->aura.pool_addr = pfvf->pool_ctx->iova + in rvu_npa_aq_enq_inst() 136 (req->aura.pool_addr * pfvf->pool_ctx->entry_sz); in rvu_npa_aq_enq_inst() 167 __set_bit(req->aura_id, pfvf->aura_bmap); in rvu_npa_aq_enq_inst() 170 (test_bit(req->aura_id, pfvf->aura_bmap) & in rvu_npa_aq_enq_inst() 173 __set_bit(req->aura_id, pfvf->aura_bmap); in rvu_npa_aq_enq_inst() [all …]
|
D | rvu.c | 27 static void rvu_set_msix_offset(struct rvu *rvu, struct rvu_pfvf *pfvf, 29 static void rvu_clear_msix_offset(struct rvu *rvu, struct rvu_pfvf *pfvf, 341 static void rvu_update_rsrc_map(struct rvu *rvu, struct rvu_pfvf *pfvf, in rvu_update_rsrc_map() argument 369 pfvf->npalf = attach ? true : false; in rvu_update_rsrc_map() 370 num_lfs = pfvf->npalf; in rvu_update_rsrc_map() 374 pfvf->nixlf = attach ? true : false; in rvu_update_rsrc_map() 375 num_lfs = pfvf->nixlf; in rvu_update_rsrc_map() 378 attach ? pfvf->sso++ : pfvf->sso--; in rvu_update_rsrc_map() 379 num_lfs = pfvf->sso; in rvu_update_rsrc_map() 382 attach ? pfvf->ssow++ : pfvf->ssow--; in rvu_update_rsrc_map() [all …]
|
D | rvu_nix.c | 102 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); in is_nixlf_attached() local 106 if (!pfvf->nixlf || blkaddr < 0) in is_nixlf_attached() 127 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); in nix_get_nixlf() local 132 if (!pfvf->nixlf || blkaddr < 0) in nix_get_nixlf() 148 struct rvu_pfvf *pfvf; in nix_get_struct_ptrs() local 150 pfvf = rvu_get_pfvf(rvu, pcifunc); in nix_get_struct_ptrs() 152 if (!pfvf->nixlf || *blkaddr < 0) in nix_get_struct_ptrs() 308 struct rvu_pfvf *parent_pf, *pfvf = rvu_get_pfvf(rvu, pcifunc); in nix_interface_init() local 324 pfvf->cgx_lmac = rvu->pf2cgxlmac_map[pf]; in nix_interface_init() 325 rvu_get_cgx_lmac_id(pfvf->cgx_lmac, &cgx_id, &lmac_id); in nix_interface_init() [all …]
|
D | rvu_switch.c | 13 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_switch_enable_lbk_link() local 16 nix_hw = get_nix_hw(rvu->hw, pfvf->nix_blkaddr); in rvu_switch_enable_lbk_link() 18 rvu_nix_tx_tl2_cfg(rvu, pfvf->nix_blkaddr, pcifunc, in rvu_switch_enable_lbk_link() 27 struct rvu_pfvf *pfvf; in rvu_switch_install_rx_rule() local 29 pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_switch_install_rx_rule() 34 if (!test_bit(NIXLF_INITIALIZED, &pfvf->flags)) in rvu_switch_install_rx_rule() 37 ether_addr_copy(req.packet.dmac, pfvf->mac_addr); in rvu_switch_install_rx_rule() 42 req.channel = pfvf->rx_chan_base; in rvu_switch_install_rx_rule() 44 req.intf = pfvf->nix_rx_intf; in rvu_switch_install_rx_rule() 55 struct rvu_pfvf *pfvf; in rvu_switch_install_tx_rule() local [all …]
|
D | rvu_sdp.c | 52 struct rvu_pfvf *pfvf; in rvu_sdp_init() local 60 pfvf = &rvu->pf[sdp_pf_num[i]]; in rvu_sdp_init() 62 pfvf->sdp_info = devm_kzalloc(rvu->dev, in rvu_sdp_init() 65 if (!pfvf->sdp_info) { in rvu_sdp_init() 85 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, req->hdr.pcifunc); in rvu_mbox_handler_set_sdp_chan_info() local 87 memcpy(pfvf->sdp_info, &req->info, sizeof(struct sdp_node_info)); in rvu_mbox_handler_set_sdp_chan_info()
|
D | rvu_cn10k.c | 101 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_update_lmtaddr() local 120 if (!pfvf->lmt_base_addr) in rvu_update_lmtaddr() 121 pfvf->lmt_base_addr = val; in rvu_update_lmtaddr() 138 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, req->hdr.pcifunc); in rvu_mbox_handler_lmtst_tbl_setup() local 209 if (!pfvf->lmt_map_ent_w1) in rvu_mbox_handler_lmtst_tbl_setup() 210 pfvf->lmt_map_ent_w1 = val; in rvu_mbox_handler_lmtst_tbl_setup() 242 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_reset_lmt_map_tbl() local 249 if (pfvf->lmt_base_addr || pfvf->lmt_map_ent_w1) { in rvu_reset_lmt_map_tbl() 255 if (pfvf->lmt_base_addr) { in rvu_reset_lmt_map_tbl() 257 &pfvf->lmt_base_addr, in rvu_reset_lmt_map_tbl() [all …]
|
D | rvu_npc_fs.c | 1047 static void npc_update_rx_entry(struct rvu *rvu, struct rvu_pfvf *pfvf, in npc_update_rx_entry() argument 1069 if (pfvf->def_ucast_rule) { in npc_update_rx_entry() 1070 action = pfvf->def_ucast_rule->rx_action; in npc_update_rx_entry() 1098 static void npc_update_tx_entry(struct rvu *rvu, struct rvu_pfvf *pfvf, in npc_update_tx_entry() argument 1135 int nixlf, struct rvu_pfvf *pfvf, in npc_install_flow() argument 1140 struct rvu_npc_mcam_rule *def_ucast_rule = pfvf->def_ucast_rule; in npc_install_flow() 1162 npc_update_rx_entry(rvu, pfvf, entry, req, target, pf_set_vfs_mac); in npc_install_flow() 1164 npc_update_tx_entry(rvu, pfvf, entry, req, target); in npc_install_flow() 1244 rule->intf = pfvf->nix_tx_intf; in npc_install_flow() 1246 rule->intf = pfvf->nix_rx_intf; in npc_install_flow() [all …]
|