On 2018-07-22 13:32, Jerin Jacob wrote:
+static void
+dsw_stop(struct rte_eventdev *dev __rte_unused)
+{
You may implement, eventdev_stop_flush_t callback to free up the
outstanding events in the eventdev.
Is this support mandatory, or is it OK to leave it to the user to empty
the machinery before calling stop in the initial driver version?
I can't find any other event device supporting the callback.
In DSW, the events can be a little here-and-there - in the output
buffers, in the pause buffer, and on the input rings.
That said, assuming the worker lcore threads have stopped using the
device and issued the appropriate barriers, it should be possible to
round up the events from the thread running 'rte_event_dev_stop'.