be2net: Bug Fix while accounting of multicast frames during netdev stats update
authorAjit Khaparde <ajitk@serverengines.com>
Mon, 5 Oct 2009 02:21:51 +0000 (02:21 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Oct 2009 00:33:38 +0000 (17:33 -0700)
While updating the statistics to be passed via the get_stats,
tx multicast frames were being accounted instead of rx multicast frames.
This patch fixes the bug. This patch is against the net-2.6 tree.

Signed-off-by: Ajit Khaparde <ajitk@serverengines.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/benet/be_main.c

index 2f9b50156e0c4febe663341bb853f9a4e9a83636..e86b2f39cb3efebf509ae4736a06068bbd456a36 100644 (file)
@@ -197,7 +197,7 @@ void netdev_stats_update(struct be_adapter *adapter)
        /* no space available in linux */
        dev_stats->tx_dropped = 0;
 
-       dev_stats->multicast = port_stats->tx_multicastframes;
+       dev_stats->multicast = port_stats->rx_multicast_frames;
        dev_stats->collisions = 0;
 
        /* detailed tx_errors */