| /dpdk/examples/qos_sched/ |
| H A D | app_thread.c | 66 struct thread_conf *conf; in app_rx_thread() local 76 nb_rx = rte_eth_rx_burst(conf->rx_port, conf->rx_queue, rx_mbufs, in app_rx_thread() 158 struct thread_conf *conf; in app_tx_thread() local 172 conf->counter++; in app_tx_thread() 178 app_send_burst(conf); in app_tx_thread() 180 conf->n_mbufs = 0; in app_tx_thread() 182 conf->counter = 0; in app_tx_thread() 258 conf->counter++; in app_mixed_thread() 265 app_send_burst(conf); in app_mixed_thread() 267 conf->n_mbufs = 0; in app_mixed_thread() [all …]
|
| /dpdk/drivers/net/octeontx/base/ |
| H A D | octeontx_bgx.c | 28 conf->bpen = bgx_conf.bpen; in octeontx_bgx_port_open() 29 conf->node = bgx_conf.node; in octeontx_bgx_port_open() 32 conf->mtu = bgx_conf.mtu; in octeontx_bgx_port_open() 33 conf->bgx = bgx_conf.bgx; in octeontx_bgx_port_open() 34 conf->lmac = bgx_conf.lmac; in octeontx_bgx_port_open() 35 conf->mode = bgx_conf.mode; in octeontx_bgx_port_open() 36 conf->pkind = bgx_conf.pkind; in octeontx_bgx_port_open() 116 conf->mtu = bgx_conf.mtu; in octeontx_bgx_port_get_config() 117 conf->bgx = bgx_conf.bgx; in octeontx_bgx_port_get_config() 363 memset(&conf, 0, len); in octeontx_bgx_port_flow_ctrl_cfg() [all …]
|
| /dpdk/drivers/net/sfc/ |
| H A D | sfc_flow_rss.c | 210 if (memcmp(&ctx->conf, conf, sizeof(*conf)) != 0) in sfc_flow_rss_ctx_reuse() 256 conf->nb_qid_offsets, in sfc_flow_rss_ctx_add() 267 ctx->conf = *conf; in sfc_flow_rss_ctx_add() 316 const struct sfc_flow_rss_conf *conf = &ctx->conf; in sfc_flow_rss_ctx_program_tbl() local 332 tbl[i] = i % conf->qid_span; in sfc_flow_rss_ctx_program_tbl() 347 struct sfc_flow_rss_conf *conf; in sfc_flow_rss_ctx_program() local 356 conf = &ctx->conf; in sfc_flow_rss_ctx_program() 360 if (conf->nb_qid_offsets != 0) in sfc_flow_rss_ctx_program() 390 conf->qid_span, in sfc_flow_rss_ctx_program() 413 conf->efx_hash_types, in sfc_flow_rss_ctx_program() [all …]
|
| /dpdk/app/test/ |
| H A D | test_kni.c | 435 memset(&conf, 0, sizeof(conf)); in test_kni_processing() 451 conf.id = pci_dev->id; in test_kni_processing() 453 snprintf(conf.name, sizeof(conf.name), TEST_KNI_PORT); in test_kni_processing() 456 conf.core_id = 1; in test_kni_processing() 457 conf.force_bind = 1; in test_kni_processing() 638 memset(&conf, 0, sizeof(conf)); in test_kni() 655 conf.id = pci_dev->id; in test_kni() 680 memset(&conf, 0, sizeof(conf)); in test_kni() 740 memset(&conf, 0, sizeof(conf)); in test_kni() 750 memset(&conf, 0, sizeof(conf)); in test_kni() [all …]
|
| H A D | test_pmd_perf.c | 349 portid = conf->portlist[i]; in measure_rxtx() 386 portid = conf->portlist[i]; in measure_rxonly() 425 portid = conf->portlist[i]; in measure_txonly() 463 struct lcore_conf *conf; in main_loop() local 480 portid = conf->portlist[i]; in main_loop() 513 portid = conf->portlist[i]; in main_loop() 551 struct lcore_conf *conf; in poll_burst() local 574 portid = conf->portlist[i]; in poll_burst() 621 struct lcore_conf *conf; in exec_burst() local 626 conf = &lcore_conf[lcore]; in exec_burst() [all …]
|
| H A D | test_fib6_perf.c | 81 struct rte_fib6_conf conf; in test_fib6_perf() local 90 conf.type = RTE_FIB6_TRIE; in test_fib6_perf() 91 conf.default_nh = 0; in test_fib6_perf() 92 conf.max_routes = 1000000; in test_fib6_perf() 93 conf.rib_ext_sz = 0; in test_fib6_perf() 94 conf.trie.nh_sz = RTE_FIB6_TRIE_4B; in test_fib6_perf() 95 conf.trie.num_tbl8 = RTE_MIN(get_max_nh(conf.trie.nh_sz), 1000000U); in test_fib6_perf() 109 fib = rte_fib6_create(__func__, SOCKET_ID_ANY, &conf); in test_fib6_perf()
|
| /dpdk/lib/port/ |
| H A D | rte_port_eventdev.c | 47 if (conf == NULL) { in rte_port_eventdev_reader_create() 62 port->port_id = conf->port_id; in rte_port_eventdev_reader_create() 154 if ((conf == NULL) || in rte_port_eventdev_writer_create() 155 (conf->enq_burst_sz == 0) || in rte_port_eventdev_writer_create() 176 port->port_id = conf->port_id; in rte_port_eventdev_writer_create() 179 port->evt_op = conf->evt_op; in rte_port_eventdev_writer_create() 361 if ((conf == NULL) || in rte_port_eventdev_writer_nodrop_create() 362 (conf->enq_burst_sz == 0) || in rte_port_eventdev_writer_nodrop_create() 383 port->port_id = conf->port_id; in rte_port_eventdev_writer_nodrop_create() 386 port->evt_op = conf->evt_op; in rte_port_eventdev_writer_nodrop_create() [all …]
|
| H A D | rte_port_sym_crypto.c | 46 if (conf == NULL) { in rte_port_sym_crypto_reader_create() 60 port->cryptodev_id = conf->cryptodev_id; in rte_port_sym_crypto_reader_create() 61 port->queue_id = conf->queue_id; in rte_port_sym_crypto_reader_create() 62 port->f_callback = conf->f_callback; in rte_port_sym_crypto_reader_create() 166 if ((conf == NULL) || in rte_port_sym_crypto_writer_create() 167 (conf->tx_burst_sz == 0) || in rte_port_sym_crypto_writer_create() 188 port->queue_id = conf->queue_id; in rte_port_sym_crypto_writer_create() 352 if ((conf == NULL) || in rte_port_sym_crypto_writer_nodrop_create() 353 (conf->tx_burst_sz == 0) || in rte_port_sym_crypto_writer_nodrop_create() 370 port->queue_id = conf->queue_id; in rte_port_sym_crypto_writer_nodrop_create() [all …]
|
| H A D | rte_port_fd.c | 45 if (conf == NULL) { in rte_port_fd_reader_create() 49 if (conf->fd < 0) { in rte_port_fd_reader_create() 53 if (conf->mtu == 0) { in rte_port_fd_reader_create() 71 port->fd = conf->fd; in rte_port_fd_reader_create() 72 port->mtu = conf->mtu; in rte_port_fd_reader_create() 170 if ((conf == NULL) || in rte_port_fd_writer_create() 187 port->fd = conf->fd; in rte_port_fd_writer_create() 342 if ((conf == NULL) || in rte_port_fd_writer_nodrop_create() 343 (conf->fd < 0) || in rte_port_fd_writer_nodrop_create() 360 port->fd = conf->fd; in rte_port_fd_writer_nodrop_create() [all …]
|
| H A D | rte_port_ethdev.c | 45 if (conf == NULL) { in rte_port_ethdev_reader_create() 59 port->port_id = conf->port_id; in rte_port_ethdev_reader_create() 60 port->queue_id = conf->queue_id; in rte_port_ethdev_reader_create() 141 if ((conf == NULL) || in rte_port_ethdev_writer_create() 142 (conf->tx_burst_sz == 0) || in rte_port_ethdev_writer_create() 158 port->port_id = conf->port_id; in rte_port_ethdev_writer_create() 159 port->queue_id = conf->queue_id; in rte_port_ethdev_writer_create() 322 if ((conf == NULL) || in rte_port_ethdev_writer_nodrop_create() 323 (conf->tx_burst_sz == 0) || in rte_port_ethdev_writer_nodrop_create() 339 port->port_id = conf->port_id; in rte_port_ethdev_writer_nodrop_create() [all …]
|
| H A D | rte_port_kni.c | 38 struct rte_port_kni_reader_params *conf = in rte_port_kni_reader_create() local 43 if (conf == NULL) { in rte_port_kni_reader_create() 57 port->kni = conf->kni; in rte_port_kni_reader_create() 137 if ((conf == NULL) || in rte_port_kni_writer_create() 138 (conf->tx_burst_sz == 0) || in rte_port_kni_writer_create() 154 port->kni = conf->kni; in rte_port_kni_writer_create() 155 port->tx_burst_sz = conf->tx_burst_sz; in rte_port_kni_writer_create() 314 if ((conf == NULL) || in rte_port_kni_writer_nodrop_create() 315 (conf->tx_burst_sz == 0) || in rte_port_kni_writer_nodrop_create() 331 port->kni = conf->kni; in rte_port_kni_writer_nodrop_create() [all …]
|
| H A D | rte_swx_port_fd.c | 43 struct rte_swx_port_fd_reader_params *conf = args; in reader_create() local 47 if (!conf || conf->fd < 0 || conf->mtu == 0 || !conf->mempool) in reader_create() 55 p->pkts = calloc(conf->burst_size, sizeof(struct rte_mbuf *)); in reader_create() 62 p->params.fd = conf->fd; in reader_create() 63 p->params.mtu = conf->mtu; in reader_create() 64 p->params.burst_size = conf->burst_size; in reader_create() 65 p->params.mempool = conf->mempool; in reader_create() 170 struct rte_swx_port_fd_writer_params *conf = args; in writer_create() local 174 if (!conf) in writer_create() 190 p->params.fd = conf->fd; in writer_create() [all …]
|
| H A D | rte_port_ring.c | 40 struct rte_port_ring_reader_params *conf = in rte_port_ring_reader_create_internal() local 45 if ((conf == NULL) || in rte_port_ring_reader_create_internal() 46 (conf->ring == NULL) || in rte_port_ring_reader_create_internal() 62 port->ring = conf->ring; in rte_port_ring_reader_create_internal() 172 if ((conf == NULL) || in rte_port_ring_writer_create_internal() 173 (conf->ring == NULL) || in rte_port_ring_writer_create_internal() 190 port->ring = conf->ring; in rte_port_ring_writer_create_internal() 441 if ((conf == NULL) || in rte_port_ring_writer_nodrop_create_internal() 442 (conf->ring == NULL) || in rte_port_ring_writer_nodrop_create_internal() 459 port->ring = conf->ring; in rte_port_ring_writer_nodrop_create_internal() [all …]
|
| H A D | rte_port_sched.c | 36 struct rte_port_sched_reader_params *conf = in rte_port_sched_reader_create() local 41 if ((conf == NULL) || in rte_port_sched_reader_create() 42 (conf->sched == NULL)) { in rte_port_sched_reader_create() 56 port->sched = conf->sched; in rte_port_sched_reader_create() 132 struct rte_port_sched_writer_params *conf = in rte_port_sched_writer_create() local 137 if ((conf == NULL) || in rte_port_sched_writer_create() 138 (conf->sched == NULL) || in rte_port_sched_writer_create() 139 (conf->tx_burst_sz == 0) || in rte_port_sched_writer_create() 141 (!rte_is_power_of_2(conf->tx_burst_sz))) { in rte_port_sched_writer_create() 155 port->sched = conf->sched; in rte_port_sched_writer_create() [all …]
|
| H A D | rte_port_frag.c | 59 struct rte_port_ring_reader_frag_params *conf = in rte_port_ring_reader_frag_create() local 64 if (conf == NULL) { in rte_port_ring_reader_frag_create() 68 if (conf->ring == NULL) { in rte_port_ring_reader_frag_create() 72 if (conf->mtu == 0) { in rte_port_ring_reader_frag_create() 76 if (conf->pool_direct == NULL) { in rte_port_ring_reader_frag_create() 81 if (conf->pool_indirect == NULL) { in rte_port_ring_reader_frag_create() 96 port->ring = conf->ring; in rte_port_ring_reader_frag_create() 97 port->mtu = conf->mtu; in rte_port_ring_reader_frag_create() 98 port->metadata_size = conf->metadata_size; in rte_port_ring_reader_frag_create() 99 port->pool_direct = conf->pool_direct; in rte_port_ring_reader_frag_create() [all …]
|
| /dpdk/drivers/net/iavf/ |
| H A D | iavf_ipsec_crypto.c | 294 conf->ipsec.options.ecn || in iavf_ipsec_crypto_session_validate_conf() 314 conf->crypto_xform->next && in iavf_ipsec_crypto_session_validate_conf() 329 conf->crypto_xform->next && in iavf_ipsec_crypto_session_validate_conf() 525 &conf->crypto_xform->aead, conf->ipsec.salt); in iavf_ipsec_crypto_security_association_add() 529 &conf->crypto_xform->cipher, conf->ipsec.salt); in iavf_ipsec_crypto_security_association_add() 531 &conf->crypto_xform->next->auth, conf->ipsec.salt); in iavf_ipsec_crypto_security_association_add() 535 &conf->crypto_xform->auth, conf->ipsec.salt); in iavf_ipsec_crypto_security_association_add() 538 &conf->crypto_xform->next->cipher, conf->ipsec.salt); in iavf_ipsec_crypto_security_association_add() 670 conf->ipsec.spi, in iavf_ipsec_crypto_session_create() 671 conf->ipsec.mode == in iavf_ipsec_crypto_session_create() [all …]
|
| /dpdk/drivers/net/cnxk/ |
| H A D | cnxk_flow.c | 136 in_actions[i].conf = actions->conf; in cnxk_map_actions() 157 in_actions[i].conf = actions->conf; in cnxk_map_actions() 162 in_actions[i].conf = actions->conf; in cnxk_map_actions() 192 actions->conf; in cnxk_map_actions() 199 in_actions[i].conf = actions->conf; in cnxk_map_actions() 207 in_actions[i].conf = actions->conf; in cnxk_map_actions() 213 in_actions[i].conf = actions->conf; in cnxk_map_actions() 220 in_actions[i].conf = actions->conf; in cnxk_map_actions() 225 in_actions[i].conf = actions->conf; in cnxk_map_actions() 230 in_actions[i].conf = actions->conf; in cnxk_map_actions() [all …]
|
| /dpdk/examples/ipsec-secgw/ |
| H A D | event_helper.c | 1507 if (conf == NULL) { in eh_conf_init() 1575 return conf; in eh_conf_init() 1582 free(conf); in eh_conf_init() 1591 if (!conf || !conf->mode_params) in eh_conf_uninit() 1600 free(conf); in eh_conf_uninit() 1608 if (conf == NULL) { in eh_display_conf() 1647 if (conf == NULL) { in eh_devs_init() 1674 eh_display_conf(conf); in eh_devs_init() 1744 if (conf == NULL) { in eh_devs_uninit() 1844 if (conf == NULL) { in eh_launch_worker() [all …]
|
| /dpdk/drivers/dma/cnxk/ |
| H A D | cnxk_dmadev.c | 48 RTE_SET_USED(conf); in cnxk_dmadev_configure() 49 RTE_SET_USED(conf); in cnxk_dmadev_configure() 75 switch (conf->direction) { in cnxk_dmadev_vchan_setup() 109 dpivf->conf.c_desc.head = 0; in cnxk_dmadev_vchan_setup() 110 dpivf->conf.c_desc.tail = 0; in cnxk_dmadev_vchan_setup() 238 comp_ptr = dpivf->conf.c_desc.compl_ptr[dpivf->conf.c_desc.tail]; in cnxk_dmadev_copy() 241 STRM_INC(dpivf->conf.c_desc); in cnxk_dmadev_copy() 297 comp_ptr = dpivf->conf.c_desc.compl_ptr[dpivf->conf.c_desc.tail]; in cnxk_dmadev_copy_sg() 300 STRM_INC(dpivf->conf.c_desc); in cnxk_dmadev_copy_sg() 368 dpivf->conf.c_desc.tail = cnt; in cnxk_dmadev_completed() [all …]
|
| /dpdk/drivers/net/octeontx/ |
| H A D | octeontx_ethdev_ops.c | 211 octeontx_mbox_bgx_port_fc_cfg_t conf; in octeontx_dev_flow_ctrl_get() local 220 if (conf.rx_pause && conf.tx_pause) in octeontx_dev_flow_ctrl_get() 222 else if (conf.rx_pause) in octeontx_dev_flow_ctrl_get() 224 else if (conf.tx_pause) in octeontx_dev_flow_ctrl_get() 230 fc_conf->low_water = conf.low_water; in octeontx_dev_flow_ctrl_get() 231 fc_conf->high_water = conf.high_water; in octeontx_dev_flow_ctrl_get() 242 octeontx_mbox_bgx_port_fc_cfg_t conf; in octeontx_dev_flow_ctrl_set() local 280 conf.low_water = fc_conf->low_water; in octeontx_dev_flow_ctrl_set() 281 conf.fc_cfg = BGX_PORT_FC_CFG_SET; in octeontx_dev_flow_ctrl_set() 282 conf.rx_pause = rx_pause; in octeontx_dev_flow_ctrl_set() [all …]
|
| /dpdk/examples/qos_meter/ |
| H A D | main.c | 298 struct rte_eth_conf conf; in main() local 327 conf = port_conf; in main() 339 if (conf.rx_adv_conf.rss_conf.rss_hf != in main() 345 conf.rx_adv_conf.rss_conf.rss_hf); in main() 358 rxq_conf.offloads = conf.rxmode.offloads; in main() 366 txq_conf.offloads = conf.txmode.offloads; in main() 373 conf = port_conf; in main() 385 if (conf.rx_adv_conf.rss_conf.rss_hf != in main() 391 conf.rx_adv_conf.rss_conf.rss_hf); in main() 406 rxq_conf.offloads = conf.rxmode.offloads; in main() [all …]
|
| /dpdk/examples/ntb/ |
| H A D | ntb_fwd.c | 168 if (!conf->nb_stream) in cmd_quit_parsed() 171 if (conf->stopped) in cmd_quit_parsed() 174 conf->stopped = 1; in cmd_quit_parsed() 367 while (!conf->stopped) { in start_polling_recv_file() 433 while (!conf->stopped) { in start_iofwd_per_lcore() 703 if (!conf->nb_stream) in assign_stream_to_lcores() 772 if (!conf->nb_stream) in start_pkt_fwd() 775 conf->stopped = 0; in start_pkt_fwd() 833 if (!conf->nb_stream) in cmd_stop_parsed() 836 if (conf->stopped) in cmd_stop_parsed() [all …]
|
| /dpdk/drivers/net/bonding/ |
| H A D | rte_eth_bond_8023ad.c | 1237 conf->slowrx_cb = NULL; in bond_mode_8023ad_conf_get_default() 1238 conf->agg_selection = AGG_STABLE; in bond_mode_8023ad_conf_get_default() 1269 if (conf == NULL) { in bond_mode_8023ad_setup() 1270 conf = &def_conf; in bond_mode_8023ad_setup() 1414 if (conf == NULL) in rte_eth_bond_8023ad_conf_get() 1474 if (conf != NULL) { in bond_8023ad_setup_validate() 1477 conf->fast_periodic_ms >= conf->slow_periodic_ms || in bond_8023ad_setup_validate() 1478 conf->long_timeout_ms == 0 || in bond_8023ad_setup_validate() 1479 conf->short_timeout_ms >= conf->long_timeout_ms || in bond_8023ad_setup_validate() 1481 conf->tx_period_ms == 0 || in bond_8023ad_setup_validate() [all …]
|
| /dpdk/drivers/net/hns3/ |
| H A D | hns3_ethdev_dump.c | 638 &conf->shaper_profile_list; in get_tm_conf_shaper_info() 641 if (!conf->nb_shaper_profile) in get_tm_conf_shaper_info() 657 if (!conf->root) in get_tm_conf_port_node_info() 663 conf->root->id, conf->root->reference_count, in get_tm_conf_port_node_info() 664 conf->root->shaper_profile ? in get_tm_conf_port_node_info() 676 if (!conf->nb_tc_node) in get_tm_conf_tc_node_info() 741 if (!conf->nb_queue_node) in get_tm_conf_queue_node_info() 779 conf->nb_leaf_nodes_max, conf->nb_nodes_max, in get_tm_conf_info() 780 conf->nb_shaper_profile, conf->nb_tc_node, conf->nb_queue_node, in get_tm_conf_info() 781 conf->committed); in get_tm_conf_info() [all …]
|
| /dpdk/app/test-flow-perf/ |
| H A D | actions_gen.c | 39 struct rte_flow_action_raw_encap conf; member 47 struct rte_flow_action_raw_decap conf; member 54 struct rte_flow_action_rss conf; member 103 actions[actions_counter].conf = &jump_action; in add_jump() 123 .conf = (struct rte_flow_action_rss){ in add_rss() 140 actions[actions_counter].conf = &rss_data[para.core_idx]->conf; in add_rss() 154 actions[actions_counter].conf = &meta_action; in add_set_meta() 169 actions[actions_counter].conf = &tag_action; in add_set_tag() 183 actions[actions_counter].conf = &port_id; in add_port_id() 801 actions[actions_counter].conf = &action_encap_data[para.core_idx]->conf; in add_raw_encap() [all …]
|