diff options
author | Petri Savolainen <petri.savolainen@nokia.com> | 2022-03-25 14:43:01 +0200 |
---|---|---|
committer | Petri Savolainen <petri.savolainen@nokia.com> | 2022-04-13 17:26:36 +0300 |
commit | 6b15cb17ee850f7e5c42e6a0182548a19ab2cc94 (patch) | |
tree | 1d390afe6e54633fb4c4628bbf4d7616c4a0939b | |
parent | c029ae2ae0381033a3088b750824bd165b909589 (diff) |
test: use uint32_t for number of queues
Update number of packet IO queue variables to uint32_t in
test applications.
Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com>
Reviewed-by: Matias Elo <matias.elo@nokia.com>
-rw-r--r-- | example/generator/odp_generator.c | 10 | ||||
-rw-r--r-- | test/performance/odp_pktio_ordered.c | 2 | ||||
-rw-r--r-- | test/performance/odp_sched_pktio.c | 3 |
3 files changed, 7 insertions, 8 deletions
diff --git a/example/generator/odp_generator.c b/example/generator/odp_generator.c index 7a070235b..b980ee180 100644 --- a/example/generator/odp_generator.c +++ b/example/generator/odp_generator.c @@ -55,9 +55,9 @@ typedef struct { odp_pktio_t pktio; odp_pktio_config_t config; odp_pktout_queue_t pktout[MAX_WORKERS]; - unsigned pktout_count; + uint32_t pktout_count; odp_pktin_queue_t pktin[MAX_WORKERS]; - unsigned pktin_count; + uint32_t pktin_count; } interface_t; /** @@ -537,8 +537,8 @@ static int setup_icmp_pkt(odp_packet_t pkt, * @warning This routine aborts if the create is unsuccessful. */ static int create_pktio(const char *dev, odp_pool_t pool, - unsigned num_rx_queues, - unsigned num_tx_queues, + uint32_t num_rx_queues, + uint32_t num_tx_queues, interface_t *itf) { odp_pktio_capability_t capa; @@ -1104,7 +1104,7 @@ int main(int argc, char *argv[]) odph_thread_t thread_tbl[MAX_WORKERS]; odp_pool_t pool; int num_workers; - unsigned num_rx_queues, num_tx_queues; + uint32_t num_rx_queues, num_tx_queues; int i; odp_shm_t shm; odp_cpumask_t cpumask; diff --git a/test/performance/odp_pktio_ordered.c b/test/performance/odp_pktio_ordered.c index 37a0899b6..130eb4688 100644 --- a/test/performance/odp_pktio_ordered.c +++ b/test/performance/odp_pktio_ordered.c @@ -1258,7 +1258,7 @@ int main(int argc, char *argv[]) exit(EXIT_FAILURE); } - if ((unsigned)gbl_args->appl.num_flows > capa.max_output_queues) + if ((uint32_t)gbl_args->appl.num_flows > capa.max_output_queues) gbl_args->appl.num_flows = capa.max_output_queues; } diff --git a/test/performance/odp_sched_pktio.c b/test/performance/odp_sched_pktio.c index 77c1d260f..11be9d367 100644 --- a/test/performance/odp_sched_pktio.c +++ b/test/performance/odp_sched_pktio.c @@ -862,10 +862,9 @@ static int open_pktios(test_global_t *test_global) odp_pktin_queue_param_t pktin_param; odp_pktout_queue_param_t pktout_param; odp_schedule_sync_t sched_sync; - unsigned int num_queue; + uint32_t num_queue, j; char *name; int i, num_pktio, ret; - unsigned int j; num_pktio = test_global->opt.num_pktio; num_queue = test_global->opt.num_pktio_queue; |