diff options
author | Thanneeru Srinivasulu <tsrinivasulu@caviumnetworks.com> | 2016-02-11 19:20:21 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-02-11 19:30:26 +0300 |
commit | a05d4845907a6f0296612d24956b189a51fb8df7 (patch) | |
tree | 97e0135e75e679ae9fcc63072c2869140934be98 /drivers/net/ethernet/cavium/thunder/nic.h | |
parent | 65411adba3bdba1eaa5588c7d78912fbc7194a83 (diff) | |
download | linux-a05d4845907a6f0296612d24956b189a51fb8df7.tar.xz |
net, thunderx: Add TX timeout and RX buffer alloc failure stats.
When system is low on atomic memory, too many error messages are logged.
Since this is not a total failure but a simple switch to non-atomic allocation
better to have a stat.
Also add a stat for reset, kicked due to transmit watchdog timeout.
Signed-off-by: Thanneeru Srinivasulu <tsrinivasulu@caviumnetworks.com>
Signed-off-by: Sunil Goutham <sgoutham@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/cavium/thunder/nic.h')
-rw-r--r-- | drivers/net/ethernet/cavium/thunder/nic.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/cavium/thunder/nic.h b/drivers/net/ethernet/cavium/thunder/nic.h index 688828865c48..8af363a9af60 100644 --- a/drivers/net/ethernet/cavium/thunder/nic.h +++ b/drivers/net/ethernet/cavium/thunder/nic.h @@ -248,10 +248,13 @@ struct nicvf_drv_stats { u64 rx_frames_jumbo; u64 rx_drops; + u64 rcv_buffer_alloc_failures; + /* Tx */ u64 tx_frames_ok; u64 tx_drops; u64 tx_tso; + u64 tx_timeout; u64 txq_stop; u64 txq_wake; }; |