Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3329780rdb; Wed, 13 Sep 2023 08:51:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEI1yYJPkcAIRqUfe/1ddoQ+h1ltHm/yDm/JeFNPLAGOBtAZ6iq8ezv2FS88zpYkwLc6CFd X-Received: by 2002:a17:902:6a89:b0:1bf:8779:e045 with SMTP id n9-20020a1709026a8900b001bf8779e045mr2789845plk.50.1694620290534; Wed, 13 Sep 2023 08:51:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694620290; cv=none; d=google.com; s=arc-20160816; b=iHBw/Hv6JcXKEPHyJByKtn/RJDAZlXAEb+o11bag2ndSQB8EJugu6I3Y0FyMnbQheu pttAqF0Li7UPdC5zacNCRJ2lOYOep3MAIip4e0xXE0kQpIp4mPGY/QckjJXYNqRa//Vy UeckxNn1/QLPF2yPLTeeAmYij6sWsi8BaUN2WBxLIdQYJagCN1KmMHZcKvUJaEBMmcNv lAAFSPAoisxIp1s8TrBd6YeXturcMUbkRwGXRDUr76GS9Q0pqOMX+7BaCsMNhMec36WA anR5BmqOJRWarpIgVAi6VR3cYMfT5n50R+MSAhk1iUCJzQ9UvODXNJLElK6tS+nMZy0p WYIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=AKHZcby/SaXTGDFhOnska1CWWaoisj9GGC+K/yEWJ4Q=; fh=LkwJm4H1TBpBC2cekqbjg3AkBAy+idUCSyMasoAV5J0=; b=A23QcV7j54vrko+czudxDValex8KK4hFVjbBLMbL0bhPLouIo7yCQR40Ji+FEKeUjp pzFe/IOMhQILaECoABKzLho52S/9enAVV/AXbAW5G4ivVn+pDs9H+m6DT+mnbF+DMRaG 8ANEu3WSmsUSiATcl+jiPBamLtsFqcdctM6RMvOTkMxSB8b+PJEej07fuLtcUnr2axdP d0Qg5d1njyxTf2vK0/0+Us32B9cqfalCkeJwXPyhO7mGW0fqhXJOccQwh+mM7ht9bEJg 7Gx8Gn4VMLiR4+VkeP6FQw6hwRCTzAeErXHsCuv0pivoltNnv2qamgh0nBVR8GBBIhrF vazw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=kwDyAT00; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id n13-20020a170902d2cd00b001c3b2d40b3csi6603309plc.330.2023.09.13.08.51.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 08:51:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=kwDyAT00; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id C3E3D81FD2A2; Wed, 13 Sep 2023 07:49:56 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240825AbjIMOt4 (ORCPT + 99 others); Wed, 13 Sep 2023 10:49:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237004AbjIMOtz (ORCPT ); Wed, 13 Sep 2023 10:49:55 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:242:246e::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1FB16AB; Wed, 13 Sep 2023 07:49:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=MIME-Version:Content-Transfer-Encoding: Content-Type:References:In-Reply-To:Date:Cc:To:From:Subject:Message-ID:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=AKHZcby/SaXTGDFhOnska1CWWaoisj9GGC+K/yEWJ4Q=; t=1694616591; x=1695826191; b=kwDyAT00bHSpRwewzqF3UYKycN+H9le5OeUr0GJjzwXGNAU h6KBg/sh3ykqTeoF4NjxkEyCWwSpJM0OnavJ6wEaaBzcHJmCt8uaV9kVu/lqxIKJzLV3TPQuS0+Ha Llbc+X9sez0cSwhJb8Hm123z101sGgBtaDVXXxdUk5UZgM6lVQ6YDqOlFB/rCFmB6SMu1AhTn1sNU sHpW/KkYrBG3odYYgFXs3mD/fh7mOyMtRrj9CnvrtWDG8wpMOTe+j8LPBeK/NWR8yk6QoqJdXZjSg JgAjzXEUSYLZd+Ax56U7DW+F+SFC31a+pCQe8vZTU0Rbb0shfX59Vrbw1/FUnaPA==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96) (envelope-from ) id 1qgRBU-00F30o-2d; Wed, 13 Sep 2023 16:49:41 +0200 Message-ID: <27579950c5a5f9221e7b52524cbc8de97d8b90e0.camel@sipsolutions.net> Subject: Re: [REGRESSION] [PATCH net-next v5 2/2] net: stmmac: use per-queue 64 bit statistics where necessary From: Johannes Berg To: Jisheng Zhang Cc: Uwe =?ISO-8859-1?Q?Kleine-K=F6nig?= , Lucas Stach , Maxime Coquelin , Eric Dumazet , Samuel Holland , netdev@vger.kernel.org, "David S . Miller" , Alexandre Torgue , Jernej Skrabec , linux-kernel@vger.kernel.org, Chen-Yu Tsai , Jose Abreu , kernel@pengutronix.de, Giuseppe Cavallaro , Jakub Kicinski , Paolo Abeni , linux-sunxi@lists.linux.dev, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org Date: Wed, 13 Sep 2023 16:49:39 +0200 In-Reply-To: References: <20230717160630.1892-1-jszhang@kernel.org> <20230717160630.1892-3-jszhang@kernel.org> <20230911171102.cwieugrpthm7ywbm@pengutronix.de> <99695befef06b025de2c457ea5f861aa81a0883c.camel@pengutronix.de> <20230912092411.pprnpvrbxwz77x6a@pengutronix.de> <2fcc9fb0e40ceff8ea4ae55cca3ce0aff75a20ca.camel@sipsolutions.net> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 (3.48.4-1.fc38) MIME-Version: 1.0 X-malware-bazaar: not-scanned Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Wed, 13 Sep 2023 07:49:57 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email On Wed, 2023-09-13 at 22:34 +0800, Jisheng Zhang wrote: >=20 > Since we are in rc1, I need to fix the bug with as small changes as > possible. so another solution could be: replace rx/tx stats structure > with pointers, then setup pointers in the new allocated dma_conf with > the old one as current code did for dma_tx_size/dma_rx_size in > stmmac_setup_dma_desc(): >=20 > dma_conf->dma_tx_size =3D priv->dma_conf.dma_tx_size >=20 > Is it acceptable? I'm not sure who you're asking of all the people in this thread, but I honestly don't understand much about this driver other than what I gleaned in the few minutes looking at it with Uwe ... so I don't think I'm able to answer that question :) You could also just move the stats out of the structure entirely, I guess? And perhaps even start some new structure where more things might move in the future that shouldn't be reallocated? I'm all for not moving things now that haven't caused problems, but I guess doing a minimal fix just for the sake of being minimal in -rc1 wouldn't be my preference. johannes