event/dsw: flush buffers immediately on zero-sized enqueue
authorMattias Rönnblom <mattias.ronnblom@ericsson.com>
Tue, 17 Dec 2019 11:13:44 +0000 (12:13 +0100)
committerJerin Jacob <jerinj@marvell.com>
Tue, 14 Jan 2020 17:24:03 +0000 (18:24 +0100)
commit5747c83257306ad8e546e456fcfe8e89dac48bf9
treece80d93fe7179fb0e923cdc8655dfb7c6c4563ba
parent4da2a5d55d5dfc228b985d4c98abc865d6ccda98
event/dsw: flush buffers immediately on zero-sized enqueue

Fix DSW's rte_event_enqueue_burst(), so that a call with a zero-sized
event array immediately flushes the port's output buffers. Prior to
this patch, the flush operation would be deferred to the next enqueue
or dequeue call, which is inconsistent with DSW documentation.

Fixes: 1c8e3caa3bfb ("event/dsw: add event scheduling and device start/stop")
Cc: stable@dpdk.org
Signed-off-by: Mattias Rönnblom <mattias.ronnblom@ericsson.com>
drivers/event/dsw/dsw_event.c