]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerZefan Li <lizefan@huawei.com>
Mon, 1 Dec 2014 10:02:45 +0000 (18:02 +0800)
commit9024225cf3c5f0fe29e87aa46330d41816ca91b6
tree60f6cc8c405d0d0cd8dd7c2938d83eb665c9b7a1
parent10d5d534765ccd203e34e3ccf5f67edba5e577c7
ixgbevf: Prevent RX/TX statistics getting reset to zero

commit 936597631dd310e220544dc5c6075d924efd39b2 upstream.

The commit 4197aa7bb81877ebb06e4f2cc1b5fea2da23a7bd 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>
Cc: Weng Meiling <wengmeiling.weng@huawei.com>
Signed-off-by: Zefan Li <lizefan@huawei.com>
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c