]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbevf: Prevent RX/TX statistics getting reset to zero
authorNarendra K <narendra_k@dell.com>
Mon, 16 Jul 2012 15:24:41 +0000 (15:24 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Jul 2012 05:44:36 +0000 (22:44 -0700)
commit78e2be924d2ddd12ad26416e91a73a52e0748241
tree240cd109d3f6ecc017fef3e702dec530d1da6de5
parent4e1edf11138f199eb45edb90185defac7fa6b4c7
ixgbevf: Prevent RX/TX statistics getting reset to zero

The commit 5f84dced1b7d928c16554cc7e49e45d1b2cd52ed implements 64 bit
per ring statistics. But the driver resets the 'total_bytes' and
'total_packets' from RX and TX rings in the RX and TX interrupt
handlers to zero. This results in statistics being lost and user space
reporting RX and TX statistics as zero. This patch addresses the
issue by preventing the resetting of RX and TX ring statistics to
zero.

Signed-off-by: Narendra K <narendra_k@dell.com>
Tested-by: Sibai Li <sibai.li@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c