mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 19:56:18 +00:00
[PATCH] sky2: Fix RX stats
Unicast packets are shown as multicast, real multicast packets are missing. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: Stephen Hemminger <shemminger@osdl.org> Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
parent
d26045404c
commit
050ff18016
1 changed files with 1 additions and 1 deletions
|
@ -2607,7 +2607,7 @@ static struct net_device_stats *sky2_get_stats(struct net_device *dev)
|
|||
sky2->net_stats.rx_bytes = data[1];
|
||||
sky2->net_stats.tx_packets = data[2] + data[4] + data[6];
|
||||
sky2->net_stats.rx_packets = data[3] + data[5] + data[7];
|
||||
sky2->net_stats.multicast = data[5] + data[7];
|
||||
sky2->net_stats.multicast = data[3] + data[5];
|
||||
sky2->net_stats.collisions = data[10];
|
||||
sky2->net_stats.tx_aborted_errors = data[12];
|
||||
|
||||
|
|
Loading…
Reference in a new issue