Skip to contentSkip to conversation

igc: Add support for statistics

PATCH New Sasha Neftin 2 participants 2 messages Feb 18, 2019 – Feb 26, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 igc: Add support for statistics

Add support for statistics and show basic counters.

---
 drivers/net/ethernet/intel/igc/igc.h         |   4 +
 drivers/net/ethernet/intel/igc/igc_ethtool.c | 233 +++++++++++++++++++++++++++
 drivers/net/ethernet/intel/igc/igc_main.c    | 167 ++++++++++++++++++-
 3 files changed, 403 insertions(+), 1 deletion(-)
drivers/net/ethernet/intel/igc/igc.h +4 -0
index 7eee12972d86..0f5534ce27b0 100644
@@ -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;
drivers/net/ethernet/intel/igc/igc_ethtool.c +233 -0

251 lines not on this page · raw message

drivers/net/ethernet/intel/igc/igc_main.c +166 -1

174 lines not on this page · raw message

Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/1 igc: Add support for statistics

Quoted 8 lines

From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On Behalf Of Sasha Neftin
Sent: Monday, February 18, 2019 12:38 AM
To: intel-wired-lan at lists.osuosl.org
Subject: [Intel-wired-lan] [PATCH v1 1/1] igc: Add support for statistics

Add support for statistics and show basic counters.

Quoted 8 lines
---
 drivers/net/ethernet/intel/igc/igc.h         |   4 +
 drivers/net/ethernet/intel/igc/igc_ethtool.c | 233
+++++++++++++++++++++++++++
 drivers/net/ethernet/intel/igc/igc_main.c    | 167 ++++++++++++++++++-
 3 files changed, 403 insertions(+), 1 deletion(-)