From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 21023C6FD1D for ; Mon, 20 Mar 2023 09:20:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230457AbjCTJUj (ORCPT ); Mon, 20 Mar 2023 05:20:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231192AbjCTJUX (ORCPT ); Mon, 20 Mar 2023 05:20:23 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D25D512F1A; Mon, 20 Mar 2023 02:20:20 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 07A49B80DB4; Mon, 20 Mar 2023 09:20:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id AC617C4339C; Mon, 20 Mar 2023 09:20:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679304017; bh=pIc4REO26VA4fV9d9grTiPVMmQaAS83Z9ApkwNAfUiQ=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=AcaNYHMQuzqFfP+ruOymMYBRZk9X/jQ2naJ4Z2hN48sRtjDItcSEe8ZibwuT7eoAU f8InAsAs942GvOYEsE3SFgoOA1LIOw3wrVnXIlYTpkwAt00xwBE36kokrDPx2FQsc3 jf2B56kLAS7n5/dp5yCKHmL4EAhsM45S3xOGblCMmc5YUbY9d8VppE4BJ9XN6Jc3z0 Jriyrlm1+TXs3L+jp8HPfveWDDlPX19gOiyWEgpQ9kGL6g/LIeEEsSsKftqjQpa8iQ YH/fZMt5qBE8tI/C5Vs6U+fJxVrjzsBiZTi/afLHZsZH8J0a7UaxC8jTpnKjcIYeQi nCJzYQlAOL/Ig== Received: from aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (Postfix) with ESMTP id 880FAE4F0D8; Mon, 20 Mar 2023 09:20:17 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH net] net: dsa: report rx_bytes unadjusted for ETH_HLEN From: patchwork-bot+netdevbpf@kernel.org Message-Id: <167930401755.16850.9444829347109631863.git-patchwork-notify@kernel.org> Date: Mon, 20 Mar 2023 09:20:17 +0000 References: <20230317231900.3944446-1-vladimir.oltean@nxp.com> In-Reply-To: <20230317231900.3944446-1-vladimir.oltean@nxp.com> To: Vladimir Oltean Cc: netdev@vger.kernel.org, andrew@lunn.ch, f.fainelli@gmail.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello: This patch was applied to netdev/net.git (main) by David S. Miller : On Sat, 18 Mar 2023 01:19:00 +0200 you wrote: > We collect the software statistics counters for RX bytes (reported to > /proc/net/dev and to ethtool -S $dev | grep 'rx_bytes: ") at a time when > skb->len has already been adjusted by the eth_type_trans() -> > skb_pull_inline(skb, ETH_HLEN) call to exclude the L2 header. > > This means that when connecting 2 DSA interfaces back to back and > sending 1 packet with length 100, the sending interface will report > tx_bytes as incrementing by 100, and the receiving interface will report > rx_bytes as incrementing by 86. > > [...] Here is the summary with links: - [net] net: dsa: report rx_bytes unadjusted for ETH_HLEN https://git.kernel.org/netdev/net/c/a8eff03545d4 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html