Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/net/ethernet/marvell/octeontx2/nic/
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 …]
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()
Dotx2_tc.c746 struct otx2_flow_config *flow_cfg = pfvf->flow_cfg; in otx2_destroy_tc_flow_list() local
752 list_for_each_entry_safe(iter, tmp, &flow_cfg->flow_list_tc, list) { in otx2_destroy_tc_flow_list()
755 flow_cfg->nr_flows--; in otx2_destroy_tc_flow_list()
759 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
764 list_for_each_entry(tmp, &flow_cfg->flow_list_tc, list) { in otx2_tc_get_entry_by_cookie()
772 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
778 list_for_each_entry(tmp, &flow_cfg->flow_list_tc, list) { in otx2_tc_get_entry_by_index()
787 static void otx2_tc_del_from_flow_list(struct otx2_flow_config *flow_cfg, in otx2_tc_del_from_flow_list() argument
793 list_for_each_safe(pos, n, &flow_cfg->flow_list_tc) { in otx2_tc_del_from_flow_list()
802 static int otx2_tc_add_to_flow_list(struct otx2_flow_config *flow_cfg, in otx2_tc_add_to_flow_list() argument
[all …]
Dotx2_dmac_flt.c81 dmacindex = &pf->flow_cfg->bmap_to_dmacindex[bit_pos]; in otx2_dmacflt_add()
132 u32 dmacindex = pf->flow_cfg->bmap_to_dmacindex[bit_pos]; in otx2_dmacflt_remove()
170 pf->flow_cfg->dmacflt_max_flows = rsp->max_dmac_filters; in otx2_dmacflt_get_max_cnt()
193 req->index = pf->flow_cfg->bmap_to_dmacindex[bit_pos]; in otx2_dmacflt_update()
204 pf->flow_cfg->bmap_to_dmacindex[bit_pos] = rsp->index; in otx2_dmacflt_update()
Dotx2_pf.c1129 if (enable && !bitmap_empty(pf->flow_cfg->dmacflt_bmap, in otx2_cgx_config_loopback()
1130 pf->flow_cfg->dmacflt_max_flows)) in otx2_cgx_config_loopback()
2330 struct otx2_flow_config *flow_cfg = pf->flow_cfg; in otx2_do_set_vf_vlan() local
2371 flow_cfg->def_ent[flow_cfg->vf_vlan_offset + idx]; in otx2_do_set_vf_vlan()
2384 flow_cfg->def_ent[flow_cfg->vf_vlan_offset + idx]; in otx2_do_set_vf_vlan()
2398 req->entry = flow_cfg->def_ent[flow_cfg->vf_vlan_offset + idx]; in otx2_do_set_vf_vlan()
2449 req->entry = flow_cfg->def_ent[flow_cfg->vf_vlan_offset + idx]; in otx2_do_set_vf_vlan()
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()
1053 int otx2_get_maxflows(struct otx2_flow_config *flow_cfg);
Dotx2_ethtool.c741 nfc->rule_cnt = pfvf->flow_cfg->nr_flows; in otx2_get_rxnfc()
767 pfvf->flow_cfg->ntuple = ntuple; in otx2_set_rxnfc()
Dotx2_common.c1872 if (!pfvf->flow_cfg->max_flows) { in otx2_handle_ntuple_tc_features()
/Linux-v6.6/drivers/dma/ti/
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 …]
/Linux-v6.6/drivers/net/ethernet/ti/icssg/
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()
/Linux-v6.6/include/linux/dma/
Dk3-udma-glue.h123 u32 flow_idx, struct k3_udma_glue_rx_flow_cfg *flow_cfg);
/Linux-v6.6/drivers/net/ethernet/marvell/octeontx2/af/
Drvu_nix.c3507 static int get_flowkey_alg_idx(struct nix_hw *nix_hw, u32 flow_cfg) in get_flowkey_alg_idx() argument
3513 if (nix_hw->flowkey.flowkey[i] == flow_cfg) in get_flowkey_alg_idx()
3519 static int set_flowkey_fields(struct nix_rx_flowkey_alg *alg, u32 flow_cfg) in set_flowkey_fields() argument
3559 l3_l4_src_dst = flow_cfg; in set_flowkey_fields()
3561 flow_cfg &= NIX_FLOW_KEY_TYPE_L3_L4_MASK; in set_flowkey_fields()
3565 field = &tmp; max_bit_pos = fls(flow_cfg); in set_flowkey_fields()
3570 valid_key = flow_cfg & key_type; in set_flowkey_fields()
3840 static int reserve_flowkey_alg_idx(struct rvu *rvu, int blkaddr, u32 flow_cfg) in reserve_flowkey_alg_idx() argument
3855 rc = set_flowkey_fields((struct nix_rx_flowkey_alg *)field, flow_cfg); in reserve_flowkey_alg_idx()
3867 hw->flowkey.flowkey[rc] = flow_cfg; in reserve_flowkey_alg_idx()