[dpdk-dev] [PATCH v9 1/2] ring: add reset API to flush the ring when not in use

Olivier Matz olivier.matz at 6wind.com
Tue Jul 16 11:01:21 CEST 2019


On Fri, Jul 12, 2019 at 11:54:36PM +0800, Gavin Hu wrote:
> Currently, the flush is done by dequeuing the ring in a while loop. It is
> much simpler to flush the queue by resetting the head and tail indices.
> 
> Fixes: af75078fece3 ("first public release")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Gavin Hu <gavin.hu at arm.com>
> Reviewed-by: Ruifeng Wang <ruifeng.wang at arm.com>
> Reviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli at arm.com>

Acked-by: Olivier Matz <olivier.matz at 6wind.com>


More information about the dev mailing list