diff options
author | Haishuang Yan <yanhaishuang@cmss.chinamobile.com> | 2016-06-21 10:26:49 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-06-23 21:16:12 +0200 |
commit | efeb2267bba8aa893afdadfc9bae4790777c600c (patch) | |
tree | 4b5d707081970dcfcfbf618d828e205106b2468c /drivers/net/geneve.c | |
parent | net: vrf: replace hard tab with space in assignment (diff) | |
download | linux-efeb2267bba8aa893afdadfc9bae4790777c600c.tar.xz linux-efeb2267bba8aa893afdadfc9bae4790777c600c.zip |
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/net/geneve.c')
-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 |