Skip to content

Commit

Permalink
netvsc: fix typo on statistics
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Simon Xiao authored and David S. Miller committed Feb 17, 2017
1 parent 025331d commit b512472
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/hyperv/netvsc_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b512472

Please sign in to comment.