From owner-freebsd-net@FreeBSD.ORG Sun Feb 2 19:19:43 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 ACB0283F for ; Sun, 2 Feb 2014 19:19:43 +0000 (UTC) Received: from mail-ea0-x236.google.com (mail-ea0-x236.google.com [IPv6:2a00:1450:4013:c01::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4529215F0 for ; Sun, 2 Feb 2014 19:19:43 +0000 (UTC) Received: by mail-ea0-f182.google.com with SMTP id r15so3357611ead.27 for ; Sun, 02 Feb 2014 11:19:41 -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=YqBd/XTQtNHDT0FD6vTSB1163K5yQiKb5sqlc7bHy00=; b=JIaGJW4hxaBt+/013r881S5f2MVIZMPxFX0+biCOl+dnLxZ7BbbcApwl+/ptXvf7R3 f4Iveu4pKCe93SxzXkbvHE5yztJo9tOHhKGVpUKBcQPdgoXt9xBBnS+OYuAf2v72xdS7 5xfZycq1rVbKqHOf/X+j2kN/03V7BaxCJ5eopB16iWTXFMKbmbg5YsQ0svpxmd80odPY i7ueiGihsBXDnXDPvDtyMYvGB9bwhEWEmmjLa8VlQDTbIEI8Wep06Jc3AyA0xfDytCSW sQW9QD7JYoljFO4rqgcPj/dAdQpi1Flv9PheWM+fjBgTVoSCEi+AZ6Css4pfFIaDdyF0 yweQ== MIME-Version: 1.0 X-Received: by 10.15.43.141 with SMTP id x13mr38293485eev.35.1391368781619; Sun, 02 Feb 2014 11:19:41 -0800 (PST) Received: by 10.14.65.4 with HTTP; Sun, 2 Feb 2014 11:19:41 -0800 (PST) In-Reply-To: References: Date: Sun, 2 Feb 2014 11:19:41 -0800 Message-ID: Subject: Re: Errors using span interface on if_bridge(4) From: hiren panchasara To: "freebsd-net@freebsd.org" 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: Sun, 02 Feb 2014 19:19:43 -0000 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. How do I know why this number is increasing? cheers, Hiren