OSDN Git Service

i40e: fix for flow director counters not wrapping as expected
authorMariusz Stachura <mariusz.stachura@intel.com>
Fri, 14 Jul 2017 13:27:00 +0000 (09:27 -0400)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 29 Sep 2017 19:50:59 +0000 (12:50 -0700)
commit0dc8692e914ac49931d69b5217d5fe0171fc026e
treed03d1fd49b28786d333922aaae91ad89f95b0e4d
parente04ea00217904fc3f6fddac0b74e74e5ac488fda
i40e: fix for flow director counters not wrapping as expected

An errata with GLQF_PCNT causes it to not wrap as expected. This
can cause an error in flow director statistics. This patch resets
affected counters just after reading.

Signed-off-by: Mariusz Stachura <mariusz.stachura@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_main.c