diff options
author | Andrew Rybchenko <Andrew.Rybchenko@oktetlabs.ru> | 2014-07-17 13:10:43 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-07-18 01:48:36 +0200 |
commit | 8ccf3800dbdeaf26bcdefa471c9c8e0da7e6ec7a (patch) | |
tree | e88c2ea06aaed738991c1f3336c088f1eb9181c2 /drivers/net/ethernet/sfc/net_driver.h | |
parent | Merge branch 'be2net-next' (diff) | |
download | linux-8ccf3800dbdeaf26bcdefa471c9c8e0da7e6ec7a.tar.xz linux-8ccf3800dbdeaf26bcdefa471c9c8e0da7e6ec7a.zip |
sfc: Add per-queue statistics in ethtool
Implement per channel software TX and RX packet counters
accessed as ethtool statistics.
This allows confirmation with MAC statistics.
Signed-off-by: Shradha Shah <sshah@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/sfc/net_driver.h')
-rw-r--r-- | drivers/net/ethernet/sfc/net_driver.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ethernet/sfc/net_driver.h b/drivers/net/ethernet/sfc/net_driver.h index 8a02d45ed667..fb2e3bfeb2c2 100644 --- a/drivers/net/ethernet/sfc/net_driver.h +++ b/drivers/net/ethernet/sfc/net_driver.h @@ -249,6 +249,8 @@ struct efx_tx_queue { unsigned int tso_packets; unsigned int pushes; unsigned int pio_packets; + /* Statistics to supplement MAC stats */ + unsigned long tx_packets; /* Members shared between paths and sometimes updated */ unsigned int empty_read_count ____cacheline_aligned_in_smp; @@ -358,6 +360,8 @@ struct efx_rx_queue { unsigned int recycle_count; struct timer_list slow_fill; unsigned int slow_fill_count; + /* Statistics to supplement MAC stats */ + unsigned long rx_packets; }; enum efx_sync_events_state { |