Skip to content

Commit

Permalink
event/dsw: fix enqueue burst return value
Browse files Browse the repository at this point in the history
[ upstream commit 1c4975d ]

The returned number from rte_event_enqueue_*()
wouldn't include events marked with RTE_EVENT_OP_RELEASE.

Fixes: 1c8e3ca ("event/dsw: add event scheduling and device start/stop")

Signed-off-by: Yuri Chipchev <yuric@marvell.com>
Reviewed-by: Liron Himi <lironh@marvell.com>
Acked-by: Mattias Rönnblom <mattias.ronnblom@ericsson.com>
  • Loading branch information
mvyuri authored and kevintraynor committed Jun 5, 2020
1 parent ba9c214 commit 2541b21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/event/dsw/dsw_event.c
Expand Up @@ -1097,7 +1097,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
Expand Down

0 comments on commit 2541b21

Please sign in to comment.