netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 1/4] bnx2: Use proper counter for net_device_stats->multicast.
@ 2010-07-20  0:15 Michael Chan
  2010-07-20  0:15 ` [PATCH net-next 2/4] bnx2: Call pci_enable_msix() with actual number of vectors Michael Chan
  2010-07-20  3:31 ` [PATCH net-next 1/4] bnx2: Use proper counter for net_device_stats->multicast David Miller
  0 siblings, 2 replies; 10+ messages in thread
From: Michael Chan @ 2010-07-20  0:15 UTC (permalink / raw)
  To: davem; +Cc: netdev

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>
---
 drivers/net/bnx2.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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);
-- 
1.6.4.GIT



^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2010-07-20  5:48 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-20  0:15 [PATCH net-next 1/4] bnx2: Use proper counter for net_device_stats->multicast Michael Chan
2010-07-20  0:15 ` [PATCH net-next 2/4] bnx2: Call pci_enable_msix() with actual number of vectors Michael Chan
2010-07-20  0:15   ` [PATCH net-next 3/4] bnx2: Remove some unnecessary smp_mb() in tx fast path Michael Chan
2010-07-20  0:15     ` [PATCH net-next 4/4] bnx2: Update version to 2.0.17 Michael Chan
2010-07-20  3:31       ` David Miller
2010-07-20  3:31     ` [PATCH net-next 3/4] bnx2: Remove some unnecessary smp_mb() in tx fast path David Miller
2010-07-20  5:38     ` Eric Dumazet
2010-07-20  5:48       ` Michael Chan
2010-07-20  3:31   ` [PATCH net-next 2/4] bnx2: Call pci_enable_msix() with actual number of vectors David Miller
2010-07-20  3:31 ` [PATCH net-next 1/4] bnx2: Use proper counter for net_device_stats->multicast David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).