From owner-freebsd-bugs@FreeBSD.ORG Sun May 31 03:00:04 2009 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 905BD106566B for ; Sun, 31 May 2009 03:00:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 66A578FC1F for ; Sun, 31 May 2009 03:00:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n4V304GW063259 for ; Sun, 31 May 2009 03:00:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n4V304Ux063258; Sun, 31 May 2009 03:00:04 GMT (envelope-from gnats) Resent-Date: Sun, 31 May 2009 03:00:04 GMT Resent-Message-Id: <200905310300.n4V304Ux063258@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, hshh Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3F719106564A for ; Sun, 31 May 2009 02:50:19 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 2D5DD8FC13 for ; Sun, 31 May 2009 02:50:19 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n4V2oIZ5038232 for ; Sun, 31 May 2009 02:50:18 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n4V2oIIh038231; Sun, 31 May 2009 02:50:18 GMT (envelope-from nobody) Message-Id: <200905310250.n4V2oIIh038231@www.freebsd.org> Date: Sun, 31 May 2009 02:50:18 GMT From: hshh To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: kern/135091: [bce] if_bce inbound traffic bytes counter is incorrect in 7.2-RELEASE X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 May 2009 03:00:04 -0000 >Number: 135091 >Category: kern >Synopsis: [bce] if_bce inbound traffic bytes counter is incorrect in 7.2-RELEASE >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun May 31 03:00:04 UTC 2009 >Closed-Date: >Last-Modified: >Originator: hshh >Release: 7.2-RELEASE >Organization: hshh.org >Environment: FreeBSD x.hshh.org 7.2-RELEASE FreeBSD 7.2-RELEASE #2: Fri May 8 15:18:48 CST 2009 root@x.hshh.org:/usr/obj/usr/src/sys/x amd64 >Description: The box is Dell 1950PE or 2950PE with Broadcom 5708C. bce0@pci0:9:0:0: class=0x020000 card=0x01b31028 chip=0x164c14e4 rev=0x12 hdr=0x00 vendor = 'Broadcom Corporation' device = '5708C Broadcom NetXtreme II Gigabit Ethernet Adapter' class = network subclass = ethernet When I use ``netstat 1'' or ``systat -if 1'', I found the inbound bytes counter is incorrect. Here is sample, and also I attached tcpdump log. [root@x] ~# netstat 1 input (Total) output packets errs bytes packets errs bytes colls 1 0 2026 1 0 218 0 4 0 8104 1 0 170 0 1 0 2026 1 0 170 0 1 0 2026 1 0 170 0 [root@x] ~# tcpdump -vvn tcpdump: listening on bce0, link-type EN10MB (Ethernet), capture size 96 bytes 10:38:24.855321 IP (tos 0x0, ttl 127, id 1506, offset 0, flags [DF], proto TCP (6), length 40) 172.17.2.9.1232 > 172.18.0.200.22: ., cksum 0x7c81 (correct), 1:1(0) ack 132 win 63848 You see, only length 40 bytes in, but netstat show me 2026 bytes. >How-To-Repeat: Install FreeBSD 7.2-RELEASE AMD64 in Broadcom 5708C box, and try to use ``netstat 1'' or ``systat -if 1''. >Fix: >Release-Note: >Audit-Trail: >Unformatted: