diff options
author | Haishuang Yan <yanhaishuang@cmss.chinamobile.com> | 2016-06-21 16:26:49 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-06-23 15:16:12 -0400 |
commit | efeb2267bba8aa893afdadfc9bae4790777c600c (patch) | |
tree | 4b5d707081970dcfcfbf618d828e205106b2468c /drivers | |
parent | 52fe705b493d40b472b9e7220a71bdca8537c6b2 (diff) |
geneve: fix tx_errors statistics
Tx errors present summation of errors encountered while transmitting
packets.
Signed-off-by: Haishuang Yan <yanhaishuang@cmss.chinamobile.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/geneve.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/geneve.c b/drivers/net/geneve.c index 305a04e45a13..cc39cefeae45 100644 --- a/drivers/net/geneve.c +++ b/drivers/net/geneve.c @@ -958,8 +958,8 @@ tx_error: dev->stats.collisions++; else if (err == -ENETUNREACH) dev->stats.tx_carrier_errors++; - else - dev->stats.tx_errors++; + + dev->stats.tx_errors++; return NETDEV_TX_OK; } @@ -1048,8 +1048,8 @@ tx_error: dev->stats.collisions++; else if (err == -ENETUNREACH) dev->stats.tx_carrier_errors++; - else - dev->stats.tx_errors++; + + dev->stats.tx_errors++; return NETDEV_TX_OK; } #endif |