[dpdk-dev] [RFC 1/1] eventdev: add distributed software (DSW) event device

Mattias Rönnblom mattias.ronnblom at ericsson.com
Mon Aug 27 11:23:59 CEST 2018


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'.


More information about the dev mailing list