diff options
author | Andrew Rybchenko <Andrew.Rybchenko@oktetlabs.ru> | 2014-07-17 15:10:43 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-07-18 03:48:36 +0400 |
commit | 8ccf3800dbdeaf26bcdefa471c9c8e0da7e6ec7a (patch) | |
tree | e88c2ea06aaed738991c1f3336c088f1eb9181c2 /drivers/net/ethernet/sfc/rx.c | |
parent | 87b200e11bb50e90471a69fe1af01e8fce8995aa (diff) | |
download | linux-8ccf3800dbdeaf26bcdefa471c9c8e0da7e6ec7a.tar.xz |
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/rx.c')
-rw-r--r-- | drivers/net/ethernet/sfc/rx.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/sfc/rx.c b/drivers/net/ethernet/sfc/rx.c index bf537a2a901f..a7bb63a7a521 100644 --- a/drivers/net/ethernet/sfc/rx.c +++ b/drivers/net/ethernet/sfc/rx.c @@ -530,6 +530,8 @@ void efx_rx_packet(struct efx_rx_queue *rx_queue, unsigned int index, struct efx_channel *channel = efx_rx_queue_channel(rx_queue); struct efx_rx_buffer *rx_buf; + rx_queue->rx_packets++; + rx_buf = efx_rx_buffer(rx_queue, index); rx_buf->flags |= flags; |