Skip to content

Commit

Permalink
drivers: net: b44: Fix typo in returning multicast stats
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mark Einon authored and David S. Miller committed Sep 12, 2014
1 parent cffc6c4 commit 0bc9b73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/broadcom/b44.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 +
Expand Down

0 comments on commit 0bc9b73

Please sign in to comment.