[dpdk-dev] [PATCH] i40e: fix packet stats getting

Bruce Richardson bruce.richardson at intel.com
Thu Apr 21 16:14:54 CEST 2016


On Tue, Apr 19, 2016 at 07:21:16AM +0100, Zhang, Helin wrote:
> 
> 
> > -----Original Message-----
> > From: Wu, Jingjing
> > Sent: Tuesday, April 19, 2016 2:11 PM
> > To: Richardson, Bruce <bruce.richardson at intel.com>
> > Cc: dev at dpdk.org; Wu, Jingjing <jingjing.wu at intel.com>; Zhang, Helin
> > <helin.zhang at intel.com>
> > Subject: [PATCH] i40e: fix packet stats getting
> > 
> > The statistics queried by calling rte_eth_stats_get are zero when the API is first
> > called on the port. The root cause is because of offset_loaded flag is not set
> > correctly after device started.
> > This patch fixes this issue by resetting statistics at initialization time, at the
> > meanwhile the resetting process will set offset_loaded flag.
> > 
> > Fixes: 4861cde46116 ("i40e: new poll mode driver")
> > Signed-off-by: Jingjing Wu <jingjing.wu at intel.com>
> Acked-by: Helin Zhang <helin.zhang at intel.com>
> 
Applied to dpdk-next-net/rel_16_07

/Bruce


More information about the dev mailing list