Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1280974rwb; Thu, 8 Dec 2022 08:43:26 -0800 (PST) X-Google-Smtp-Source: AA0mqf5Us7enlVAQnJcJQSXDnsQDmK7xXgDo8H68cGAYP4ZZNlUgV6Uj/EGaSQyG+tOj3pL/uLDi X-Received: by 2002:a17:90a:d58a:b0:20d:48bc:6666 with SMTP id v10-20020a17090ad58a00b0020d48bc6666mr101851818pju.98.1670517806646; Thu, 08 Dec 2022 08:43:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670517806; cv=none; d=google.com; s=arc-20160816; b=njGX88+FO/+5viEDH1N8N94FW2WomLSEQERzmWXr8EynqwtYlvgamazyCj3YQrwGy3 1yw03ovIJUQcx0MiKfAyu3Snk1laUEK6RsYVTkFkZCw9z44stXoLCtgAYZlebBIGjmlg SFgKu1R2xJ7CV0Ruly8F4lwsZ5KL1TAp/9R9HqWJXdMYdJqB2xLUD58seDDoO0EOHVRv amE3ZhMiBGpdJeA2HSRtOSQYFxJkKLQ0jAu3kLBXosK46XbA/jauFbtYaC+SgcPnPYOg dhcKDbf/65EcPzOmfbtQYrpYNLWrUdcFY1YgP6ts0Sh4d50DtatKFUbVKqE/5KCRZKoO pTGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=2rZpNHS3zjVnsnclVnie2ZUW06W/KbA77iI6A1Cxwto=; b=bL7GcLPFD36zcfm7uACGlqpqThUHZgL3j2U4XvOWXFqjT9A5h6nElhPoVSXeHfcvEb GGdngUeymUu7UFIePsgRDE1uE/O9q104CY26lC6DZ122zIxWgjzfvwoEyXM3b+FW5KZI pJomXiQeUIdkgEEIXDp4JgUj5IfhAMegpgmMMEJl0OOv/REmVlaoDdJQ5/1oBzNR7/sb SJNJLuqIWuilWfH0iSz9XDbeQYZoPX+YkJwQZXRfDxyvDgFk67UlgZurDNCGC4pHh1iS /Sc73DQt6Zr0bk+Tmf7RrOXCiSfhnZXf46AJe8yArwnuVtVVtHRejKV2W9k0tbY6w4LU GGjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="CD0XdI/C"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x1-20020aa79401000000b0057723dd7a4bsi9240475pfo.38.2022.12.08.08.43.13; Thu, 08 Dec 2022 08:43:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="CD0XdI/C"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230175AbiLHQ1X (ORCPT + 72 others); Thu, 8 Dec 2022 11:27:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39250 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230197AbiLHQ1O (ORCPT ); Thu, 8 Dec 2022 11:27:14 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C412C6FF34; Thu, 8 Dec 2022 08:27:06 -0800 (PST) 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 C5F7AB824BC; Thu, 8 Dec 2022 16:27:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 06E7CC433F2; Thu, 8 Dec 2022 16:27:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1670516823; bh=2rZpNHS3zjVnsnclVnie2ZUW06W/KbA77iI6A1Cxwto=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=CD0XdI/CmJXuvBPJGjhWMaM01S3ubk6YjXjajjz6MlN+6pJyLxyEcZ5UkXGhAHja2 nn3cymWvua1BOdteGqpPZZj93BGRpKofIfuPjkprWq0xpLSj2mHrXpO1S+O9oMore1 gFoNfVBjuISAD1njKRpuFg+Z57NbxVx90YX1w2UDb18omYEiLUQlI9Eu7PxHDX2I0M ZQ+gsoBIStSt46+drJHAjH8T3D2tM2qU7hb3ASqw6XmbEbExb8JAxRUNmnpzNJZQtf 2ag8pw2jA1ti3sSJDNCFspqFeDECIQzke//Q+bey1RCEMqW/XLvRIPQ6dNDyu9ZQgR 5SSna6ZOt+b9w== Date: Thu, 8 Dec 2022 08:27:01 -0800 From: Jakub Kicinski To: Oleksij Rempel Cc: Woojung Huh , Andrew Lunn , Arun.Ramadoss@microchip.com, Florian Fainelli , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, UNGLinuxDriver@microchip.com, Eric Dumazet , Vladimir Oltean , kernel@pengutronix.de, Vivien Didelot , Paolo Abeni , "David S. Miller" Subject: Re: [PATCH net-next v1 1/1] net: dsa: microchip: add stats64 support for ksz8 series of switches Message-ID: <20221208082701.7b7fffc3@kernel.org> In-Reply-To: <20221208055512.GE19179@pengutronix.de> References: <20221205052904.2834962-1-o.rempel@pengutronix.de> <20221206114133.291881a4@kernel.org> <20221207061630.GC19179@pengutronix.de> <20221207154826.5477008b@kernel.org> <20221208055512.GE19179@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 8 Dec 2022 06:55:12 +0100 Oleksij Rempel wrote: > I tested it by sending correct and malformed pause frames manually with > mausezahn. Since it is possible to send and receive pause frames > manually, it is good to count all bytes in use, otherwise we may have > bogus or malicious stealth traffic without possibility to measure it. =F0=9F=99=83=EF=B8=8F=F0=9F=99=83=EF=B8=8F