event/dsw: fix dsw capabilities

Message ID 20190503164553.15412-1-mattias.ronnblom@ericsson.com (mailing list archive)
State Accepted, archived
Headers
Series event/dsw: fix dsw capabilities |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/intel-Performance-Testing success Performance Testing PASS
ci/mellanox-Performance-Testing success Performance Testing PASS
ci/Intel-compilation success Compilation OK

Commit Message

Mattias Rönnblom May 3, 2019, 4:45 p.m. UTC
  The DSW event device didn't set RTE_EVENT_DEV_CAP_MULTIPLE_QUEUE_PORT
and RTE_EVENT_DEV_CAP_NONSEQ_MODE, even though it has both these
capabilities.

Fixes: 4540ee9c68 ("event/dsw: add device and queue configuration")

Signed-off-by: Mattias Rönnblom <mattias.ronnblom@ericsson.com>
---
 drivers/event/dsw/dsw_evdev.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
  

Comments

Jerin Jacob Kollanukkaran May 3, 2019, 7:18 p.m. UTC | #1
> -----Original Message-----
> From: dev <dev-bounces@dpdk.org> On Behalf Of Mattias Rönnblom
> Sent: Friday, May 3, 2019 10:16 PM
> To: dev@dpdk.org
> Cc: Mattias Rönnblom <mattias.ronnblom@ericsson.com>
> Subject: [dpdk-dev] [PATCH] event/dsw: fix dsw capabilities
> 
> The DSW event device didn't set
> RTE_EVENT_DEV_CAP_MULTIPLE_QUEUE_PORT
> and RTE_EVENT_DEV_CAP_NONSEQ_MODE, even though it has both these
> capabilities.
> 

Cc: stable@dpdk.org

> Fixes: 4540ee9c68 ("event/dsw: add device and queue configuration")
> 
> Signed-off-by: Mattias Rönnblom <mattias.ronnblom@ericsson.com>

Acked-by: Jerin Jacob <jerinj@marvell.com>
  
Thomas Monjalon May 3, 2019, 8:54 p.m. UTC | #2
03/05/2019 21:18, Jerin Jacob Kollanukkaran:
> From: dev <dev-bounces@dpdk.org> On Behalf Of Mattias Rönnblom
> > 
> > The DSW event device didn't set
> > RTE_EVENT_DEV_CAP_MULTIPLE_QUEUE_PORT
> > and RTE_EVENT_DEV_CAP_NONSEQ_MODE, even though it has both these
> > capabilities.
> > 
> 
> Cc: stable@dpdk.org
> 
> > Fixes: 4540ee9c68 ("event/dsw: add device and queue configuration")
> > 
> > Signed-off-by: Mattias Rönnblom <mattias.ronnblom@ericsson.com>
> 
> Acked-by: Jerin Jacob <jerinj@marvell.com>

Applied, thanks
  

Patch

diff --git a/drivers/event/dsw/dsw_evdev.c b/drivers/event/dsw/dsw_evdev.c
index 33ba13647..4157d130c 100644
--- a/drivers/event/dsw/dsw_evdev.c
+++ b/drivers/event/dsw/dsw_evdev.c
@@ -217,7 +217,9 @@  dsw_info_get(struct rte_eventdev *dev __rte_unused,
 		.max_event_port_enqueue_depth = DSW_MAX_PORT_ENQUEUE_DEPTH,
 		.max_num_events = DSW_MAX_EVENTS,
 		.event_dev_cap = RTE_EVENT_DEV_CAP_BURST_MODE|
-		RTE_EVENT_DEV_CAP_DISTRIBUTED_SCHED
+		RTE_EVENT_DEV_CAP_DISTRIBUTED_SCHED|
+		RTE_EVENT_DEV_CAP_NONSEQ_MODE|
+		RTE_EVENT_DEV_CAP_MULTIPLE_QUEUE_PORT
 	};
 }