* [PATCH net-next] netvsc: fix typo on statistics
@ 2017-02-17 19:36 Stephen Hemminger
2017-02-17 20:08 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Stephen Hemminger @ 2017-02-17 19:36 UTC (permalink / raw)
To: davem; +Cc: netdev, Simon Xiao, Simon Xiao, Stephen Hemminger
From: Simon Xiao <sixaio@microsoft.com>
Return the correct tx_errors stats in netvsc.
Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Simon Xiao <sixiao@microsoft.com>
Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
---
drivers/net/hyperv/netvsc_drv.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/hyperv/netvsc_drv.c b/drivers/net/hyperv/netvsc_drv.c
index 425285f36595..2d3cdb026a99 100644
--- a/drivers/net/hyperv/netvsc_drv.c
+++ b/drivers/net/hyperv/netvsc_drv.c
@@ -920,7 +920,7 @@ static void netvsc_get_stats64(struct net_device *net,
}
t->tx_dropped = net->stats.tx_dropped;
- t->tx_errors = net->stats.tx_dropped;
+ t->tx_errors = net->stats.tx_errors;
t->rx_dropped = net->stats.rx_dropped;
t->rx_errors = net->stats.rx_errors;
--
2.11.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net-next] netvsc: fix typo on statistics
2017-02-17 19:36 [PATCH net-next] netvsc: fix typo on statistics Stephen Hemminger
@ 2017-02-17 20:08 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2017-02-17 20:08 UTC (permalink / raw)
To: stephen; +Cc: netdev, sixaio, sixiao, sthemmin
From: Stephen Hemminger <stephen@networkplumber.org>
Date: Fri, 17 Feb 2017 11:36:20 -0800
> From: Simon Xiao <sixaio@microsoft.com>
>
> Return the correct tx_errors stats in netvsc.
>
> Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com>
> Signed-off-by: Simon Xiao <sixiao@microsoft.com>
> Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Applied, thanks Stephen.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-02-17 20:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-17 19:36 [PATCH net-next] netvsc: fix typo on statistics Stephen Hemminger
2017-02-17 20:08 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox