Skip to contentSkip to conversation

hv_netvsc: fix a netvsc stats typo

PATCH Simon Xiao 1 participant 1 message Feb 8, 2017 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Simon Xiao

author
#1 lore raw

Please ignore this patch. I will resubmit it to net-next.

Quoted 37 lines

-----Original Message-----
From: Simon Xiao [mailto:[email protected]]
Sent: Tuesday, February 7, 2017 10:03 AM
To: KY Srinivasan <[email protected]>; Haiyang Zhang <[email protected]>; Stephen Hemminger <[email protected]>; [email protected]; [email protected]; [email protected]
Cc: Simon Xiao <[email protected]>
Subject: [PATCH 1/1] hv_netvsc: fix a netvsc stats typo

[This sender failed our fraud detection checks and may not be who they appear to be. Learn about spoofing at http://aka.ms/LearnAboutSpoofing]

Now, return the correct tx_errors stats in netvsc.

---
 drivers/net/hyperv/netvsc_drv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/hyperv/netvsc_drv.c +1 -2
index 72b0c1f..725ac19 100644
@@ -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.7.4