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>
This commit is contained in:
committed by
David S. Miller
parent
87b200e11b
commit
8ccf3800db
@ -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 {
|
||||
|
Reference in New Issue
Block a user