diff options
author | Lendacky, Thomas <Thomas.Lendacky@amd.com> | 2017-08-18 16:03:35 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-08-19 01:30:17 +0200 |
commit | 80a788c94e6c0aa29dfbb43eae4a0d4144992c5d (patch) | |
tree | 561e3e2ffc8c223541c2ba48a0df50f3fef988ed /drivers/net/ethernet/amd/xgbe/xgbe.h | |
parent | amd-xgbe: Add hardware features debug output (diff) | |
download | linux-80a788c94e6c0aa29dfbb43eae4a0d4144992c5d.tar.xz linux-80a788c94e6c0aa29dfbb43eae4a0d4144992c5d.zip |
amd-xgbe: Add per queue Tx and Rx statistics
Add per queue Tx and Rx packet and byte counts.
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/amd/xgbe/xgbe.h')
-rw-r--r-- | drivers/net/ethernet/amd/xgbe/xgbe.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/ethernet/amd/xgbe/xgbe.h b/drivers/net/ethernet/amd/xgbe/xgbe.h index 58bb455bf1a1..0e93155bc2d5 100644 --- a/drivers/net/ethernet/amd/xgbe/xgbe.h +++ b/drivers/net/ethernet/amd/xgbe/xgbe.h @@ -668,6 +668,11 @@ struct xgbe_ext_stats { u64 tx_tso_packets; u64 rx_split_header_packets; u64 rx_buffer_unavailable; + + u64 txq_packets[XGBE_MAX_DMA_CHANNELS]; + u64 txq_bytes[XGBE_MAX_DMA_CHANNELS]; + u64 rxq_packets[XGBE_MAX_DMA_CHANNELS]; + u64 rxq_bytes[XGBE_MAX_DMA_CHANNELS]; }; struct xgbe_hw_if { |