Fix Broadcast/Multicast packets received statistics
Signed-off-by: Mallikarjuna R Chilakala <[EMAIL PROTECTED]> Signed-off-by: Ganesh Venkatesan <[EMAIL PROTECTED]> Signed-off-by: John Ronciak <[EMAIL PROTECTED]> diff -up netdev-2.6/drivers/net/ixgb/ixgb_main.c netdev-2.6/drivers/net/ixgb.new/ixgb_main.c --- netdev-2.6/drivers/net/ixgb/ixgb_main.c 2005-08-05 09:25:28.000000000 -0700 +++ netdev-2.6/drivers/net/ixgb.new/ixgb_main.c 2005-08-05 09:25:43.000000000 -0700 @@ -1524,7 +1524,8 @@ ixgb_update_stats(struct ixgb_adapter *a multi |= ((u64)IXGB_READ_REG(&adapter->hw, MPRCH) << 32); /* fix up multicast stats by removing broadcasts */ - multi -= bcast; + if(multi >= bcast) + multi -= bcast; adapter->stats.mprcl += (multi & 0xFFFFFFFF); adapter->stats.mprch += (multi >> 32); - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html