From owner-freebsd-net@FreeBSD.ORG Mon Feb 3 05:56:46 2014 Return-Path: Delivered-To: freebsd-net@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 ESMTPS id 97222E1; Mon, 3 Feb 2014 05:56:46 +0000 (UTC) Received: from mail-ee0-x22d.google.com (mail-ee0-x22d.google.com [IPv6:2a00:1450:4013:c00::22d]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 08F2610BB; Mon, 3 Feb 2014 05:56:45 +0000 (UTC) Received: by mail-ee0-f45.google.com with SMTP id b15so3397875eek.4 for ; Sun, 02 Feb 2014 21:56:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=UhurzXXKFQEQxYbbi34FpdyS8WOou1E/cVuvL+uVVO8=; b=ICpK0CXeeaZ/iscIx2/Uz+sxF29n5IDDAhjsRiSIyQBa8oanTgq0Xw+g9eUTIR6v5H di4XdeX0MzJ3F5S2lzOV7epViD7h/UR58uxgcxYTUUB8Qrmy+c21SPSZs3ORovdKi42Z mWueGhTUtCFRqo98hWgxGNDKv86GJ3+oQWJoysf3uyvgcxlTlA97Ap17R7hntHYd5O2r uIZnyBYGHHHbJjyL7pTb3P3OwFodHlD2XuX8PTMQl3+VNn/Kgh9KfFvuuoLP00XiKDz4 MK4aJTTyrgBsrt5CT+wYCieGr5bxD5DaTCgLbwC0a3u/Lx/mwHbkyFGH6FpHyyfm+6iS GOBQ== MIME-Version: 1.0 X-Received: by 10.14.32.132 with SMTP id o4mr41551178eea.14.1391407004286; Sun, 02 Feb 2014 21:56:44 -0800 (PST) Received: by 10.14.65.4 with HTTP; Sun, 2 Feb 2014 21:56:44 -0800 (PST) In-Reply-To: References: Date: Sun, 2 Feb 2014 21:56:44 -0800 Message-ID: Subject: Re: Errors using span interface on if_bridge(4) From: hiren panchasara To: "freebsd-net@freebsd.org" , Jack F Vogel Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.17 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, 03 Feb 2014 05:56:46 -0000 On Sun, Feb 2, 2014 at 7:32 PM, hiren panchasara wrote: > On Sun, Feb 2, 2014 at 11:19 AM, hiren panchasara > wrote: >> On Sat, Feb 1, 2014 at 5:16 PM, hiren panchasara >> wrote: >> >>> >>> -bash-4.2$ sysctl -a | grep mac_stats.checksum_errs >>> dev.ix.0.mac_stats.checksum_errs: 0 >>> dev.ix.1.mac_stats.checksum_errs: 0 >>> dev.ix.2.mac_stats.checksum_errs: 0 >>> dev.ix.3.mac_stats.checksum_errs: 3371119 <-- most of them fail checksum >> >> In ixgbe.c : >> ixgbe_add_hw_stats() has >> SYSCTL_ADD_UQUAD(ctx, stat_list, OID_AUTO, "checksum_errs", >> CTLFLAG_RD, &stats->xec, >> "Checksum Errors"); >> >> which is updated in ixgbe_update_stats_counters() >> adapter->stats.xec += IXGBE_READ_REG(hw, IXGBE_XEC); >> >> ixgbe_type.h defines >> #define IXGBE_XEC 0x04120 >> >> So, this is something that firmware of the card updates? We just read >> that register from drivers. > > ix3@pci0:66:0:1: class=0x020000 card=0x7a118086 chip=0x10fb8086 > rev=0x01 hdr=0x00 > vendor = 'Intel Corporation' > device = '82599EB 10-Gigabit SFI/SFP+ Network Connection' > class = network > subclass = ethernet > > I found following in 82599 controller spec update: > http://www.intel.com/content/dam/www/public/us/en/documents/specification-updates/82599-10-gbe-controller-spec-update.pdf#G2.1474004 > http://www.intel.com/content/dam/www/public/us/en/documents/specification-updates/82599-10-gbe-controller-spec-update.pdf#G2.2301787 > > Thought here I am sending unicast tcp traffic with iperf3. I tried to use netperf to generate smaller size packets (64 bytes) and with that I saw only 0.004% packets reporting checksum errors. $ netperf -H 10.73.149.91 -t TCP_STREAM -- -m 64 -D TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 10.73.149.91 () port 0 AF_INET : nodelay : histogram : interval : dirty data : demo Recv Send Send Socket Socket Message Elapsed Size Size Size Time Throughput bytes bytes bytes secs. 10^6bits/sec 65536 65536 64 10.00 56.92 Anything larger was showing 93% packets with checksum error. (as I've been reporting in this thread). cheers, Hiren