From owner-freebsd-net@FreeBSD.ORG Mon Jul 19 15:24:40 2010 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 27ACD106564A for ; Mon, 19 Jul 2010 15:24:40 +0000 (UTC) (envelope-from rysto32@gmail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id B0A468FC17 for ; Mon, 19 Jul 2010 15:24:39 +0000 (UTC) Received: by eyh6 with SMTP id 6so1146222eyh.13 for ; Mon, 19 Jul 2010 08:24:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=9zg0Y1tFDykWRpMoJhO3fBs0JUftAEN26gBlpP4yEaw=; b=fPq24nyrAQAswQkFPm6MXirJ3rmUSRRoa2VKruejXPnQsgZ1LP1SFigUXLV87MA2I8 YzId7nB7F4QLRDHTuYoxy720+iRkefSe35BiAvJknfg/bel7E2mWwfi0waFTeIBz8XsF K1EqYm1v+7hinNKUCg3FcCQB6HTSl+G+Tq920= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=mRvodBYDmRqNCxVMlvcDFjPJ2HjI9DAWfMA0qHC1KRKdjNvUCVA5HQFJ384fBfcjEX kgz65AW9YAhjBJiiU6GsHBC1nk93xGfFkECWuaKbW7s05cO5cKuFxUaadQff3PmvtyYA FYIN06EIK26LcaeEd+KmMeeGbPG4NuYUZJ6Ec= MIME-Version: 1.0 Received: by 10.213.27.68 with SMTP id h4mr108526ebc.98.1279553078708; Mon, 19 Jul 2010 08:24:38 -0700 (PDT) Received: by 10.213.113.195 with HTTP; Mon, 19 Jul 2010 08:24:38 -0700 (PDT) In-Reply-To: <201007191659457506137@yahoo.com.cn> References: <201007191659457506137@yahoo.com.cn> Date: Mon, 19 Jul 2010 11:24:38 -0400 Message-ID: From: Ryan Stone To: beezarliu Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-net , Jack Vogel Subject: Re: igb statistics error X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jul 2010 15:24:40 -0000 If you look at the datasheet you will see that the statistics do not measure the same thing(why would Intel implement two hardware counters that measure the same thing?). The Good Packets Received Count measures the number of valid packets that passed one of the receive filters. In other words, it measures the number of valid packets that were addressed to that interface. The Total Packets Received statistic measures the total number of valid packets received, including packets that do not pass any filters. In other words, it measures the number of (valid?) packets received by the interface, whether or not they were addressed to it.