diff options
author | Malli Chilakala <mallikarjuna.chilakala@intel.com> | 2005-08-11 22:58:55 +0200 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-08-11 23:09:19 +0200 |
commit | 7b89178d1d803c854dfd6f4e81633109a1238884 (patch) | |
tree | c47811a75214c4f98ccc64248bc93aef36df104f /drivers/net/ixgb | |
parent | [PATCH] ixgb: Use netdev_priv() instead of netdev->priv (diff) | |
download | linux-7b89178d1d803c854dfd6f4e81633109a1238884.tar.xz linux-7b89178d1d803c854dfd6f4e81633109a1238884.zip |
[PATCH] ixgb: Fix Broadcast/Multicast packets received statistics
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>
Diffstat (limited to 'drivers/net/ixgb')
-rw-r--r-- | drivers/net/ixgb/ixgb_main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ixgb/ixgb_main.c b/drivers/net/ixgb/ixgb_main.c index d1fc431cb1c9..d7a0f4e36118 100644 --- a/drivers/net/ixgb/ixgb_main.c +++ b/drivers/net/ixgb/ixgb_main.c @@ -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); |