| /f-stack/dpdk/app/test-compress-perf/ |
| H A D | main.c | 121 uint8_t enabled_cdev_count, nb_lcores, cdev_id; in comp_perf_initialize_compressdev() local 134 nb_lcores = rte_lcore_count() - 1; in comp_perf_initialize_compressdev() 139 if (enabled_cdev_count > nb_lcores) { in comp_perf_initialize_compressdev() 140 if (nb_lcores == 0) { in comp_perf_initialize_compressdev() 144 enabled_cdev_count = nb_lcores; in comp_perf_initialize_compressdev() 148 nb_lcores); in comp_perf_initialize_compressdev() 162 (nb_lcores / enabled_cdev_count) + 1 : in comp_perf_initialize_compressdev() 163 nb_lcores / enabled_cdev_count; in comp_perf_initialize_compressdev() 167 nb_lcores -= test_data->nb_qps) { in comp_perf_initialize_compressdev() 192 .nb_queue_pairs = nb_lcores > test_data->nb_qps in comp_perf_initialize_compressdev() [all …]
|
| /f-stack/dpdk/examples/l3fwd/ |
| H A D | l3fwd_event.c | 48 unsigned int nb_lcores = rte_lcore_count(); in l3fwd_eth_dev_port_setup() local 126 nb_ports * nb_lcores * in l3fwd_eth_dev_port_setup() 128 nb_lcores * MEMPOOL_CACHE_SIZE, in l3fwd_eth_dev_port_setup() 133 nb_lcores * MAX_PKT_BURST + in l3fwd_eth_dev_port_setup() 134 nb_lcores * MEMPOOL_CACHE_SIZE, in l3fwd_eth_dev_port_setup()
|
| H A D | main.c | 552 nports*nb_lcores*MAX_PKT_BURST + \ 554 nb_lcores*MEMPOOL_CACHE_SIZE), \ 901 uint32_t n_tx_queue, nb_lcores; in l3fwd_poll_resource_setup() local 921 nb_lcores = rte_lcore_count(); in l3fwd_poll_resource_setup() 938 n_tx_queue = nb_lcores; in l3fwd_poll_resource_setup()
|
| /f-stack/dpdk/app/test-crypto-perf/ |
| H A D | main.c | 123 uint8_t enabled_cdev_count = 0, nb_lcores, cdev_id; in cperf_initialize_cryptodev() local 136 nb_lcores = rte_lcore_count() - 1; in cperf_initialize_cryptodev() 138 if (nb_lcores < 1) { in cperf_initialize_cryptodev() 148 if (enabled_cdev_count > nb_lcores) in cperf_initialize_cryptodev() 149 enabled_cdev_count = nb_lcores; in cperf_initialize_cryptodev() 173 opts->nb_qps = (nb_lcores % enabled_cdev_count) ? in cperf_initialize_cryptodev() 174 (nb_lcores / enabled_cdev_count) + 1 : in cperf_initialize_cryptodev() 175 nb_lcores / enabled_cdev_count; in cperf_initialize_cryptodev()
|
| /f-stack/dpdk/examples/qos_sched/ |
| H A D | args.c | 311 uint32_t i, nb_lcores; in app_parse_args() local 435 nb_lcores = app_cpu_core_count(); in app_parse_args() 438 if (qos_conf[i].rx_core >= nb_lcores) { in app_parse_args() 443 if (qos_conf[i].wt_core >= nb_lcores) { in app_parse_args()
|
| /f-stack/dpdk/app/test-flow-perf/ |
| H A D | main.c | 65 static uint32_t nb_lcores; variable 69 static uint32_t nb_lcores; variable 1224 if ((int)(nb_lcores - 1) >= nb_fwd_streams) in init_lcore_info() 1225 for (i = 0; i < (int)(nb_lcores - 1); i++) { in init_lcore_info() 1230 streams_per_core = nb_fwd_streams / (nb_lcores - 1); in init_lcore_info() 1231 unassigned_streams = nb_fwd_streams % (nb_lcores - 1); in init_lcore_info() 1232 for (i = 0; i < (int)(nb_lcores - 1); i++) { in init_lcore_info() 1448 nb_lcores = rte_lcore_count(); in main() 1449 if (nb_lcores <= 1) in main()
|
| /f-stack/lib/ |
| H A D | ff_dpdk_if.c | 271 for (i = 0; i < pconf->nb_lcores; i++) { in init_lcore_conf() 294 lcore_conf.nb_queue_list[port_id] = pconf->nb_lcores; in init_lcore_conf() 308 uint32_t nb_lcores = ff_global_cfg.dpdk.nb_procs; in init_mem_pool() local 309 uint32_t nb_tx_queue = nb_lcores; in init_mem_pool() 317 nb_lcores * MEMPOOL_CACHE_SIZE + in init_mem_pool() 322 nb_lcores * nb_ports * DISPATCH_RING_SIZE), in init_mem_pool() 363 nb_ports*nb_lcores*MAX_PKT_BURST + in init_mem_pool() 365 nb_lcores*MEMPOOL_CACHE_SIZE, in init_mem_pool() 410 int nb_queues = pconf->nb_lcores; in init_dispatch_ring() 578 uint16_t nb_queues = pconf->nb_lcores; in init_port_start() [all …]
|
| H A D | ff_config.c | 317 cfg->nb_lcores = DPDK_MAX_LCORE; in parse_port_lcore_list() 319 return __parse_config_list(cores, &cfg->nb_lcores, v_str); in parse_port_lcore_list() 467 pconf->nb_lcores = ff_global_cfg.dpdk.nb_procs; in port_cfg_handler() 469 pconf->nb_lcores*sizeof(uint16_t)); in port_cfg_handler() 977 for (k = 0; k < pc->nb_lcores; k++) { in ff_check_config() 994 for (j = 0; j < pc->nb_lcores; j++) { in ff_check_config()
|
| H A D | ff_config.h | 84 int nb_lcores; member
|
| /f-stack/dpdk/examples/l3fwd-graph/ |
| H A D | main.c | 441 nports * nb_lcores * RTE_GRAPH_BURST_SIZE + \ 443 nb_lcores * MEMPOOL_CACHE_SIZE), 8192u) 738 uint32_t n_tx_queue, nb_lcores; in main() local 783 nb_lcores = rte_lcore_count(); in main() 801 n_tx_queue = nb_lcores; in main()
|
| /f-stack/dpdk/examples/ioat/ |
| H A D | ioatfwd.c | 48 uint16_t nb_lcores; member 543 if (cfg.nb_lcores == 1) { in start_forwarding_cores() 547 } else if (cfg.nb_lcores > 1) { in start_forwarding_cores() 978 cfg.nb_lcores = rte_lcore_count() - 1; in main() 979 if (cfg.nb_lcores < 1) in main()
|
| /f-stack/dpdk/app/test/ |
| H A D | test_pmd_perf.c | 52 nb_ports*nb_lcores*MAX_PKT_BURST + \ 54 nb_lcores*MEMPOOL_CACHE_SIZE + \ 664 uint16_t nb_ports, num, nb_lcores, worker_id = (uint16_t)-1; in test_pmd_perf() local 684 nb_lcores = rte_lcore_count(); in test_pmd_perf()
|
| /f-stack/dpdk/examples/ipv4_multicast/ |
| H A D | main.c | 635 uint32_t n_tx_queue, nb_lcores; in main() local 675 nb_lcores = rte_lcore_count(); in main() 719 n_tx_queue = nb_lcores; in main()
|
| /f-stack/dpdk/examples/l2fwd/ |
| H A D | main.c | 645 unsigned int nb_lcores = 0; in main() local 740 nb_lcores++; in main() 750 nb_lcores * MEMPOOL_CACHE_SIZE), 8192U); in main()
|
| /f-stack/dpdk/doc/guides/sample_app_ug/ |
| H A D | ioat.rst | 208 cfg.nb_lcores = rte_lcore_count() - 1; 209 if (cfg.nb_lcores < 1) 334 if (cfg.nb_lcores == 1) { 338 } else if (cfg.nb_lcores > 1) { 359 uint16_t nb_lcores;
|
| H A D | l3_forward_power_man.rst | 145 uint32_t n_tx_queue, nb_lcores;
|
| /f-stack/dpdk/app/test-pmd/ |
| H A D | testpmd.c | 149 lcoreid_t nb_lcores; /**< Number of probed logical cores. */ variable 588 nb_lcores = (lcoreid_t) nb_lc; in set_default_fwd_lcores_config() 589 nb_cfg_lcores = nb_lcores; in set_default_fwd_lcores_config() 1432 sizeof(struct fwd_lcore *) * nb_lcores, in init_config() 1436 "failed\n", nb_lcores); in init_config() 1438 for (lc_id = 0; lc_id < nb_lcores; lc_id++) { in init_config() 1528 (nb_lcores * mb_mempool_cache) + in init_config() 1560 for (lc_id = 0; lc_id < nb_lcores; lc_id++) { in init_config() 1586 for (lc_id = 0; lc_id < nb_lcores; lc_id++) { in init_config() 3863 if (nb_lcores == 0) in main()
|
| H A D | parameters.c | 88 "(1 <= N <= %d).\n", nb_lcores); in usage() 848 if (n > 0 && n <= nb_lcores) in launch_args_parse() 853 nb_lcores); in launch_args_parse()
|
| H A D | testpmd.h | 405 extern lcoreid_t nb_lcores; /**< Number of logical cores probed at init time. */
|
| /f-stack/dpdk/examples/ip_fragmentation/ |
| H A D | main.c | 868 uint32_t n_tx_queue, nb_lcores; in main() local 887 nb_lcores = rte_lcore_count(); in main() 949 n_tx_queue = nb_lcores; in main()
|
| /f-stack/dpdk/examples/ip_reassembly/ |
| H A D | main.c | 1000 uint32_t n_tx_queue, nb_lcores; in main() local 1019 nb_lcores = rte_lcore_count(); in main() 1089 n_tx_queue = nb_lcores; in main()
|
| /f-stack/dpdk/examples/ipsec-secgw/ |
| H A D | ipsec-secgw.c | 165 static uint32_t nb_lcores; variable 2158 nb_tx_queue = nb_lcores; in port_init() 2787 nb_ports * nb_lcores * MAX_PKT_BURST + in calculate_nb_mbufs() 2789 nb_lcores * MEMPOOL_CACHE_SIZE + in calculate_nb_mbufs() 2791 nb_lcores * frag_tbl_sz * in calculate_nb_mbufs() 2856 nb_lcores = rte_lcore_count(); in main() 2879 nb_txq = nb_lcores; in main()
|
| /f-stack/dpdk/examples/l3fwd-acl/ |
| H A D | main.c | 66 nb_ports * nb_lcores * MAX_PKT_BURST + \ 68 nb_lcores * MEMPOOL_CACHE_SIZE), \ 2019 uint32_t n_tx_queue, nb_lcores; in main() local 2053 nb_lcores = rte_lcore_count(); in main() 2070 n_tx_queue = nb_lcores; in main()
|
| /f-stack/dpdk/examples/l3fwd-power/ |
| H A D | main.c | 109 nb_ports*nb_lcores*MAX_PKT_BURST + \ 111 nb_lcores*MEMPOOL_CACHE_SIZE), \ 2461 uint32_t n_tx_queue, nb_lcores; in main() local 2511 nb_lcores = rte_lcore_count(); in main() 2545 n_tx_queue = nb_lcores; in main()
|
| /f-stack/dpdk/examples/performance-thread/l3fwd-thread/ |
| H A D | main.c | 161 nb_ports*nb_lcores*MAX_PKT_BURST + \ 163 nb_lcores*MEMPOOL_CACHE_SIZE), \ 3498 uint32_t n_tx_queue, nb_lcores; in main() local 3547 nb_lcores = rte_lcore_count(); in main() 3564 n_tx_queue = nb_lcores; in main() 3763 nb_lcores--; in main() 3766 lthread_num_schedulers_set(nb_lcores); in main()
|