Commit c5b9b92e authored by Ajit Khaparde's avatar Ajit Khaparde Committed by David S. Miller

be2net: Bug Fix while accounting of multicast frames during netdev stats 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: default avatarAjit Khaparde <ajitk@serverengines.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 86aaf9ad
...@@ -197,7 +197,7 @@ void netdev_stats_update(struct be_adapter *adapter) ...@@ -197,7 +197,7 @@ void netdev_stats_update(struct be_adapter *adapter)
/* no space available in linux */ /* no space available in linux */
dev_stats->tx_dropped = 0; dev_stats->tx_dropped = 0;
dev_stats->multicast = port_stats->tx_multicastframes; dev_stats->multicast = port_stats->rx_multicast_frames;
dev_stats->collisions = 0; dev_stats->collisions = 0;
/* detailed tx_errors */ /* detailed tx_errors */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment