Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
event/dsw: avoid credit leak on oversized enqueue bursts
[ upstream commit 0c4155c ] If an application issues rte_event_enqueue_new_burst() or rte_event_enqueue_forward_burst() call with a burst of events longer than the configured max enqueue burst size, DSW allocates credits not only for events actually enqueued, but for the complete burst. If this process is repeated, enough credits will have leaked to cause the event device to backpressure (i.e. disallow) any new enqueue operations. In addition, the port-level enqueue xstats will log the wrong number of events enqueued for oversized enqueues. This patch makes DSW gracefully handle oversized enqueue bursts. Fixes: 1c8e3ca ("event/dsw: add event scheduling and device start/stop") Signed-off-by: Mattias Rönnblom <mattias.ronnblom@ericsson.com>
- Loading branch information