aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/intel/igc/igc.h
diff options
context:
space:
mode:
authorSasha Neftin <sasha.neftin@intel.com>2019-02-18 10:37:31 +0200
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2019-03-19 15:12:28 -0700
commit36b9fea60961d7426b6d4b0faaf609e5d820482d (patch)
tree169b454659327210a910669d3db3c5e4ee7bf225 /drivers/net/ethernet/intel/igc/igc.h
parent6245c8483ae0110d2eb7e7cd2922dba1a5fce720 (diff)
downloadlinux-36b9fea60961d7426b6d4b0faaf609e5d820482d.tar.gz
linux-36b9fea60961d7426b6d4b0faaf609e5d820482d.tar.bz2
linux-36b9fea60961d7426b6d4b0faaf609e5d820482d.zip
igc: Add support for statistics
Add support for statistics and show basic counters. Signed-off-by: Sasha Neftin <sasha.neftin@intel.com> Tested-by: Aaron Brown <aaron.f.brown@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/igc/igc.h')
-rw-r--r--drivers/net/ethernet/intel/igc/igc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/igc/igc.h b/drivers/net/ethernet/intel/igc/igc.h
index 7eee12972d86..0f5534ce27b0 100644
--- a/drivers/net/ethernet/intel/igc/igc.h
+++ b/drivers/net/ethernet/intel/igc/igc.h
@@ -37,6 +37,7 @@ int igc_add_mac_steering_filter(struct igc_adapter *adapter,
const u8 *addr, u8 queue, u8 flags);
int igc_del_mac_steering_filter(struct igc_adapter *adapter,
const u8 *addr, u8 queue, u8 flags);
+void igc_update_stats(struct igc_adapter *adapter);
extern char igc_driver_name[];
extern char igc_driver_version[];
@@ -403,6 +404,9 @@ struct igc_adapter {
u16 tx_ring_count;
u16 rx_ring_count;
+ u32 tx_hwtstamp_timeouts;
+ u32 tx_hwtstamp_skipped;
+ u32 rx_hwtstamp_cleared;
u32 *shadow_vfta;
u32 rss_queues;