Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp7581543rwp; Tue, 18 Jul 2023 18:36:11 -0700 (PDT) X-Google-Smtp-Source: APBJJlFWBCBb5mYGhNT3WZXKtsZ2cgfvw4F0CL8sa2arxSURj12JUjWtWNGZgmw7Mr+v1ysqRaAU X-Received: by 2002:a17:902:b193:b0:1b8:ac67:c2b with SMTP id s19-20020a170902b19300b001b8ac670c2bmr1234785plr.21.1689730570708; Tue, 18 Jul 2023 18:36:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689730570; cv=none; d=google.com; s=arc-20160816; b=YgFgW8cXiN85xZ9dunb3YIBHEZ0FZtVbYBrTnvMMKBiNbG5mhaVO3dEnnQbkxHu0J4 nCa5KcRlFlq9ofZ6fg7cvpTzeaEonVdSRFBKB/OMy9I1C8wDHP+TF+3TUxpaOmTie/v1 19+3Zk4ega0YhwBH8CiloAtXj1/Jovu2XdELDprk3UovjBOhKTuOlDMylPIU52SJ5iDO 2ERw3H4TSCob0Oap2IzH33hh4fp6xlcUbZQ9Fj1rnOi+o/lhV601NLQDkSCL4igAsxK+ MR3RD9MPZfaZ+LF5UdzPFt/Zm0ozi5HHgMxQC89HsUBqMkE+yUrBb79r7yQICuRm9Cye ppNw== 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=b7BZv7wZ9Ulx59n4DSYJZYoiKa6f4wWEp1z6icNJqHU=; fh=3O2JF6iahKgWvMoDK2KqHKlMI4rdTt0fAvBGN0QhHG0=; b=UNysMMiHd4sATJcAl6ZJBtHVrpQKYX+YlItc5ajP/RJmvLquaT/jGx0DDsR8PmAMBb +/Q1JDig2Oa6Z+CltpcA5I9B+kMGDmug0Eqj+8CWBDmBvDSGgEPVJQXZ5f4FGADHifSu X/e1Kk/0RbpiT4eM7Qtev/eICGpvLsjfpwfMfnwiY0IOzaBApuiqo5siv7yv3AOCQST/ uvi4mWYkQaGxGnhpqvnVsMhK3WXDEXf7GwcMtDbJr0N9LOq0/YwTVNF4r9Pw/7tVXw7U A3O0AYsg+AUcUY7rxoD2kaoC0Jeyu9BDWBUB7YjnM5nLMCa0Ef4XwBpWPT3dmo6fSu+s j4rQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=owbr9Ll3; 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 jw10-20020a170903278a00b001b8c689793fsi2423342plb.514.2023.07.18.18.35.58; Tue, 18 Jul 2023 18:36:10 -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=@kernel.org header.s=k20201202 header.b=owbr9Ll3; 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 S229698AbjGSBBx (ORCPT + 99 others); Tue, 18 Jul 2023 21:01:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229511AbjGSBBw (ORCPT ); Tue, 18 Jul 2023 21:01:52 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F7C6136 for ; Tue, 18 Jul 2023 18:01:51 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E0611615E7 for ; Wed, 19 Jul 2023 01:01:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C750AC433C7; Wed, 19 Jul 2023 01:01:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689728510; bh=DErPakduFqhgq+XgSW/ZrwNOszO28tTHkZXEYy5pKSc=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=owbr9Ll38m9telfzm+Q+UeIGv0gZ+QJBwa+XOR/u3k/zDw3jyTdT12TSkk8Nv9vbm 1L86mr3GPnXaV0zf20IU2MZmEGMa10XbA7MuKNwRwcSukUfm4R6LLmn48puNGKGz2R NUiWOom2OsnEU/v1r40sroRLsDDtNdZ3gTi6yS4BwsmdB2O5fw3uyoCkzJReuu4sw+ dGbbt+sRIqE5U+u98C9yKylCnrloFczRmCFDKcknY8euiE5hJSobXs7HvyulGvDFb5 8iOOA3iJ4NYJa0+6xt3Os7VZRXBB8ykzMIdC8YxkCbLKJsVeL6h7j3q4NG0nIVaYRo PYwSGTYEhV+FQ== Date: Tue, 18 Jul 2023 18:01:48 -0700 From: Jakub Kicinski To: Giuseppe Cavallaro Cc: Jisheng Zhang , Alexandre Torgue , Jose Abreu , "David S . Miller" , Eric Dumazet , Paolo Abeni , Maxime Coquelin , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@lists.linux.dev Subject: Re: [PATCH net-next v5 0/2] net: stmmac: improve driver statistics Message-ID: <20230718180148.4fe125d9@kernel.org> In-Reply-To: <20230717160630.1892-1-jszhang@kernel.org> References: <20230717160630.1892-1-jszhang@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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,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 On Tue, 18 Jul 2023 00:06:28 +0800 Jisheng Zhang wrote: > improve the stmmac driver statistics: > > 1. don't clear network driver statistics in .ndo_close() and > .ndo_open() cycle > 2. avoid some network driver statistics overflow on 32 bit platforms > 3. use per-queue statistics where necessary to remove frequent > cacheline ping pongs. > > NOTE: v1 and v2 are back ported from an internal LTS tree, I made > some mistakes when backporting and squashing. Now, net-next + v3 > has been well tested with 'ethtool -s' and 'ip -s link show'. Giuseppe, please take a look.