bnx2: Use proper counter for net_device_stats->multicast.
authorMichael Chan <mchan@broadcom.com>
Mon, 19 Jul 2010 14:15:02 +0000 (14:15 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Jul 2010 03:30:05 +0000 (20:30 -0700)
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>
drivers/net/bnx2.c

index ce3217b441a477336f155c9f93a7785230a1374e..deb7f83e8245b58a37f63d366b501c03633a6da6 100644 (file)
@@ -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);