diff options
author | Thanneeru Srinivasulu <tsrinivasulu@caviumnetworks.com> | 2016-02-11 21:50:21 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-02-11 11:30:26 -0500 |
commit | a05d4845907a6f0296612d24956b189a51fb8df7 (patch) | |
tree | 97e0135e75e679ae9fcc63072c2869140934be98 /drivers/net/ethernet/cavium/thunder/nicvf_main.c | |
parent | 65411adba3bdba1eaa5588c7d78912fbc7194a83 (diff) |
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/nicvf_main.c')
-rw-r--r-- | drivers/net/ethernet/cavium/thunder/nicvf_main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/cavium/thunder/nicvf_main.c b/drivers/net/ethernet/cavium/thunder/nicvf_main.c index c24cb2a86a42..95db6b7e3aab 100644 --- a/drivers/net/ethernet/cavium/thunder/nicvf_main.c +++ b/drivers/net/ethernet/cavium/thunder/nicvf_main.c @@ -1394,6 +1394,7 @@ static void nicvf_tx_timeout(struct net_device *dev) netdev_warn(dev, "%s: Transmit timed out, resetting\n", dev->name); + nic->drv_stats.tx_timeout++; schedule_work(&nic->reset_task); } |