From owner-freebsd-current@freebsd.org Tue Feb 16 12:59:23 2021 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 1161E5371FB for ; Tue, 16 Feb 2021 12:59:23 +0000 (UTC) (envelope-from amigan@gmail.com) Received: from mail-qt1-x832.google.com (mail-qt1-x832.google.com [IPv6:2607:f8b0:4864:20::832]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Dg1JT0w96z3qGH for ; Tue, 16 Feb 2021 12:59:20 +0000 (UTC) (envelope-from amigan@gmail.com) Received: by mail-qt1-x832.google.com with SMTP id o21so6977515qtr.3 for ; Tue, 16 Feb 2021 04:59:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=MPlUBxJmCOZCQj2vni8oVijO20DEINQTvowU8r7g4zs=; b=qQmOAa3+BRLm7oSHxbX6yMfi0Xxjz0oYxr0aRDNoBBzOEmmqpt2en3WABEKKi2IOjw eX0FvtuBHWyHpTCTumg/3sxQIKa1g6ay+MKmGLn8kwSfaqysI/jlYPrffO4XBWp75SJy ZhTMXOmOtFh9ZY9G8BdkVSVZXM9WV20MfaLHHdbesw9DkYe7rojud25/PU8KlVT1KLCC DBoViQ/rkgnMhi1usGo/xRAAIBScE7CqK4IGMg4CNFduzz2P7VY5RWSHksZkx3CLaHLZ FmC9TyGXbv8Kn6KoqSrlw6ZDavtxLAAvt2FA+FShsgato68pTLznAEWR1GEVMSWKDNCo CKGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=MPlUBxJmCOZCQj2vni8oVijO20DEINQTvowU8r7g4zs=; b=py1/pe+mi0seCmlJ/sdZLwlECMwJ5f5/3EhYDX1q27UMWLjj2Ja2tMnNdOp7JiCFbf wGFWCIcGeQVwR8Pd6AFx6vNptkdohU+j2edTSahFVL/0p4h9alqXVp+JYTsHirWz82T8 HrPFhC60qv/anWNkCa9/v22tS4QPbUl0DRffaO/M9SqXDVHMeXevQLRFzMicmSHVM5hc QwaFmx4uPsg+6X3/mS1ZG3zlDgeJYcxn++OuQVSucEoBxU1xCJj0ND9S1rFSkdtky3s/ ijh7iZqi2PCmteYDhYluc262receFdxFXbwn8BMWon/UmcKVtAU1xtGKnEMooTDhKG+R 3L6g== X-Gm-Message-State: AOAM532Z21AKf1SsUqx0RmSUFYHdCUfeIPGEAmxt7c7y2lm/+hM1vSTE bwqMkDN3P18RZg3kPP/lhPkyX8xW3h1VHQ== X-Google-Smtp-Source: ABdhPJzSQAcOkUtudmoiK0+nM6BDMGvOCbXTQXwXh7fSOZ1B+sF7yqPdSmbkoLwT+9CVqQTcbPJKEg== X-Received: by 2002:ac8:5a02:: with SMTP id n2mr18428293qta.295.1613480359478; Tue, 16 Feb 2021 04:59:19 -0800 (PST) Received: from gmail.com ([2001:470:8b6d:0:94d4:4b76:bec8:5820]) by smtp.gmail.com with ESMTPSA id s126sm3312997qkf.62.2021.02.16.04.59.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Feb 2021 04:59:18 -0800 (PST) Date: Tue, 16 Feb 2021 07:59:17 -0500 From: Daniel Ponte To: freebsd-current@freebsd.org Subject: Re: Interface counter inaccurate Message-ID: <20210216125917.6nbchvxcf5gd65wo@gmail.com> References: <20210215210957.vesrn63yt3ckpxll@dtvax.dynatron.me> <20210215235809.nkmjjtqcpauvkjh7@dtvax.dynatron.me> <89A7A186-1042-49B5-9C78-D7C8495C0EB6@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <89A7A186-1042-49B5-9C78-D7C8495C0EB6@FreeBSD.org> X-Rspamd-Queue-Id: 4Dg1JT0w96z3qGH X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=qQmOAa3+; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of amigan@gmail.com designates 2607:f8b0:4864:20::832 as permitted sender) smtp.mailfrom=amigan@gmail.com X-Spamd-Result: default: False [-4.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::832:from]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[2607:f8b0:4864:20::832:from:127.0.2.255]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::832:from]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-current] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Feb 2021 12:59:23 -0000 On Tue, Feb 16, 2021 at 10:39:28AM +0100, Kristof Provost wrote: [...] > Even stranger, in that you appear to only have the issue on one of your igb0 > interfaces. > My initial guess was that there was a driver bug causing it to double count > the packets. > > That machine has 4 ethernet ports, does it have 4 igbX interfaces as well? > Are there any vlans configured? (My current thinking is still that it’s a > driver issue, manifesting only on one of the interfaces because of a > configuration difference.) > > It may also be useful to try capturing packets on igb0 and correlating the > number of captured packets with the counters. > > I’m not all that familiar with the igb driver code, so I don’t know if I’ll > be able to help much. > > Best regards, > Kristof It indeed has 4x igb interfaces. I have been able to further correlate this. The issue is with incoming packet counters on either interface. When the flow reverses (upload speedtest vs download speedtest), the inside interface's ingress counter starts counting double instead. There is a single, seldom-used vlan, but it is only on the inside interface. Destroying it made no difference. Dan