* [PATCH] geneve: fix tx_errors statistics
@ 2016-06-21 8:26 Haishuang Yan
2016-06-23 19:20 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Haishuang Yan @ 2016-06-21 8:26 UTC (permalink / raw)
To: David S. Miller, Jesse Gross, Pravin B Shelar, Tom Herbert
Cc: netdev, linux-kernel, Haishuang Yan
Tx errors present summation of errors encountered while transmitting
packets.
Signed-off-by: Haishuang Yan <yanhaishuang@cmss.chinamobile.com>
---
drivers/net/geneve.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/net/geneve.c b/drivers/net/geneve.c
index aa61708..72b2f1c 100644
--- a/drivers/net/geneve.c
+++ b/drivers/net/geneve.c
@@ -922,8 +922,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;
}
@@ -1012,8 +1012,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
--
1.8.3.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] geneve: fix tx_errors statistics
2016-06-21 8:26 [PATCH] geneve: fix tx_errors statistics Haishuang Yan
@ 2016-06-23 19:20 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2016-06-23 19:20 UTC (permalink / raw)
To: yanhaishuang; +Cc: jesse, pshelar, tom, netdev, linux-kernel
From: Haishuang Yan <yanhaishuang@cmss.chinamobile.com>
Date: Tue, 21 Jun 2016 16:26:49 +0800
> Tx errors present summation of errors encountered while transmitting
> packets.
>
> Signed-off-by: Haishuang Yan <yanhaishuang@cmss.chinamobile.com>
Applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-06-23 19:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-21 8:26 [PATCH] geneve: fix tx_errors statistics Haishuang Yan
2016-06-23 19:20 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).