From owner-freebsd-arm@freebsd.org Wed Nov 4 08:38:35 2020 Return-Path: Delivered-To: freebsd-arm@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 464664559EB for ; Wed, 4 Nov 2020 08:38:35 +0000 (UTC) (envelope-from soren.schmidt@gmail.com) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4CR0Rb0PhBz4Rgv for ; Wed, 4 Nov 2020 08:38:35 +0000 (UTC) (envelope-from soren.schmidt@gmail.com) Received: by mailman.nyi.freebsd.org (Postfix) id 0BFE24559EA; Wed, 4 Nov 2020 08:38:35 +0000 (UTC) Delivered-To: arm@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 0BB41455078 for ; Wed, 4 Nov 2020 08:38:35 +0000 (UTC) (envelope-from soren.schmidt@gmail.com) Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) (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 4CR0RY6mqVz4RXx for ; Wed, 4 Nov 2020 08:38:33 +0000 (UTC) (envelope-from soren.schmidt@gmail.com) Received: by mail-wr1-x42b.google.com with SMTP id e6so3847727wro.1 for ; Wed, 04 Nov 2020 00:38:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:mime-version:subject:message-id:date:to; bh=UguBQZe5QZ8ceGEx73NQrBdfq2AIanHzqY6uYLFVZSE=; b=HxifIQytCjdBp7LWN62kTVcBXedZYRsrzFaYSh6HX4BYfvFTmq9oaGLaMCVvvdlVns dgAybjKxGRF4OB2okg7ZtDuai4rpK8uO6obLrfYuJh4YAIbva7AHeAO7zBGdG9bypmtk OjcK558G9l4ugJ2kwRO9thPXTcWvnaLezEYcq6/Xs0buRCTM01InmLx9kO3RgQKLhv7o jQ5j9Kd93Rp8qqickPiU367+a40eUpQ3vVwTzATtaSo18mxBvhgYHziIkFkq88PY/gRz bDYrT8jNzuP9XiMnz0SAmUF9ePmp68sfN/T2RTVsUNg1uX807G4/v9dsrOJ8WKskEKoG N4cQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:message-id:date:to; bh=UguBQZe5QZ8ceGEx73NQrBdfq2AIanHzqY6uYLFVZSE=; b=G+Z8NBj3XzSJtzl6cPomlxNtOE+ys4z3PUmRakUUhD8zEBsU4wbYZUzt5Sqmhp4had suex74XpVYyVy/w50RtYl1m4TZV7TncAnj14OEXv4ibQB61QxZ/9cU3DsywDlpvjs7SN TjKBwTyFxx0NjV+Nc8Et2CRkzyncOhiGQ4LZytgvtUEkkoirEyS60sYWhMdGHXhjZ35D SfH3VFgvCde/u9FKU2HR6y4jgzxEtPlZqk4f/uA8TAsVVwdSuRKpPqDJ4lP1YwM0Zwow BY0OUyPBESFoW858Gnk3YTzrCpOhY4odLNh2XnGNFd4ytT/UBNlz09Lm8fFczn9dhbNU pdhg== X-Gm-Message-State: AOAM530LPSBGYxiK4hAmnnFZNAbISZtnly0lmX8vPFLuyLco3OzRx7Tg n/BqNqWjOvMqFSaQ8zj95HcoM0c5vI0= X-Google-Smtp-Source: ABdhPJwUcRlKICWgElGP+iv29bnCpOpCzxzvS5fBLT2rmcBN+9PI6ygYBWixDKQ34m4A7coGz1EEKQ== X-Received: by 2002:adf:f381:: with SMTP id m1mr33915827wro.347.1604479112028; Wed, 04 Nov 2020 00:38:32 -0800 (PST) Received: from mac.deepcore.dk ([85.27.186.9]) by smtp.gmail.com with ESMTPSA id y2sm1617471wrh.0.2020.11.04.00.38.31 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Nov 2020 00:38:31 -0800 (PST) From: =?utf-8?Q?S=C3=B8ren_Schmidt?= Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) Subject: if_mvneta rx/tx byte counts wrong Message-Id: <57104A54-AC82-4102-A637-116BF8D2E17D@gmail.com> Date: Wed, 4 Nov 2020 09:38:30 +0100 To: "freebsd-arm@freebsd.org" X-Mailer: Apple Mail (2.3608.120.23.2.4) X-Rspamd-Queue-Id: 4CR0RY6mqVz4RXx X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=HxifIQyt; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of sorenschmidt@gmail.com designates 2a00:1450:4864:20::42b as permitted sender) smtp.mailfrom=sorenschmidt@gmail.com X-Spamd-Result: default: False [-2.22 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-0.28)[-0.282]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; R_MIXED_CHARSET(0.62)[subject]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.02)[-1.016]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.04)[-1.044]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[arm@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::42b:from]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[arm] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.33 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Nov 2020 08:38:35 -0000 Hi gang While returning to my hacks on the Espressobin I noticed that netstat -w = gives some interesting results: root@EspressoBin:~ # netstat -w1 input (Total) output packets errs idrops bytes packets errs bytes colls 0 0 0 60 0 0 0 0 1 0 0 274877907008 0 0 0 0 0 0 0 60 0 0 0 0 1 0 0 274877907008 0 0 0 0 1 0 0 274877907315 0 0 0 0 3 0 1 1370094567743 0 0 0 0 0 0 0 60 0 0 0 0 1 0 0 274877909253 0 0 0 0 Looking at the sysctl=E2=80=99s its the same thing: dev.mvneta.0.mib.tx_good_oct: 3813930959736 dev.mvneta.0.mib.rx_good_oct: 443193380410133 First though there might be byteordering involved but looking at the raw = values that does not explain the behaviour, however the rx/tx count is = the only values that are 64bit, all others are 32bit and are working as = expected. Any ideas / fixes ? -- S=C3=B8ren Schmidt sos@deepcore.dk / sos@freebsd.org "So much code to hack, so little time"