forked from Minki/linux
ehea: restore multicast and rx_errors fields
Commit 239c562c94
(ehea: Add 64bit statistics) added a regression,
since we no longer report multicast & rx_errors fields, taken from
port->stats structure. These fields are updated in ehea_update_stats()
every second.
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Anton Blanchard <anton@samba.org>
Cc: Thadeu Lima de Souza Cascardo <cascardo@linux.vnet.ibm.com>
Acked-by: Thadeu Lima de Souza Cascardo <cascardo@linux.vnet.ibm.com>
Tested-by: Thadeu Lima de Souza Cascardo <cascardo@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
9259c483a3
commit
09c1d446fe
@ -336,7 +336,9 @@ static struct rtnl_link_stats64 *ehea_get_stats64(struct net_device *dev,
|
||||
stats->tx_bytes = tx_bytes;
|
||||
stats->rx_packets = rx_packets;
|
||||
|
||||
return &port->stats;
|
||||
stats->multicast = port->stats.multicast;
|
||||
stats->rx_errors = port->stats.rx_errors;
|
||||
return stats;
|
||||
}
|
||||
|
||||
static void ehea_update_stats(struct work_struct *work)
|
||||
|
Loading…
Reference in New Issue
Block a user