diff options
author | Pavan Nikhilesh <pbhagavatula@caviumnetworks.com> | 2017-10-25 19:51:42 +0530 |
---|---|---|
committer | Thomas Monjalon <thomas@monjalon.net> | 2017-10-27 00:52:57 +0200 |
commit | 13370a3877a55f6b9cc4b73c6d4fd6282435ec17 (patch) | |
tree | b859ff3b1133abb0e5403d50030e97e99073e666 /app/test-eventdev/test_order_queue.c | |
parent | bc0d4e6703f3b38c04cfe332449a4b5b57e661db (diff) | |
download | dpdk-next-eventdev-13370a3877a55f6b9cc4b73c6d4fd6282435ec17.zip dpdk-next-eventdev-13370a3877a55f6b9cc4b73c6d4fd6282435ec17.tar.gz dpdk-next-eventdev-13370a3877a55f6b9cc4b73c6d4fd6282435ec17.tar.xz |
eventdev: fix inconsistency in queue config
With the current scheme of event queue configuration the cfg schedule
type macros (RTE_EVENT_QUEUE_CFG_*_ONLY) are inconsistent with the
event schedule type (RTE_SCHED_TYPE_*) this requires unnecessary
conversion between the fastpath and slowpath API's while scheduling
events or configuring event queues.
This patch aims to fix such inconsistency by using event schedule
types (RTE_SCHED_TYPE_*) for event queue configuration.
This patch also fixes example/eventdev_pipeline_sw_pmd as it doesn't
convert RTE_EVENT_QUEUE_CFG_*_ONLY to RTE_SCHED_TYPE_* which leads to
improper events being enqueued to the eventdev.
Fixes: adb5d5486c39 ("examples/eventdev_pipeline_sw_pmd: add sample app")
Signed-off-by: Pavan Nikhilesh <pbhagavatula@caviumnetworks.com>
Acked-by: Harry van Haaren <harry.van.haaren@intel.com>
Diffstat (limited to 'app/test-eventdev/test_order_queue.c')
-rw-r--r-- | app/test-eventdev/test_order_queue.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/test-eventdev/test_order_queue.c b/app/test-eventdev/test_order_queue.c index beadd9c..1fa4082 100644 --- a/app/test-eventdev/test_order_queue.c +++ b/app/test-eventdev/test_order_queue.c @@ -164,7 +164,7 @@ order_queue_eventdev_setup(struct evt_test *test, struct evt_options *opt) /* q0 (ordered queue) configuration */ struct rte_event_queue_conf q0_ordered_conf = { .priority = RTE_EVENT_DEV_PRIORITY_NORMAL, - .event_queue_cfg = RTE_EVENT_QUEUE_CFG_ORDERED_ONLY, + .schedule_type = RTE_SCHED_TYPE_ORDERED, .nb_atomic_flows = opt->nb_flows, .nb_atomic_order_sequences = opt->nb_flows, }; @@ -177,7 +177,7 @@ order_queue_eventdev_setup(struct evt_test *test, struct evt_options *opt) /* q1 (atomic queue) configuration */ struct rte_event_queue_conf q1_atomic_conf = { .priority = RTE_EVENT_DEV_PRIORITY_NORMAL, - .event_queue_cfg = RTE_EVENT_QUEUE_CFG_ATOMIC_ONLY, + .schedule_type = RTE_SCHED_TYPE_ATOMIC, .nb_atomic_flows = opt->nb_flows, .nb_atomic_order_sequences = opt->nb_flows, }; |