Skip to content

Commit

Permalink
bnx2: Use proper counter for net_device_stats->multicast.
Browse files Browse the repository at this point in the history
We were using the wrong tx multicast counter instead of the rx multicast
counter.

Reported-by: Peter Snellman <peter.snellman@cinnober.com>
Reviewed-by: Benjamin Li <benli@broadcom.com>
Reviewed-by: Matt Carlson <mcarlson@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Michael Chan authored and David S. Miller committed Jul 20, 2010
1 parent 99faf68 commit 6fdae99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/bnx2.c
Original file line number Diff line number Diff line change
Expand Up @@ -6631,7 +6631,7 @@ bnx2_get_stats64(struct net_device *dev, struct rtnl_link_stats64 *net_stats)
GET_64BIT_NET_STATS(stat_IfHCOutOctets);

net_stats->multicast =
GET_64BIT_NET_STATS(stat_IfHCOutMulticastPkts);
GET_64BIT_NET_STATS(stat_IfHCInMulticastPkts);

net_stats->collisions =
GET_32BIT_NET_STATS(stat_EtherStatsCollisions);
Expand Down

0 comments on commit 6fdae99

Please sign in to comment.