Home
last modified time | relevance | path

Searched refs:cfg (Results 1 – 25 of 192) sorted by relevance

12345678

/dpdk/lib/cfgfile/
H A Drte_cfgfile.c258 _add_entry(&cfg->sections[cfg->num_sections - 1], in rte_cfgfile_load_with_params()
263 return cfg; in rte_cfgfile_load_with_params()
280 cfg = malloc(sizeof(*cfg)); in rte_cfgfile_create()
282 if (cfg == NULL) in rte_cfgfile_create()
310 return cfg; in rte_cfgfile_create()
322 free(cfg); in rte_cfgfile_create()
338 if (cfg->num_sections == cfg->allocated_sections) { in rte_cfgfile_add_section()
359 strlcpy(cfg->sections[cfg->num_sections].name, sectionname, in rte_cfgfile_add_section()
361 cfg->sections[cfg->num_sections].num_entries = 0; in rte_cfgfile_add_section()
460 free(cfg); in rte_cfgfile_close()
[all …]
H A Drte_cfgfile.h121 rte_cfgfile_add_section(struct rte_cfgfile *cfg, const char *sectionname);
137 int rte_cfgfile_add_entry(struct rte_cfgfile *cfg,
155 int rte_cfgfile_set_entry(struct rte_cfgfile *cfg, const char *sectionname,
168 int rte_cfgfile_save(struct rte_cfgfile *cfg, const char *filename);
202 int rte_cfgfile_sections(struct rte_cfgfile *cfg, char *sections[],
230 int rte_cfgfile_section_num_entries(struct rte_cfgfile *cfg,
249 int rte_cfgfile_section_num_entries_by_index(struct rte_cfgfile *cfg,
271 int rte_cfgfile_section_entries(struct rte_cfgfile *cfg,
298 int rte_cfgfile_section_entries_by_index(struct rte_cfgfile *cfg,
319 const char *rte_cfgfile_get_entry(struct rte_cfgfile *cfg,
[all …]
/dpdk/examples/qos_sched/
H A Dcfg_file.c31 if (!cfg || !port_params) in cfg_load_port()
53 if (!cfg || !pipe_params) in cfg_load_pipe()
146 cfg_load_subport_profile(struct rte_cfgfile *cfg, in cfg_load_subport_profile() argument
153 if (!cfg || !subport_profile) in cfg_load_subport_profile()
272 if (!cfg || !subport_params) in cfg_load_subport()
285 if (rte_cfgfile_has_section(cfg, "red")) { in cfg_load_subport()
293 entry = rte_cfgfile_get_entry(cfg, "red", str); in cfg_load_subport()
308 entry = rte_cfgfile_get_entry(cfg, "red", str); in cfg_load_subport()
354 if (rte_cfgfile_has_section(cfg, "pie")) { in cfg_load_subport()
396 if (rte_cfgfile_has_section(cfg, sec_name)) { in cfg_load_subport()
[all …]
/dpdk/lib/pipeline/
H A Drte_port_in_action.c19 if (cfg == NULL) in fltr_cfg_check()
55 if ((cfg == NULL) || in lb_cfg_check()
59 (cfg->f_hash == NULL)) in lb_cfg_check()
73 memcpy(data->port_id, cfg->port_id, sizeof(cfg->port_id)); in lb_init()
342 memcpy(&action->cfg, &profile->cfg, sizeof(profile->cfg)); in rte_port_in_action_create()
391 struct rte_port_in_action_fltr_config *cfg = &action->cfg.fltr; in ah_filter_on_match() local
425 struct rte_port_in_action_fltr_config *cfg = &action->cfg.fltr; in ah_filter_on_mismatch() local
459 struct rte_port_in_action_lb_config *cfg = &action->cfg.lb; in ah_lb() local
472 cfg->key_mask, in ah_lb()
473 cfg->key_size, in ah_lb()
[all …]
H A Drte_table_action.c87 cfg->key_mask, in pkt_work_lb()
88 cfg->key_size, in pkt_work_lb()
89 cfg->seed); in pkt_work_lb()
1735 if (cfg->mp_create == NULL || cfg->mp_init == NULL) in sym_crypto_cfg_check()
2518 memcpy(&action->cfg, &profile->cfg, sizeof(profile->cfg)); in rte_table_action_create()
2912 &cfg->lb); in pkt_work()
3089 &cfg->lb); in pkt4_work()
3093 &cfg->lb); in pkt4_work()
3383 cfg); in ah()
3395 cfg); in ah()
[all …]
/dpdk/drivers/net/dpaa2/mc/
H A Ddpkg.c27 if (cfg->num_extracts > DPKG_MAX_NUM_OF_EXTRACTS) in dpkg_prepare_key_cfg()
31 dpni_ext->num_extracts = cfg->num_extracts; in dpkg_prepare_key_cfg()
33 for (i = 0; i < cfg->num_extracts; i++) { in dpkg_prepare_key_cfg()
36 switch (cfg->extracts[i].type) { in dpkg_prepare_key_cfg()
40 cfg->extracts[i].extract.from_hdr.type); in dpkg_prepare_key_cfg()
44 cfg->extracts[i].extract.from_hdr.field); in dpkg_prepare_key_cfg()
46 cfg->extracts[i].extract.from_hdr.hdr_index; in dpkg_prepare_key_cfg()
51 cfg->extracts[i].extract.from_data.offset; in dpkg_prepare_key_cfg()
56 cfg->extracts[i].extract.from_parse.offset; in dpkg_prepare_key_cfg()
64 cfg->extracts[i].type); in dpkg_prepare_key_cfg()
[all …]
H A Ddpni.c108 const struct dpni_cfg *cfg, in dpni_create() argument
211 cfg->pools[i].priority_mask; in dpni_set_pools()
1612 cfg->separate_groups); in dpni_set_tx_priorities()
1667 cfg->dist_mode); in dpni_set_rx_tc_dist()
2137 cfg->yellow.max_threshold = in dpni_extract_early_drop()
2139 cfg->yellow.min_threshold = in dpni_extract_early_drop()
2281 cfg->units); in dpni_set_congestion_notification()
2715 struct opr_cfg *cfg, in dpni_set_opr() argument
2734 cmd_params->oa = cfg->oa; in dpni_set_opr()
2760 struct opr_cfg *cfg, in dpni_get_opr() argument
[all …]
/dpdk/drivers/net/dpaa2/
H A Ddpaa2_sparser.c152 struct dpni_load_ss_cfg cfg; in dpaa2_eth_load_wriop_soft_parser() local
162 cfg.dest = dest; in dpaa2_eth_load_wriop_soft_parser()
163 cfg.ss_offset = sp_param.start_pc; in dpaa2_eth_load_wriop_soft_parser()
164 cfg.ss_size = sp_param.size; in dpaa2_eth_load_wriop_soft_parser()
194 struct dpni_enable_ss_cfg cfg; in dpaa2_eth_enable_wriop_soft_parser() local
208 cfg.dest = dest; in dpaa2_eth_enable_wriop_soft_parser()
209 cfg.ss_offset = sp_param.start_pc; in dpaa2_eth_enable_wriop_soft_parser()
213 cfg.param_size = sp_param.param_size; in dpaa2_eth_enable_wriop_soft_parser()
214 if (cfg.param_size) { in dpaa2_eth_enable_wriop_soft_parser()
223 priv->ss_param_iova = cfg.param_iova; in dpaa2_eth_enable_wriop_soft_parser()
[all …]
/dpdk/drivers/net/mlx5/
H A Dmlx5_utils.c30 struct mlx5_indexed_pool_config *cfg = &pool->cfg; in mlx5_trunk_idx_get() local
38 (cfg->trunk_size << (cfg->grow_shift * in mlx5_trunk_idx_get()
39 cfg->grow_trunk)) + cfg->grow_trunk; in mlx5_trunk_idx_get()
53 struct mlx5_indexed_pool_config *cfg = &pool->cfg; in mlx5_trunk_size_get() local
55 return cfg->trunk_size << (cfg->grow_shift * in mlx5_trunk_size_get()
62 struct mlx5_indexed_pool_config *cfg = &pool->cfg; in mlx5_trunk_idx_offset_get() local
73 (cfg->trunk_size << (cfg->grow_shift * in mlx5_trunk_idx_offset_get()
84 if (!cfg || (!cfg->malloc ^ !cfg->free) || in mlx5_ipool_create()
86 (cfg->trunk_size && ((cfg->trunk_size & (cfg->trunk_size - 1)) || in mlx5_ipool_create()
94 pool->cfg = *cfg; in mlx5_ipool_create()
[all …]
/dpdk/drivers/vdpa/ifc/base/
H A Difcvf.c197 struct ifcvf_pci_common_cfg *cfg; in ifcvf_hw_enable() local
202 cfg = hw->common_cfg; in ifcvf_hw_enable()
205 IFCVF_WRITE_REG16(0, &cfg->msix_config); in ifcvf_hw_enable()
212 IFCVF_WRITE_REG16(i, &cfg->queue_select); in ifcvf_hw_enable()
214 &cfg->queue_desc_hi); in ifcvf_hw_enable()
216 &cfg->queue_avail_hi); in ifcvf_hw_enable()
218 &cfg->queue_used_hi); in ifcvf_hw_enable()
237 IFCVF_WRITE_REG16(1, &cfg->queue_enable); in ifcvf_hw_enable()
247 struct ifcvf_pci_common_cfg *cfg; in ifcvf_hw_disable() local
250 cfg = hw->common_cfg; in ifcvf_hw_disable()
[all …]
/dpdk/drivers/net/mvpp2/
H A Dmrvl_qos.c108 struct mrvl_cfg *cfg) in get_outq_cfg() argument
314 struct mrvl_cfg *cfg) in parse_tc_cfg() argument
331 cfg->port[port].tc[tc].inq, in parse_tc_cfg()
340 cfg->port[port].tc[tc].inqs = n; in parse_tc_cfg()
346 cfg->port[port].tc[tc].pcp, in parse_tc_cfg()
355 cfg->port[port].tc[tc].pcps = n; in parse_tc_cfg()
361 cfg->port[port].tc[tc].dscp, in parse_tc_cfg()
370 cfg->port[port].tc[tc].dscps = n; in parse_tc_cfg()
408 struct mrvl_cfg *cfg) in parse_policer() argument
487 struct mrvl_cfg *cfg) in parse_udf() argument
[all …]
/dpdk/drivers/net/ark/
H A Dark_mpu.c56 mpu->cfg.command = MPU_CMD_STOP; in ark_mpu_stop()
62 mpu->cfg.command = MPU_CMD_RUN; in ark_mpu_start()
70 mpu->cfg.command = MPU_CMD_RESET; in ark_mpu_reset()
78 if (mpu->cfg.command != MPU_CMD_IDLE) { in ark_mpu_reset()
104 mpu->cfg.ring_base = ring; in ark_mpu_configure()
105 mpu->cfg.ring_size = ring_size; in ark_mpu_configure()
106 mpu->cfg.ring_mask = ring_size - 1; in ark_mpu_configure()
109 mpu->cfg.sw_prod_index = 0; in ark_mpu_configure()
110 mpu->cfg.hw_cons_index = 0; in ark_mpu_configure()
120 mpu->cfg.sw_prod_index, mpu->cfg.hw_cons_index); in ark_mpu_dump()
[all …]
H A Dark_ddm.c23 hw_const = ddm->cfg.const0; in ark_ddm_verify()
42 ddm->cfg.const0); in ark_ddm_verify()
49 ddm->cfg.command = 1; in ark_ddm_start()
57 ddm->cfg.command = 2; in ark_ddm_stop()
59 while (wait && (ddm->cfg.stop_flushed & 0x01) == 0) { in ark_ddm_stop()
79 ddm->cfg.command = 4; in ark_ddm_reset()
82 ddm->cfg.command = 3; in ark_ddm_reset()
95 ddm->cfg.tlp_stats_clear = 1; in ark_ddm_stats_reset()
122 return (ddm->cfg.stop_flushed & 0x01) != 0; in ark_ddm_is_stopped()
/dpdk/drivers/crypto/dpaa2_sec/mc/
H A Ddpseci.c108 const struct dpseci_cfg *cfg, in dpseci_create() argument
348 cfg->dest_cfg.dest_type); in dpseci_set_rx_queue()
594 struct opr_cfg *cfg) in dpseci_set_opr() argument
606 cmd_params->oloe = cfg->oloe; in dpseci_set_opr()
608 cmd_params->olws = cfg->olws; in dpseci_set_opr()
609 cmd_params->oa = cfg->oa; in dpseci_set_opr()
631 struct opr_cfg *cfg, in dpseci_get_opr() argument
653 cfg->oloe = rsp_params->oloe; in dpseci_get_opr()
656 cfg->oa = rsp_params->oa; in dpseci_get_opr()
710 cfg->dest_cfg.dest_type); in dpseci_set_congestion_notification()
[all …]
/dpdk/lib/eal/common/
H A Deal_common_lcore.c68 return cfg->lcore_role[lcore_id]; in rte_eal_lcore_role()
79 return cfg->lcore_role[lcore_id] == role; in rte_lcore_has_role()
88 return cfg->lcore_role[lcore_id] == ROLE_RTE; in rte_lcore_is_enabled()
291 if (cfg->lcore_role[lcore_id] == ROLE_OFF) in rte_lcore_callback_register()
354 cfg->lcore_role[lcore_id] = ROLE_NON_EAL; in eal_lcore_non_eal_allocate()
355 cfg->lcore_count++; in eal_lcore_non_eal_allocate()
375 cfg->lcore_role[lcore_id] = ROLE_OFF; in eal_lcore_non_eal_allocate()
376 cfg->lcore_count--; in eal_lcore_non_eal_allocate()
396 cfg->lcore_role[lcore_id] = ROLE_OFF; in eal_lcore_non_eal_release()
397 cfg->lcore_count--; in eal_lcore_non_eal_release()
[all …]
/dpdk/app/test/
H A Dtest_acl.c224 cfg->num_fields = RTE_DIM(ipv4_defs); in acl_ipv4vlan_config()
243 cfg->num_categories = num_categories; in acl_ipv4vlan_config()
268 struct rte_acl_config cfg; in rte_acl_ipv4vlan_build() local
273 memset(&cfg, 0, sizeof(cfg)); in rte_acl_ipv4vlan_build()
275 return rte_acl_build(ctx, &cfg); in rte_acl_ipv4vlan_build()
764 cfg->num_fields = RTE_DIM(ipv4_defs); in ipv4vlan_config()
900 struct rte_acl_config cfg; in build_convert_rules() local
902 memset(&cfg, 0, sizeof(cfg)); in build_convert_rules()
903 config(&cfg); in build_convert_rules()
904 cfg.max_size = max_size; in build_convert_rules()
[all …]
/dpdk/drivers/net/bnxt/tf_core/
H A Dtf_rm.c445 cfg[parent].hcapi_type, in tf_rm_update_parent_reservations()
457 if (cfg[child].cfg_type == in tf_rm_update_parent_reservations()
592 parms->cfg, in tf_rm_create_db()
625 struct tf_rm_element_cfg *cfg = &parms->cfg[i]; in tf_rm_create_db() local
691 struct tf_rm_element_cfg *cfg = &parms->cfg[i]; in tf_rm_create_db() local
695 cfg->hcapi_type, in tf_rm_create_db()
700 db[i].slices = cfg->slices; in tf_rm_create_db()
852 parms->cfg, in tf_rm_create_db_no_reservation()
884 struct tf_rm_element_cfg *cfg = &parms->cfg[i]; in tf_rm_create_db_no_reservation() local
932 struct tf_rm_element_cfg *cfg = &parms->cfg[i]; in tf_rm_create_db_no_reservation() local
[all …]
H A Dtf_device.c40 struct tf_rm_element_cfg *cfg, in tf_dev_reservation_check() argument
52 cfg[j].cfg_type == in tf_dev_reservation_check()
54 cfg[j].cfg_type == in tf_dev_reservation_check()
117 ident_cfg.cfg = tf_ident_p4; in tf_dev_bind_p4()
152 tcam_cfg.cfg = tf_tcam_p4; in tf_dev_bind_p4()
173 em_cfg.cfg = tf_em_ext_p4; in tf_dev_bind_p4()
175 em_cfg.cfg, in tf_dev_bind_p4()
198 em_cfg.cfg = tf_em_int_p4; in tf_dev_bind_p4()
225 if_tbl_cfg.cfg = tf_if_tbl_p4; in tf_dev_bind_p4()
445 tcam_cfg.cfg = tf_tcam_p58; in tf_dev_bind_p58()
[all …]
/dpdk/lib/power/
H A Drte_power_pmd_mgmt.c98 if (queue_list_find(cfg, q) != NULL) in queue_list_add()
108 cfg->n_queues++; in queue_list_add()
118 found = queue_list_find(cfg, q); in queue_list_take()
123 cfg->n_queues--; in queue_list_take()
194 cfg->n_queues_ready_to_sleep--; in queue_reset()
220 qcfg->n_sleeps = cfg->sleep_target; in queue_can_sleep()
221 cfg->n_queues_ready_to_sleep++; in queue_can_sleep()
230 if (cfg->n_queues_ready_to_sleep != cfg->n_queues) in lcore_can_sleep()
234 cfg->n_queues_ready_to_sleep = 0; in lcore_can_sleep()
235 cfg->sleep_target++; in lcore_can_sleep()
[all …]
/dpdk/drivers/bus/fslmc/mc/
H A Ddpci.c107 const struct dpci_cfg *cfg, in dpci_create() argument
485 struct opr_cfg *cfg) in dpci_set_opr() argument
497 cmd_params->oloe = cfg->oloe; in dpci_set_opr()
498 cmd_params->oeane = cfg->oeane; in dpci_set_opr()
499 cmd_params->olws = cfg->olws; in dpci_set_opr()
500 cmd_params->oa = cfg->oa; in dpci_set_opr()
522 struct opr_cfg *cfg, in dpci_get_opr() argument
544 cfg->oloe = rsp_params->oloe; in dpci_get_opr()
545 cfg->oeane = rsp_params->oeane; in dpci_get_opr()
546 cfg->olws = rsp_params->olws; in dpci_get_opr()
[all …]
/dpdk/examples/dma/
H A Ddmafwd.c507 dma_rx_port(&cfg.ports[i]); in rx_main_loop()
522 dma_tx_port(&cfg.ports[i]); in tx_main_loop()
537 dma_rx_port(&cfg.ports[i]); in rxtx_main_loop()
538 dma_tx_port(&cfg.ports[i]); in rxtx_main_loop()
550 if (cfg.nb_lcores == 1) { in start_forwarding_cores()
824 if (nb_dmadev < cfg.nb_ports * cfg.ports[0].nb_queues) in assign_dmadevs()
827 nb_dmadev, cfg.nb_ports * cfg.ports[0].nb_queues); in assign_dmadevs()
973 cfg.ports[cfg.nb_ports].rxtx_port = portid; in port_init()
974 cfg.ports[cfg.nb_ports++].nb_queues = nb_queues; in port_init()
1050 cfg.nb_ports = 0; in main()
[all …]
/dpdk/drivers/net/txgbe/base/
H A Dtxgbe_dcb.c270 struct txgbe_dcb_tc_config *tc_config = &cfg->tc_config[0]; in txgbe_dcb_unpack_pfc_cee()
286 struct txgbe_dcb_tc_config *tc_config = &cfg->tc_config[0]; in txgbe_dcb_unpack_refill_cee()
293 void txgbe_dcb_unpack_max_cee(struct txgbe_dcb_config *cfg, u16 *max) in txgbe_dcb_unpack_max_cee() argument
295 struct txgbe_dcb_tc_config *tc_config = &cfg->tc_config[0]; in txgbe_dcb_unpack_max_cee()
305 struct txgbe_dcb_tc_config *tc_config = &cfg->tc_config[0]; in txgbe_dcb_unpack_bwgid_cee()
312 void txgbe_dcb_unpack_tsa_cee(struct txgbe_dcb_config *cfg, int direction, in txgbe_dcb_unpack_tsa_cee() argument
315 struct txgbe_dcb_tc_config *tc_config = &cfg->tc_config[0]; in txgbe_dcb_unpack_tsa_cee()
324 struct txgbe_dcb_tc_config *tc_config = &cfg->tc_config[0]; in txgbe_dcb_get_tc_from_up()
326 u8 tc = cfg->num_tcs.pg_tcs; in txgbe_dcb_get_tc_from_up()
345 void txgbe_dcb_unpack_map_cee(struct txgbe_dcb_config *cfg, int direction, in txgbe_dcb_unpack_map_cee() argument
[all …]
/dpdk/drivers/event/dlb2/
H A Ddlb2_iface.c36 struct dlb2_create_ldb_queue_args *cfg);
48 struct dlb2_create_ldb_port_args *cfg,
52 struct dlb2_create_dir_port_args *cfg,
56 struct dlb2_create_dir_queue_args *cfg);
59 struct dlb2_map_qid_args *cfg);
62 struct dlb2_unmap_qid_args *cfg);
68 struct dlb2_start_domain_args *cfg);
H A Ddlb2_iface.h35 struct dlb2_create_ldb_queue_args *cfg);
47 struct dlb2_create_ldb_port_args *cfg,
51 struct dlb2_create_dir_port_args *cfg,
55 struct dlb2_create_dir_queue_args *cfg);
58 struct dlb2_map_qid_args *cfg);
61 struct dlb2_unmap_qid_args *cfg);
67 struct dlb2_start_domain_args *cfg);
/dpdk/drivers/mempool/octeontx/
H A Docteontx_fpavf.c262 cfg.aid = 0; in octeontx_fpapf_pool_setup()
263 cfg.pool_cfg = reg; in octeontx_fpapf_pool_setup()
277 fpa->vf_id, gpool, cfg.aid, (unsigned int)cfg.pool_cfg, in octeontx_fpapf_pool_setup()
278 cfg.pool_stack_base, cfg.pool_stack_end, cfg.aura_cfg); in octeontx_fpapf_pool_setup()
309 cfg.aid = 0; in octeontx_fpapf_pool_destroy()
310 cfg.pool_cfg = 0; in octeontx_fpapf_pool_destroy()
312 cfg.pool_stack_end = 0; in octeontx_fpapf_pool_destroy()
313 cfg.aura_cfg = 0; in octeontx_fpapf_pool_destroy()
348 cfg.aid = 0; in octeontx_fpapf_aura_attach()
377 cfg.aid = 0; in octeontx_fpapf_aura_detach()
[all …]

12345678