aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/intel/ixgbevf/ixgbevf.h
diff options
context:
space:
mode:
authorGreg Rose <gregory.v.rose@intel.com>2012-11-06 05:53:32 +0000
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2012-11-15 06:30:42 -0800
commit55fb277c1f6181d445f88ef8596b87eab61f14b6 (patch)
tree455dba568844498e456052d901607efed4372baf /drivers/net/ethernet/intel/ixgbevf/ixgbevf.h
parent3938d3c8fdffc95ebc0a3e2708d91a726fd671ec (diff)
downloadlinux-linaro-stable-55fb277c1f6181d445f88ef8596b87eab61f14b6.tar.gz
ixgbevf: Add checksum statistics counters to rings
Add hardware checksum statistic counters to the ring structures and then during packet processing update those counters instead of the global counters in the adapter structure. Only update the adapter structure counters when all other statistics are gathered in the ixgbevf_update_stats() function. Signed-off-by: Greg Rose <gregory.v.rose@intel.com> Tested-by: Sibai Li <sibai.li@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/ixgbevf/ixgbevf.h')
-rw-r--r--drivers/net/ethernet/intel/ixgbevf/ixgbevf.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/ixgbevf/ixgbevf.h b/drivers/net/ethernet/intel/ixgbevf/ixgbevf.h
index dbdf39bddd4c..fc0af9a3bb35 100644
--- a/drivers/net/ethernet/intel/ixgbevf/ixgbevf.h
+++ b/drivers/net/ethernet/intel/ixgbevf/ixgbevf.h
@@ -74,6 +74,8 @@ struct ixgbevf_ring {
u64 total_bytes;
u64 total_packets;
struct u64_stats_sync syncp;
+ u64 hw_csum_rx_error;
+ u64 hw_csum_rx_good;
u16 head;
u16 tail;