Home
last modified time | relevance | path

Searched refs:flow_cfg (Results 1 – 12 of 12) sorted by relevance

/openbmc/linux/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dotx2_flows.c35 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()
38 flow_cfg->flow_ent = NULL; in otx2_clear_ntuple_flow_info()
39 flow_cfg->max_flows = 0; in otx2_clear_ntuple_flow_info()
44 struct otx2_flow_config *flow_cfg = pfvf->flow_cfg; in otx2_free_ntuple_mcam_entries() local
48 if (!flow_cfg->max_flows) in otx2_free_ntuple_mcam_entries()
52 for (ent = 0; ent < flow_cfg->max_flows; ent++) { in otx2_free_ntuple_mcam_entries()
57 req->entry = flow_cfg->flow_ent[ent]; in otx2_free_ntuple_mcam_entries()
65 otx2_clear_ntuple_flow_info(pfvf, flow_cfg); in otx2_free_ntuple_mcam_entries()
76 struct otx2_flow_config *flow_cfg = pfvf->flow_cfg; in otx2_alloc_mcam_entries() local
[all …]
H A Dotx2_devlink.c16 struct otx2_flow_config *flow_cfg; 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()
25 if (flow_cfg && flow_cfg->nr_flows) { in otx2_dl_mcam_count_validate()
40 if (!pfvf->flow_cfg) in otx2_dl_mcam_count_set()
53 struct otx2_flow_config *flow_cfg; 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()
61 ctx->val.vu16 = flow_cfg->max_flows; in otx2_dl_mcam_count_get()
H A Dotx2_tc.c768 struct otx2_flow_config *flow_cfg = pfvf->flow_cfg; in otx2_destroy_tc_flow_list() local
774 list_for_each_entry_safe(iter, tmp, &flow_cfg->flow_list_tc, list) { in otx2_destroy_tc_flow_list()
777 flow_cfg->nr_flows--; in otx2_destroy_tc_flow_list()
781 static struct otx2_tc_flow *otx2_tc_get_entry_by_cookie(struct otx2_flow_config *flow_cfg, in otx2_tc_get_entry_by_cookie() argument
786 list_for_each_entry(tmp, &flow_cfg->flow_list_tc, list) { in otx2_tc_get_entry_by_cookie()
794 static struct otx2_tc_flow *otx2_tc_get_entry_by_index(struct otx2_flow_config *flow_cfg, in otx2_tc_get_entry_by_index() argument
800 list_for_each_entry(tmp, &flow_cfg->flow_list_tc, list) { in otx2_tc_get_entry_by_index()
809 static void otx2_tc_del_from_flow_list(struct otx2_flow_config *flow_cfg, in otx2_tc_del_from_flow_list() argument
815 list_for_each_safe(pos, n, &flow_cfg->flow_list_tc) { in otx2_tc_del_from_flow_list()
824 static int otx2_tc_add_to_flow_list(struct otx2_flow_config *flow_cfg, in otx2_tc_add_to_flow_list() argument
[all …]
H A Dotx2_dmac_flt.c86 dmacindex = &pf->flow_cfg->bmap_to_dmacindex[bit_pos]; in otx2_dmacflt_add()
137 u32 dmacindex = pf->flow_cfg->bmap_to_dmacindex[bit_pos]; in otx2_dmacflt_remove()
175 pf->flow_cfg->dmacflt_max_flows = rsp->max_dmac_filters; in otx2_dmacflt_get_max_cnt()
198 req->index = pf->flow_cfg->bmap_to_dmacindex[bit_pos]; in otx2_dmacflt_update()
213 pf->flow_cfg->bmap_to_dmacindex[bit_pos] = rsp->index; in otx2_dmacflt_update()
H A Dotx2_pf.c1175 if (enable && !bitmap_empty(pf->flow_cfg->dmacflt_bmap, in otx2_cgx_config_loopback()
1176 pf->flow_cfg->dmacflt_max_flows)) in otx2_cgx_config_loopback()
2419 struct otx2_flow_config *flow_cfg = pf->flow_cfg; in otx2_do_set_vf_vlan() local
2460 flow_cfg->def_ent[flow_cfg->vf_vlan_offset + idx]; in otx2_do_set_vf_vlan()
2473 flow_cfg->def_ent[flow_cfg->vf_vlan_offset + idx]; in otx2_do_set_vf_vlan()
2487 req->entry = flow_cfg->def_ent[flow_cfg->vf_vlan_offset + idx]; in otx2_do_set_vf_vlan()
2538 req->entry = flow_cfg->def_ent[flow_cfg->vf_vlan_offset + idx]; in otx2_do_set_vf_vlan()
H A Dotx2_common.h490 struct otx2_flow_config *flow_cfg; member
948 if (!pfvf->flow_cfg) in otx2_tc_flower_rule_cnt()
951 return pfvf->flow_cfg->nr_flows; in otx2_tc_flower_rule_cnt()
1055 int otx2_get_maxflows(struct otx2_flow_config *flow_cfg);
H A Dotx2_ethtool.c749 nfc->rule_cnt = pfvf->flow_cfg->nr_flows; in otx2_get_rxnfc()
775 pfvf->flow_cfg->ntuple = ntuple; in otx2_set_rxnfc()
H A Dotx2_common.c1881 if (!pfvf->flow_cfg->max_flows) { in otx2_handle_ntuple_tc_features()
/openbmc/linux/drivers/dma/ti/
H A Dk3-udma-glue.c663 struct k3_udma_glue_rx_flow_cfg *flow_cfg) in k3_udma_glue_cfg_rx_flow() argument
691 rx_ring_id = flow_cfg->ring_rxq_id; in k3_udma_glue_cfg_rx_flow()
692 rx_ringfdq_id = flow_cfg->ring_rxfdq0_id; in k3_udma_glue_cfg_rx_flow()
706 flow_cfg->rx_cfg.dma_dev = k3_udma_glue_rx_get_dma_device(rx_chn); in k3_udma_glue_cfg_rx_flow()
707 flow_cfg->rxfdq_cfg.dma_dev = flow_cfg->rx_cfg.dma_dev; in k3_udma_glue_cfg_rx_flow()
711 flow_cfg->rx_cfg.asel = rx_chn->common.atype_asel; in k3_udma_glue_cfg_rx_flow()
712 flow_cfg->rxfdq_cfg.asel = rx_chn->common.atype_asel; in k3_udma_glue_cfg_rx_flow()
715 ret = k3_ringacc_ring_cfg(flow->ringrx, &flow_cfg->rx_cfg); in k3_udma_glue_cfg_rx_flow()
721 ret = k3_ringacc_ring_cfg(flow->ringrxfdq, &flow_cfg->rxfdq_cfg); in k3_udma_glue_cfg_rx_flow()
757 if (flow_cfg->rx_error_handling) in k3_udma_glue_cfg_rx_flow()
[all …]
/openbmc/linux/drivers/net/ethernet/ti/icssg/
H A Dicssg_config.c331 struct icssg_flow_cfg __iomem *flow_cfg; in icssg_config() local
365 flow_cfg = config + PSI_L_REGULAR_FLOW_ID_BASE_OFFSET; in icssg_config()
366 writew(emac->rx_flow_id_base, &flow_cfg->rx_base_flow); in icssg_config()
367 writew(0, &flow_cfg->mgm_base_flow); in icssg_config()
/openbmc/linux/include/linux/dma/
H A Dk3-udma-glue.h123 u32 flow_idx, struct k3_udma_glue_rx_flow_cfg *flow_cfg);
/openbmc/linux/drivers/net/ethernet/marvell/octeontx2/af/
H A Drvu_nix.c3543 static int get_flowkey_alg_idx(struct nix_hw *nix_hw, u32 flow_cfg) in get_flowkey_alg_idx() argument
3549 if (nix_hw->flowkey.flowkey[i] == flow_cfg) in get_flowkey_alg_idx()
3560 static int set_flowkey_fields(struct nix_rx_flowkey_alg *alg, u32 flow_cfg) in set_flowkey_fields() argument
3600 l3_l4_src_dst = flow_cfg; in set_flowkey_fields()
3602 flow_cfg &= NIX_FLOW_KEY_TYPE_L3_L4_MASK; in set_flowkey_fields()
3606 field = &tmp; max_bit_pos = fls(flow_cfg); in set_flowkey_fields()
3611 valid_key = flow_cfg & key_type; in set_flowkey_fields()
3880 static int reserve_flowkey_alg_idx(struct rvu *rvu, int blkaddr, u32 flow_cfg) in reserve_flowkey_alg_idx() argument
3895 rc = set_flowkey_fields((struct nix_rx_flowkey_alg *)field, flow_cfg); in reserve_flowkey_alg_idx()
3907 hw->flowkey.flowkey[rc] = flow_cfg; in reserve_flowkey_alg_idx()