From owner-freebsd-net@FreeBSD.ORG Mon Feb 3 03:34:19 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 83351470; Mon, 3 Feb 2014 03:34:19 +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 E6D6B1628; Mon, 3 Feb 2014 03:34:18 +0000 (UTC) Received: by mail-ea0-f175.google.com with SMTP id z10so3408826ead.20 for ; Sun, 02 Feb 2014 19:34:17 -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=vPXqM36Rw1GjupXZ9s0Z86bK9S5+ylVSa1YBx8s4jvg=; b=hQQpfbVWOk1RHO0mWpwtUrcny1qZ2Mkk23DGr7s1CGZyTRjuVaHp9ZLgVabARJJBUX vA9OC00ejCBHGZDM5KC+eL62DzfpUJ4DCogfh5YDI2kHivjIGCr1A1MbkY801tvNz3Bh dH7iJA7BcMR+tRP3N+j3/HGh9nmEOlfnCNK2NdpoMhIR1MPS6reQTkFIy/5/qJfUpcsw hvZ7bzPn6EN+3qLc4Xj5i8JLV0ls/gH68g/wqU36FwEEoPzZezZLCBXJrXnzHrRJdRdR Zqj+QRPiRn2VihLXVx2PhbNyMI+35dYYWVLd64sN/TkbfavXe2kzGTvPtQR9rT/iacbu BLnQ== MIME-Version: 1.0 X-Received: by 10.15.33.193 with SMTP id c41mr37898eev.79.1391398457389; Sun, 02 Feb 2014 19:34:17 -0800 (PST) Received: by 10.14.65.4 with HTTP; Sun, 2 Feb 2014 19:34:17 -0800 (PST) In-Reply-To: References: Date: Sun, 2 Feb 2014 19:34:17 -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:34:19 -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. > > Adding Jeff to get some more insights if possible. Bah. Jack and not Jeff :-) cheers, Hiren