From: Jerin Jacob Date: Mon, 4 Dec 2017 08:11:18 +0000 (+0530) Subject: test/eventdev: use CPU event type X-Git-Tag: spdx-start~219 X-Git-Url: http://git.droids-corp.org/?p=dpdk.git;a=commitdiff_plain;h=8f87757ab01874c37f690171d5d6b9fe243e0bc9 test/eventdev: use CPU event type octeontx test application was using non RTE_EVENT_TYPE_CPU event type to generate the event from CPU. Upon the introduction of ethdev Rx adapter, RTE_EVENT_TYPE_ETHDEV has special meaning. So avoid using non RTE_EVENT_TYPE_CPU event types to inject events from CPU. Fixes: d0d654986018 ("net/octeontx: support event Rx adapter") Cc: stable@dpdk.org Signed-off-by: Jerin Jacob Reviewed-by: Pavan Nikhilesh --- diff --git a/test/test/test_eventdev_octeontx.c b/test/test/test_eventdev_octeontx.c index 86562fe91a..00e891a301 100644 --- a/test/test/test_eventdev_octeontx.c +++ b/test/test/test_eventdev_octeontx.c @@ -327,7 +327,7 @@ generate_random_events(const unsigned int total_events) for (i = 0; i < total_events; i++) { ret = inject_events( rte_rand() % info.max_event_queue_flows /*flow_id */, - rte_rand() % (RTE_EVENT_TYPE_CPU + 1) /* event_type */, + RTE_EVENT_TYPE_CPU /* event_type */, rte_rand() % 256 /* sub_event_type */, rte_rand() % (RTE_SCHED_TYPE_PARALLEL + 1), rte_rand() % queue_count /* queue */, @@ -717,7 +717,7 @@ test_queue_to_port_single_link(void) ret = inject_events( 0x100 /*flow_id */, - rte_rand() % (RTE_EVENT_TYPE_CPU + 1) /* event_type */, + RTE_EVENT_TYPE_CPU /* event_type */, rte_rand() % 256 /* sub_event_type */, rte_rand() % (RTE_SCHED_TYPE_PARALLEL + 1), queue /* queue */, @@ -796,7 +796,7 @@ test_queue_to_port_multi_link(void) ret = inject_events( 0x100 /*flow_id */, - rte_rand() % (RTE_EVENT_TYPE_CPU + 1) /* event_type */, + RTE_EVENT_TYPE_CPU /* event_type */, rte_rand() % 256 /* sub_event_type */, rte_rand() % (RTE_SCHED_TYPE_PARALLEL + 1), queue /* queue */,