event/dpaa: fix number of supported atomic flows
authorNipun Gupta <nipun.gupta@nxp.com>
Fri, 11 Oct 2019 13:47:56 +0000 (19:17 +0530)
committerJerin Jacob <jerinj@marvell.com>
Fri, 18 Oct 2019 08:03:09 +0000 (10:03 +0200)
The number of atomic flows supported was not returned correctly for
DPAA driver. This patch fixes the same.

Fixes: b08dc6430abd ("event/dpaa: add queue config get/set")
Cc: stable@dpdk.org
Signed-off-by: Nipun Gupta <nipun.gupta@nxp.com>
Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
drivers/event/dpaa/dpaa_eventdev.c
drivers/event/dpaa/dpaa_eventdev.h

index d02b869..5709832 100644 (file)
@@ -471,6 +471,7 @@ dpaa_event_queue_def_conf(struct rte_eventdev *dev, uint8_t queue_id,
        RTE_SET_USED(queue_id);
 
        memset(queue_conf, 0, sizeof(struct rte_event_queue_conf));
+       queue_conf->nb_atomic_flows = DPAA_EVENT_QUEUE_ATOMIC_FLOWS;
        queue_conf->schedule_type = RTE_SCHED_TYPE_PARALLEL;
        queue_conf->priority = RTE_EVENT_DEV_PRIORITY_HIGHEST;
 }
index b8f247c..5ce15a3 100644 (file)
@@ -32,7 +32,7 @@ do {                                          \
        RTE_EVENT_DEV_CAP_BURST_MODE;           \
 } while (0)
 
-#define DPAA_EVENT_QUEUE_ATOMIC_FLOWS  0
+#define DPAA_EVENT_QUEUE_ATOMIC_FLOWS          2048
 #define DPAA_EVENT_QUEUE_ORDER_SEQUENCES       2048
 
 #define RTE_EVENT_ETH_RX_ADAPTER_DPAA_CAP \