event: add function for reading unlink in progress
authorHarry van Haaren <harry.van.haaren@intel.com>
Mon, 24 Sep 2018 08:23:31 +0000 (09:23 +0100)
committerJerin Jacob <jerin.jacob@caviumnetworks.com>
Mon, 1 Oct 2018 14:48:38 +0000 (16:48 +0200)
commite279bbe4b2b831972ae53d95c37a17fdff13a700
tree10b3c8afbc3037f3ac95ae5642a9a920817c0f73
parent733fc6ca0b48e4bdf2717a8723243f93a3864bb4
event: add function for reading unlink in progress

This commit introduces a new function in the eventdev API,
which allows applications to read the number of unlink requests
in progress on a particular port of an eventdev instance.

This information allows applications to verify when no more packets
from a particular queue (or any queue) will arrive at a port.
The application could decide to stop polling, or put the core into
a sleep state if it wishes, as it is ensured that no new packets
will arrive at a particular port anymore if all queues are unlinked.

Suggested-by: Matias Elo <matias.elo@nokia.com>
Signed-off-by: Harry van Haaren <harry.van.haaren@intel.com>
Acked-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
lib/librte_eventdev/rte_eventdev.c
lib/librte_eventdev/rte_eventdev.h
lib/librte_eventdev/rte_eventdev_pmd.h
lib/librte_eventdev/rte_eventdev_version.map