Home
last modified time | relevance | path

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

/linux-6.15/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dotx2_flows.c42 struct otx2_flow_config *flow_cfg = pfvf->flow_cfg; in otx2_free_ntuple_mcam_entries() local
69 struct otx2_flow_config *flow_cfg = pfvf->flow_cfg; in otx2_alloc_mcam_entries() local
161 struct otx2_flow_config *flow_cfg = pfvf->flow_cfg; in otx2_mcam_entry_init() local
215 flow_cfg->rx_vlan_offset = flow_cfg->unicast_offset + in otx2_mcam_entry_init()
282 flow_cfg = pfvf->flow_cfg; in otx2vf_mcam_flow_init()
358 struct otx2_flow_config *flow_cfg = pf->flow_cfg; in otx2_do_add_macfilter() local
383 flow_cfg->def_ent[i + flow_cfg->unicast_offset]; in otx2_do_add_macfilter()
488 if (flow_cfg->nr_flows == flow_cfg->max_flows || in otx2_get_maxflows()
1093 struct otx2_flow_config *flow_cfg = pfvf->flow_cfg; in otx2_add_flow() local
1269 struct otx2_flow_config *flow_cfg = pfvf->flow_cfg; in otx2_remove_flow() 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()
41 if (!pfvf->flow_cfg) in otx2_dl_mcam_count_set()
55 struct otx2_flow_config *flow_cfg; in otx2_dl_mcam_count_get() local
57 if (!pfvf->flow_cfg) { in otx2_dl_mcam_count_get()
62 flow_cfg = pfvf->flow_cfg; in otx2_dl_mcam_count_get()
92 ctx->val.vu8 = pfvf->flow_cfg ? pfvf->flow_cfg->ucast_flt_cnt : 0; in otx2_dl_ucast_flt_cnt_get()
111 if (!pfvf->flow_cfg) { in otx2_dl_ucast_flt_cnt_validate()
[all …]
H A Dotx2_tc.c527 refcount_inc(&nic->flow_cfg->mark_flows); in otx2_tc_parse_actions()
960 struct otx2_flow_config *flow_cfg = pfvf->flow_cfg; in otx2_destroy_tc_flow_list() local
969 flow_cfg->nr_flows--; in otx2_destroy_tc_flow_list()
1150 int mcam_idx = flow_cfg->max_flows - flow_cfg->nr_flows - 1; in otx2_tc_update_mcam_table_add_req()
1191 struct otx2_flow_config *flow_cfg = nic->flow_cfg; in otx2_tc_del_flow() local
1245 flow_cfg->nr_flows--; in otx2_tc_del_flow()
1253 struct otx2_flow_config *flow_cfg = nic->flow_cfg; in otx2_tc_add_flow() local
1266 if (flow_cfg->nr_flows == flow_cfg->max_flows) { in otx2_tc_add_flow()
1323 flow_cfg->nr_flows++; in otx2_tc_add_flow()
1613 if (!nic->flow_cfg) { in otx2_init_tc()
[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 Drep.c45 if (!rep->flow_cfg) in rvu_rep_mcam_flow_init()
50 rep->flow_cfg->flow_ent = kcalloc(count, sizeof(u16), GFP_KERNEL); in rvu_rep_mcam_flow_init()
51 if (!rep->flow_cfg->flow_ent) in rvu_rep_mcam_flow_init()
74 rep->flow_cfg->flow_ent[ent + allocated] = rsp->entry_list[ent]; in rvu_rep_mcam_flow_init()
88 sort(&rep->flow_cfg->flow_ent[0], allocated, in rvu_rep_mcam_flow_init()
89 sizeof(rep->flow_cfg->flow_ent[0]), mcam_entry_cmp, NULL); in rvu_rep_mcam_flow_init()
93 rep->flow_cfg->max_flows = allocated; in rvu_rep_mcam_flow_init()
101 INIT_LIST_HEAD(&rep->flow_cfg->flow_list); in rvu_rep_mcam_flow_init()
102 INIT_LIST_HEAD(&rep->flow_cfg->flow_list_tc); in rvu_rep_mcam_flow_init()
121 priv->flow_cfg = rep->flow_cfg; in rvu_rep_setup_tc_cb()
[all …]
H A Drep.h38 struct otx2_flow_config *flow_cfg; member
H A Dotx2_pf.c1209 if (enable && !bitmap_empty(pf->flow_cfg->dmacflt_bmap, in otx2_cgx_config_loopback()
1210 pf->flow_cfg->dmacflt_max_flows)) in otx2_cgx_config_loopback()
1766 (netdev_uc_count(netdev) > pf->flow_cfg->ucast_flt_cnt)) { in otx2_do_set_rx_mode()
2500 struct otx2_flow_config *flow_cfg = pf->flow_cfg; in otx2_do_set_vf_vlan() local
2541 flow_cfg->def_ent[flow_cfg->vf_vlan_offset + idx]; in otx2_do_set_vf_vlan()
2554 flow_cfg->def_ent[flow_cfg->vf_vlan_offset + idx]; in otx2_do_set_vf_vlan()
2568 req->entry = flow_cfg->def_ent[flow_cfg->vf_vlan_offset + idx]; in otx2_do_set_vf_vlan()
2619 req->entry = flow_cfg->def_ent[flow_cfg->vf_vlan_offset + idx]; in otx2_do_set_vf_vlan()
H A Dotx2_common.h487 struct otx2_flow_config *flow_cfg; member
979 if (!pfvf->flow_cfg) in otx2_tc_flower_rule_cnt()
982 return pfvf->flow_cfg->nr_flows; in otx2_tc_flower_rule_cnt()
1103 int otx2_get_maxflows(struct otx2_flow_config *flow_cfg);
H A Dotx2_ethtool.c734 nfc->rule_cnt = pfvf->flow_cfg->nr_flows; in otx2_get_rxnfc()
760 pfvf->flow_cfg->ntuple = ntuple; in otx2_set_rxnfc()
H A Dotx2_common.c2034 if (!pfvf->flow_cfg->max_flows) { in otx2_handle_ntuple_tc_features()
/linux-6.15/drivers/dma/ti/
H A Dk3-udma-glue.c734 struct k3_udma_glue_rx_flow_cfg *flow_cfg) in k3_udma_glue_cfg_rx_flow() argument
762 rx_ring_id = flow_cfg->ring_rxq_id; in k3_udma_glue_cfg_rx_flow()
763 rx_ringfdq_id = flow_cfg->ring_rxfdq0_id; in k3_udma_glue_cfg_rx_flow()
778 flow_cfg->rxfdq_cfg.dma_dev = flow_cfg->rx_cfg.dma_dev; in k3_udma_glue_cfg_rx_flow()
782 flow_cfg->rx_cfg.asel = rx_chn->common.atype_asel; in k3_udma_glue_cfg_rx_flow()
783 flow_cfg->rxfdq_cfg.asel = rx_chn->common.atype_asel; in k3_udma_glue_cfg_rx_flow()
786 ret = k3_ringacc_ring_cfg(flow->ringrx, &flow_cfg->rx_cfg); in k3_udma_glue_cfg_rx_flow()
828 if (flow_cfg->rx_error_handling) in k3_udma_glue_cfg_rx_flow()
833 req.rx_src_tag_lo_sel = flow_cfg->src_tag_lo_sel; in k3_udma_glue_cfg_rx_flow()
1267 struct k3_udma_glue_rx_flow_cfg *flow_cfg) in k3_udma_glue_rx_flow_init() argument
[all …]
/linux-6.15/drivers/net/ethernet/ti/icssg/
H A Dicssg_config.c451 struct icssg_flow_cfg __iomem *flow_cfg; in icssg_config() local
486 flow_cfg = config + PSI_L_REGULAR_FLOW_ID_BASE_OFFSET; in icssg_config()
487 writew(emac->rx_flow_id_base, &flow_cfg->rx_base_flow); in icssg_config()
488 writew(0, &flow_cfg->mgm_base_flow); in icssg_config()
H A Dicssg_prueth.c735 struct icssg_flow_cfg __iomem *flow_cfg; in emac_ndo_open() local
789 flow_cfg = emac->dram.va + ICSSG_CONFIG_OFFSET + PSI_L_REGULAR_FLOW_ID_BASE_OFFSET; in emac_ndo_open()
790 writew(emac->rx_flow_id_base, &flow_cfg->rx_base_flow); in emac_ndo_open()
/linux-6.15/include/linux/dma/
H A Dk3-udma-glue.h133 u32 flow_idx, struct k3_udma_glue_rx_flow_cfg *flow_cfg);
/linux-6.15/drivers/net/ethernet/marvell/octeontx2/af/
H A Drvu_nix.c3952 static int get_flowkey_alg_idx(struct nix_hw *nix_hw, u32 flow_cfg) in get_flowkey_alg_idx() argument
3958 if (nix_hw->flowkey.flowkey[i] == flow_cfg) in get_flowkey_alg_idx()
3969 static int set_flowkey_fields(struct nix_rx_flowkey_alg *alg, u32 flow_cfg) in set_flowkey_fields() argument
4009 l3_l4_src_dst = flow_cfg; in set_flowkey_fields()
4011 flow_cfg &= NIX_FLOW_KEY_TYPE_L3_L4_MASK; in set_flowkey_fields()
4015 field = &tmp; max_bit_pos = fls(flow_cfg); in set_flowkey_fields()
4020 valid_key = flow_cfg & key_type; in set_flowkey_fields()
4296 static int reserve_flowkey_alg_idx(struct rvu *rvu, int blkaddr, u32 flow_cfg) in reserve_flowkey_alg_idx() argument
4311 rc = set_flowkey_fields((struct nix_rx_flowkey_alg *)field, flow_cfg); in reserve_flowkey_alg_idx()
4323 hw->flowkey.flowkey[rc] = flow_cfg; in reserve_flowkey_alg_idx()