[dpdk-dev] [PATCH] i40e: Fix the issue when resetting the stats for i40e, the stats information will be lost before next time getting the stats

Thomas Monjalon thomas.monjalon at 6wind.com
Mon Aug 3 18:48:14 CEST 2015

Helin, your review is needed.
Please check how to write a simple title.

2015-07-09 14:09, Zhe Tao:
> Issue: When calling the reset API to reset all the stats for i40e,
> all the stats will be untracked before the next time calling get stats API.
> Once calling the get stats API it will show all the stats equal zero.
> Changes: Calling the get stats API in the reset API will force the stats_offset update immediately  
> Signed-off-by: Zhe Tao <zhe.tao at intel.com>
> +
> +	/*
> +	* need to read the status one time right after reset the offset_loaded field
> +	* prevent the stats data loss between the i40e_dev_stats_reset and i40e_dev_stats_get
> +	*/

This comment seems complicated to understand.

> +
> +	i40e_dev_stats_get(dev, &stat);

More information about the dev mailing list