netvsc: fix typo on statistics
authorSimon Xiao <sixaio@microsoft.com>
Fri, 17 Feb 2017 19:36:20 +0000 (11:36 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 Feb 2017 20:06:52 +0000 (15:06 -0500)
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>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hyperv/netvsc_drv.c

index 425285f3659502707cf9590241ac1fe28b8caa7a..2d3cdb026a9959bf611425d7a6ece54f8d2e2abf 100644 (file)
@@ -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;