]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
ehea: restore multicast and rx_errors fields
authorEric Dumazet <eric.dumazet@gmail.com>
Tue, 6 Mar 2012 19:46:41 +0000 (19:46 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Mar 2012 08:23:04 +0000 (00:23 -0800)
Commit 239c562c94d (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>
drivers/net/ethernet/ibm/ehea/ehea_main.c

index 5d5fb2627184f9b7f303d64c22875182c63d88e6..e6893cdfd13b9bd16ce628b7fc697f2ef940a188 100644 (file)
@@ -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)