Skip to content

Commit

Permalink
be2net: Bug Fix while accounting of multicast frames during netdev st…
Browse files Browse the repository at this point in the history
…ats update

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>
  • Loading branch information
Ajit Khaparde authored and David S. Miller committed Oct 7, 2009
1 parent 86aaf9a commit c5b9b92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/benet/be_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit c5b9b92

Please sign in to comment.