From owner-freebsd-net@FreeBSD.ORG Mon Feb 3 03:32:05 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 18D923AE; Mon, 3 Feb 2014 03:32:05 +0000 (UTC) Received: from mail-ea0-x22f.google.com (mail-ea0-x22f.google.com [IPv6:2a00:1450:4013:c01::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 7ECC7160A; Mon, 3 Feb 2014 03:32:04 +0000 (UTC) Received: by mail-ea0-f175.google.com with SMTP id z10so3449625ead.34 for ; Sun, 02 Feb 2014 19:32:02 -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=ACDnZMr2ZQo8IHXdiwSYRmq400xW2P42s/sQWSw+CMs=; b=EIFhWH+kLPsdiVFvEZI3HvJciIzioIcCnMsgwFK6kAXvGUbCoA5qDq7WA4pxDoADwc XfrjiN6NVg1X8njwa/t7wgcqpvuPE7ab+SXagPrhFzotquoTrkWqn1vpdN/jXzpvhui9 IlxewYFJfak9ixIMsIppxMFmVTtFiDcODbwwuXa3jZN02rhGNjNEBPWk4bL4PLfNYVN6 HMiADdcmGpsH/2v7gbd8asenEjVWhBGitARH4zTysc9vxLbFJ1jeWz7lFRfDi1d7uLSy TKN/sa41U3iq0KUImt2IDVeTZDI2lGnc5X5CALmFCusgsoOEKA/dy+F6qLWiiMcN+jAg WmkQ== MIME-Version: 1.0 X-Received: by 10.14.220.193 with SMTP id o41mr40866205eep.22.1391398322780; Sun, 02 Feb 2014 19:32:02 -0800 (PST) Received: by 10.14.65.4 with HTTP; Sun, 2 Feb 2014 19:32:02 -0800 (PST) In-Reply-To: References: Date: Sun, 2 Feb 2014 19:32:02 -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 03:32:05 -0000 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. Adding Jeff to get some more insights if possible. cheers, Hiren