From: Simon Xiao Date: Fri, 17 Feb 2017 19:36:20 +0000 (-0800) Subject: netvsc: fix typo on statistics X-Git-Tag: v4.14-rc1~1463^2~65 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b5124720ed2e5b43c851a32e9acc8d29e3e780ae;p=platform%2Fkernel%2Flinux-rpi3.git netvsc: fix typo on statistics Return the correct tx_errors stats in netvsc. Reviewed-by: Haiyang Zhang Signed-off-by: Simon Xiao Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller --- diff --git a/drivers/net/hyperv/netvsc_drv.c b/drivers/net/hyperv/netvsc_drv.c index 425285f..2d3cdb0 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;