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

Zhang, Helin helin.zhang at intel.com
Tue Apr 19 08:21:16 CEST 2016



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



More information about the dev mailing list