be2net: Bug Fix while accounting of multicast frames during netdev stats update
Subsystems (2)
PATCH 1/3 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 Ajit Khaparde <[email protected]>
--- drivers/net/benet/be_main.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/benet/be_main.c +1 -1
@@ -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 */
Signature · 1 line
1.6.0.4
From: Ajit Khaparde <[email protected]>
Date: Mon, 5 Oct 2009 17:51:51 +0530
Quoted 5 lines
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 <[email protected]>
Applied.