From owner-freebsd-bugs@FreeBSD.ORG Thu Nov 7 01:10:00 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 98D0681B for ; Thu, 7 Nov 2013 01:10:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 781492DA7 for ; Thu, 7 Nov 2013 01:10:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id rA71A0mB039306 for ; Thu, 7 Nov 2013 01:10:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id rA71A0pB039305; Thu, 7 Nov 2013 01:10:00 GMT (envelope-from gnats) Resent-Date: Thu, 7 Nov 2013 01:10:00 GMT Resent-Message-Id: <201311070110.rA71A0pB039305@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Andrew Kinney Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 891174D6 for ; Thu, 7 Nov 2013 01:03:08 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 76CA92D41 for ; Thu, 7 Nov 2013 01:03:08 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id rA7138jT069097 for ; Thu, 7 Nov 2013 01:03:08 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id rA713828069086; Thu, 7 Nov 2013 01:03:08 GMT (envelope-from nobody) Message-Id: <201311070103.rA713828069086@oldred.freebsd.org> Date: Thu, 7 Nov 2013 01:03:08 GMT From: Andrew Kinney To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: kern/183732: igb interface output byte counter double real output bytes on 8.4-RELEASE generic kernel X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Nov 2013 01:10:00 -0000 >Number: 183732 >Category: kern >Synopsis: igb interface output byte counter double real output bytes on 8.4-RELEASE generic kernel >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Nov 07 01:10:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Andrew Kinney >Release: 8.4-RELEASE >Organization: Advantagecom Networks, Inc. >Environment: FreeBSD redact.redact.com 8.4-RELEASE-p4 FreeBSD 8.4-RELEASE-p4 #0: Mon Sep 9 23:16:13 UTC 2013 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 >Description: With a generic unmodified 8.4-RELEASE-p4 kernel, igb interface outbound byte counters are double real output bytes. Packet counts are as expected. This existing problem report against 8.4-STABLE seems to identify the root cause, but it was largely ignored because it wasn't reported against 8.4-RELEASE: http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/182828 Symptoms visible on a box running bridging and IPFW with two igb interfaces. Outbound bytes is usually about double inbound bytes on the opposite interface. Packet counts are about equal. Very visible when there is significant traffic graphed via snmpd and cacti. Diagnosed with: netstat -I igb0 -btW ; netstat -I igb2 -btW ; date # wait a few seconds netstat -I igb0 -btW ; netstat -I igb2 -btW ; date # compare Ibytes delta on one interface to Obytes delta on opposite interface Actual Results: Obytes delta on one interface should be roughly equal to Ibytes delta on the opposite interface. Expected Results: Ibytes on one interface should be roughly equal to Obytes on the opposite interface >How-To-Repeat: Use FreeBSD-8.4-RELEASE with igb interfaces. Observe Obytes from "netstat -I igb0 -btW" with a known quantity of network traffic before and after the traffic. Obytes will be approximately double the expected value. >Fix: patch submitted against FreeBSD-8.4-STABLE on http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/182828 >Release-Note: >Audit-Trail: >Unformatted: