]> err.no Git - linux-2.6/commitdiff
[PATCH] ixgb: Fix Broadcast/Multicast packets received statistics
authorMalli Chilakala <mallikarjuna.chilakala@intel.com>
Thu, 11 Aug 2005 20:58:55 +0000 (13:58 -0700)
committerJeff Garzik <jgarzik@pobox.com>
Thu, 11 Aug 2005 21:09:19 +0000 (17:09 -0400)
Fix Broadcast/Multicast packets received statistics

Signed-off-by: Mallikarjuna R Chilakala <mallikarjuna.chilakala@intel.com>
Signed-off-by: Ganesh Venkatesan <ganesh.venkatesan@intel.com>
Signed-off-by: John Ronciak <john.ronciak@intel.com>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
drivers/net/ixgb/ixgb_main.c

index d1fc431cb1c9e830fecb23d44708a1c00fb27820..d7a0f4e361183e1f8a8dcc7a0c5b5435ac4aa6fb 100644 (file)
@@ -1524,7 +1524,8 @@ ixgb_update_stats(struct ixgb_adapter *adapter)
 
                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);