[dpdk-stable] [dpdk-dev] [PATCH] net/i40e: fix counters

Zhang, Qi Z qi.z.zhang at intel.com
Wed Dec 23 09:03:27 CET 2020



> -----Original Message-----
> From: dev <dev-bounces at dpdk.org> On Behalf Of Igor Ryzhov
> Sent: Tuesday, November 17, 2020 4:57 PM
> To: dev at dpdk.org
> Cc: stable at dpdk.org
> Subject: [dpdk-dev] [PATCH] net/i40e: fix counters
> 
> When low and high registers are read separately, this opens the door to a race
> condition:
> - low register is read
> - NIC updates the registers
> - high register is read
> 
> Because of this, we may end up with an incorrect counter value.
> Let's read the registers in one shot, as it is done in Linux kernel since the
> introduction of the i40e driver.
> 
> Fixes: 4861cde46116 ("i40e: new poll mode driver")
> Cc: stable at dpdk.org
> Signed-off-by: Igor Ryzhov <iryzhov at nfware.com>

Acked-by: Qi Zhang <qi.z.zhang at intel.com>

Applied to dpdk-next-net-intel.

Thanks
Qi


More information about the stable mailing list