drivers: net: b44: Fix typo in returning multicast stats
authorMark Einon <mark.einon@gmail.com>
Thu, 11 Sep 2014 22:19:49 +0000 (23:19 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Sep 2014 22:23:55 +0000 (18:23 -0400)
nstat->multicast refers to received packets, not transmitted as
is returned here. Change it so that received packet stats are
given.

Signed-off-by: Mark Einon <mark.einon@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/b44.c

index 4a7028d6591287a4e0bd3a03ee339528d05e1f98..d588136b23b93c6dad513384a3a0ef3e4a436a2d 100644 (file)
@@ -1697,7 +1697,7 @@ static struct rtnl_link_stats64 *b44_get_stats64(struct net_device *dev,
                                     hwstat->tx_underruns +
                                     hwstat->tx_excessive_cols +
                                     hwstat->tx_late_cols);
-               nstat->multicast  = hwstat->tx_multicast_pkts;
+               nstat->multicast  = hwstat->rx_multicast_pkts;
                nstat->collisions = hwstat->tx_total_cols;
 
                nstat->rx_length_errors = (hwstat->rx_oversize_pkts +