From owner-freebsd-net@FreeBSD.ORG Mon Jul 19 08:59:53 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 A81C31065679 for ; Mon, 19 Jul 2010 08:59:53 +0000 (UTC) (envelope-from beezarliu@yahoo.com.cn) Received: from n15.bullet.mail.mud.yahoo.com (n15.bullet.mail.mud.yahoo.com [68.142.206.42]) by mx1.freebsd.org (Postfix) with SMTP id 64F528FC13 for ; Mon, 19 Jul 2010 08:59:53 +0000 (UTC) Received: from [68.142.200.221] by n15.bullet.mail.mud.yahoo.com with NNFMP; 19 Jul 2010 08:59:52 -0000 Received: from [68.142.201.252] by t9.bullet.mud.yahoo.com with NNFMP; 19 Jul 2010 08:59:52 -0000 Received: from [127.0.0.1] by omp413.mail.mud.yahoo.com with NNFMP; 19 Jul 2010 08:59:52 -0000 X-Yahoo-Newman-Id: 721200.97150.bm@omp413.mail.mud.yahoo.com Received: (qmail 20150 invoked from network); 19 Jul 2010 08:59:52 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.cn; h=DKIM-Signature:Received:X-Yahoo-SMTP:X-YMail-OSG:X-Yahoo-Newman-Property:Date:From:To:Cc:Subject:Message-ID:X-mailer:Mime-Version:Content-Type; b=vbni/156fGpSZdzB+TxLPMlR/C7bgSxZ+wMs66xXVNGZwc+3y9NMXkVfesxZyVOZFzVEi8MK3x4DQkNZLx1ukJ3uRrKMtFAJ9PyMXNrguFwChYQu7Upw/rVTtyw4quEbqLfJ7naMW3/ieUz0pxSObRQEaZ+5eiu4dBxfSjqKxLg= ; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com.cn; s=s1024; t=1279529992; bh=qnQgj+ouusPTiXhfhDMKzGjNQ4c47Qndl/rJD13vDNE=; h=Received:X-Yahoo-SMTP:X-YMail-OSG:X-Yahoo-Newman-Property:Date:From:To:Cc:Subject:Message-ID:X-mailer:Mime-Version:Content-Type; b=sm+hBMENvYZEVRV3cSVDAlrhb2tNbyZpU6XBkaiWqUwWTSh3RTKtyh4UFadTJSHWTLRUReZHUSAIy3755Qv8xeoOFDOUtbMrV7jlrJ1ZRG2VcGxF+DMs/2OlSeA1+07mWdrQv5K38LqNA+0Wasf4Jt4b49Oy7t6wv9Flg9FF0DA= Received: from PC-200811131239 (beezarliu@124.207.251.123 with login) by smtp119.plus.mail.sp1.yahoo.com with SMTP; 19 Jul 2010 01:59:51 -0700 PDT X-Yahoo-SMTP: YP5UPy2swBBHZGZlvbmOrntlD3fotw-- X-YMail-OSG: mxQymrEVM1mEV9Tth36MFxOC4TTuoaPbZqbmJPSoG30nJsF FqI00GxJOwu5nYDzpZdcrKnV8ZsQggJ_4WWm5LmFg.mc4FRvtT9psUgB4kva x4dB4zRprjnkHy8Ag1i85HtHx8sy_xw4nHWxkBc50119BtQ6gAbv5KJ.ilWt yXTbNwNUcIRLmdPy2qh6YYyYX2q4fYHOZeed4.ATbqIWvoLF8xqHj3X9hC8g 7FQjkyN3V5afFRBbzYZpYqE4nia2u X-Yahoo-Newman-Property: ymail-3 Date: Mon, 19 Jul 2010 16:59:49 +0800 From: "beezarliu" To: "freebsd-net" Message-ID: <201007191659457506137@yahoo.com.cn> X-mailer: Foxmail 6, 10, 201, 20 [cn] Mime-Version: 1.0 X-Mailman-Approved-At: Mon, 19 Jul 2010 11:11:10 +0000 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Jack Vogel Subject: 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 08:59:53 -0000 Hi Jack and Hackers, I use igb driver (version:1.9.3) in our local-made freebsd7-stable build. But I found its statistics is very strang. The total received packet number(TPR) is not equal to the good packets Rx count (GPRC). I think these 2 values should be equal because there is no error in receiving side. For example: (kgdb) p adapter.stats $4 = {crcerrs = 0, algnerrc = 0, symerrs = 0, rxerrc = 0, mpc = 0, scc = 0, ecol = 0, mcc = 0, latecol = 0, colc = 0, dc = 0, tncrs = 0, sec = 0, cexterr = 0, rlec = 0, xonrxc = 0, xontxc = 0, xoffrxc = 0, xofftxc = 0, fcruc = 0, prc64 = 6, prc127 = 23, prc255 = 0, prc511 = 0, prc1023 = 0, prc1522 = 0, gprc = 29, bprc = 29, mprc = 0, gptc = 0, gorc = 1948, gotc = 0, rnbc = 0, ruc = 0, rfc = 0, roc = 0, rjc = 0, mgprc = 0, mgpdc = 0, mgptc = 0, tor = 0, tot = 0, tpr = 568, tpt = 0, ptc64 = 0, ptc127 = 0, ptc255 = 0, ptc511 = 0, ptc1023 = 0, ptc1522 = 0, mptc = 0, bptc = 0, tsctc = 0, tsctfc = 0, iac = 0, icrxptc = 0, icrxatc = 0, ictxptc = 0, ictxatc = 0, ictxqec = 0, ictxqmtc = 0, icrxdmtc = 0, icrxoc = 0, cbtmpc = 0, htdpmc = 0, cbrdpc = 0, cbrmpc = 0, rpthc = 0, hgptc = 0, htcbdpc = 0, hgorc = 0, hgotc = 0, lenerrs = 0, scvpc = 0, hrmpc = 0, doosync = 0, lostcarrier = 0, skip_wakeup = 0, wakeup = 0, getbuffail = 0, eop = 0, m_flagserr = 0, m_lenserr = 0, rcviferr = 0} 2010-07-19 beezarliu