Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3715036iog; Tue, 28 Jun 2022 00:46:53 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vz5rxJD6h+ky+olj48yfxMHDYuO7rofkR/ZG504YLW6X1UEj084uhSt9c7Puq1G8SnUbho X-Received: by 2002:aa7:9298:0:b0:525:a210:465f with SMTP id j24-20020aa79298000000b00525a210465fmr2280982pfa.77.1656402413009; Tue, 28 Jun 2022 00:46:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656402413; cv=none; d=google.com; s=arc-20160816; b=IYnsXf5KD1PEjvBPzAryV3c3+SoY8CTypqwEjRqg+8A8mjmDWHZw18qo2roHm5YWns JSIehwF5xbFl95vouglHgDOrfVQp3ZFhiZchagzXFMF9d5qgIeUWyvCv0Hlqynyn7xQ+ hJi78p+LrfuI7FRK49D2qx5k6JeCGcnpRqdqjlq+7JzMNovd8qielXAFA0pthHyvbjtP xGAe881107P7Oym/hdnvw1x8s+ept+CF4VE5DbmS11GOytxY3ij6Kog1vlSLoLeteSNy +Zc+anCVTglpocH9pTsrF97njU1dfarWl+TLpYH8zGWhTb3zpo/NmUtjY37xzvsYO1I+ PYeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ZN46xJfx0F1znhp+nDlAJ1g2eUoXZJqOv+162R9HeD8=; b=FIX3JbWcbl0Ko4zAmCpNdNxYvIg5RaUmkhiitpC/+Z6ME1W23An3m13GBI6d5I+4v3 gmX0WG0dVFpxPfZeL0Dw9zrnsUWpnHGWAqs9OC8edclx7N5LFlVb0Pd0tMY4pP74Ydl5 jVV3Ebul/X/nWjBUDo0UMymzfGR0FPjZZQM1UwiFzQXTmqZGvvEsmwjFfUhFfAdKFHRi obrEZkj9Aak8lVci49kClbq01L72NHfalLtoINR1r4u5rUOKHOKwCCKeIjewL9+DCar3 t0m1O0xj9sNCT0EsV7n+IBTjjTBSYULaKQvX9XGG+/CCO06rO6dn9XLJE5Q4YAc7r2kW 3Qtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="eG97E/B3"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e193-20020a6369ca000000b003fc2d55fef2si19040035pgc.714.2022.06.28.00.46.40; Tue, 28 Jun 2022 00:46:52 -0700 (PDT) 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=@lunn.ch header.s=20171124 header.b="eG97E/B3"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241877AbiF1HXR (ORCPT + 99 others); Tue, 28 Jun 2022 03:23:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242305AbiF1HXP (ORCPT ); Tue, 28 Jun 2022 03:23:15 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22F24286D6; Tue, 28 Jun 2022 00:23:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=ZN46xJfx0F1znhp+nDlAJ1g2eUoXZJqOv+162R9HeD8=; b=eG97E/B3oqw24lLG7tEOVBAvQS 0SF9LGFggMqBD1Fky2NGz2LEo7LHR0UnEH6Mceh97lKOCQsX5TVQRfWAeWmMfPbAuYl7FFYb3/A+4 5sPyrhZv6MV3v2cQejM/sUJqTXx83x9NOaSz2YQ9dCxikY6wHeWdOLWGnpf+Vx1QCYzE=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1o65Yj-008XL1-Il; Tue, 28 Jun 2022 09:22:53 +0200 Date: Tue, 28 Jun 2022 09:22:53 +0200 From: Andrew Lunn To: Jakub Kicinski Cc: Vladimir Oltean , Oleksij Rempel , Woojung Huh , Vivien Didelot , Florian Fainelli , "David S. Miller" , Eric Dumazet , Paolo Abeni , kernel@pengutronix.de, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Lukas Wunner , UNGLinuxDriver@microchip.com Subject: Re: [PATCH net-next v1 2/3] net: dsa: ar9331: add support for pause stats Message-ID: References: <20220624125902.4068436-1-o.rempel@pengutronix.de> <20220624125902.4068436-2-o.rempel@pengutronix.de> <20220624220317.ckhx6z7cmzegvoqi@skbuf> <20220626171008.GA7581@pengutronix.de> <20220627091521.3b80a4e8@kernel.org> <20220627200238.en2b5zij4sakau2t@skbuf> <20220627200959.683de11b@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220627200959.683de11b@kernel.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 > Yeah, the corrections are always iffy. I understand the doubts, and we > can probably leave things "under-specified" until someone with a strong > preference comes along. But I hope that the virt example makes it clear > that neither of the choices is better (SR-IOV NICs would have to start > adding the pause if we declare rtnl stats as inclusive). > > I can see advantages to both counting (they are packets) and not > counting those frames (Linux doesn't see them, they get "invented" > by HW). > > Stats are hard. I doubt we can define it either way. I once submitted a patch for one driver to make it ignore CRC bytes. It then gave the exact same counts as another hardware i was using, making the testing i was doing simpler. The patch got rejected simply because we have both, with CRC and without CRC, neither is correct, neither is wrong. So i would keep it KISS, pause frames can be included, but i would not go to extra effort to include them, or to exclude them. Andrew