From: Michael Chan Date: Mon, 19 Jul 2010 14:15:02 +0000 (+0000) Subject: bnx2: Use proper counter for net_device_stats->multicast. X-Git-Tag: 2.1b_release~7593^2~160 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6fdae995557f0ad16320951593d6f8f48f57c14a;p=platform%2Fkernel%2Fkernel-mfld-blackbay.git bnx2: Use proper counter for net_device_stats->multicast. We were using the wrong tx multicast counter instead of the rx multicast counter. Reported-by: Peter Snellman Reviewed-by: Benjamin Li Reviewed-by: Matt Carlson Signed-off-by: Michael Chan Signed-off-by: David S. Miller --- diff --git a/drivers/net/bnx2.c b/drivers/net/bnx2.c index ce3217b..deb7f83 100644 --- a/drivers/net/bnx2.c +++ b/drivers/net/bnx2.c @@ -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);