From 1c4975d6dfa244cf52a2836ca267ba4a7b3ec75e Mon Sep 17 00:00:00 2001 From: Yuri Chipchev Date: Wed, 6 May 2020 23:18:37 +0300 Subject: [PATCH] event/dsw: fix enqueue burst return value MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The returned number from rte_event_enqueue_*() wouldn't include events marked with RTE_EVENT_OP_RELEASE. Fixes: 1c8e3caa3 ("event/dsw: add event scheduling and device start/stop") Cc: stable@dpdk.org Signed-off-by: Yuri Chipchev Reviewed-by: Liron Himi Acked-by: Mattias Rönnblom --- drivers/event/dsw/dsw_event.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/event/dsw/dsw_event.c b/drivers/event/dsw/dsw_event.c index e5e3597aae..611b36781f 100644 --- a/drivers/event/dsw/dsw_event.c +++ b/drivers/event/dsw/dsw_event.c @@ -1231,7 +1231,7 @@ dsw_event_enqueue_burst_generic(struct dsw_port *source_port, DSW_LOG_DP_PORT(DEBUG, source_port->id, "%d non-release events " "accepted.\n", num_non_release); - return num_non_release; + return (num_non_release + num_release); } uint16_t -- 2.20.1