Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp884492lqb; Wed, 17 Apr 2024 13:44:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXC6j6LHd8Ue/HUft/3ckFQ98e4ofD5ju/ClUNzbZxBTgUavNXmXDrAInK0pS5xWdAkAbmhNActc2zCnvRou2YNhBEuLz831GuagIBQqQ== X-Google-Smtp-Source: AGHT+IF8Fhf9mHQ8Gm6TPY8yQ8QaUdtIHlt5+dEF1WHuBVZFKQtEO0HPqBvlCD4sdXNtGQjzDKGj X-Received: by 2002:a05:6a20:7344:b0:1a7:39a8:6ca4 with SMTP id v4-20020a056a20734400b001a739a86ca4mr1194389pzc.29.1713386676234; Wed, 17 Apr 2024 13:44:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713386676; cv=pass; d=google.com; s=arc-20160816; b=TjQIM0PMlm+lIbjhLwqxCNKAtKfRNZEHb71/lfJhZ6aX008aGug+eRrsIUxhpYMzMf 5XsfDxl/eC9i6ltGVlPGGjhRkDSbeQFUldj56nEoAHpgvzwIvYPnmC+mKUvTNDeGY6BH EYoixzVaSjjnhEJx2RyiciaJVuOKfqTMsOsOTz20V86Tr5gD1h0r+Moh7mkBPiAy87aS OrbSNVJvpW23NC1Zat648kDiahJNtHxi+v/+SVjtXN4RJAUW9e1bfdrFqO0E0+QkmTcu T5mUTU6L/z9r+nti1kchBqpikc9sY6ydrEiacIZOU+3Ntm7+itHe/Mgo8BsXsM+ke1Y/ x75A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=LsdRJ8pculNv4SW+GVs8u8MXg6zpvIz7YcU5QvGxP2M=; fh=GhhMYD90kZPdokPXj2TYEitibU8jpLwpuisbuxfB97k=; b=V351fgEmzlYkwH/KltgKsvomFkelb3Kr+bSyGOmVlZogoxtxo+0kDobyhGqvMbAxzB Cf/HTB/8M76jwI2c46qlZRjCieOfztWevz6ZibjAY5JCDCXL5/B35K1HFWB6ZyFZXx7n EHId+TJ8yAS+Mq1tBzIK9KKZW0MKR8zF6Nva459vr4f65uM46pa6o8+z1TDF7VXuDRdL E/x5L6QonhJs6Xb11RBX5Znyddu+AjwevNt81DAQWYExPHytZGRpzdGRF3VH31pLrCUM PZJcceOS3iQ2few2XFRvcQz/Om9Kqcvi/QuNABjj/nK4eUl2BZNUcS4FPyXh8hca4UER kHRw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UdCu2ba6; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-149193-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-149193-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id b17-20020a170902e95100b001e60ab1cbe8si60845pll.527.2024.04.17.13.44.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 13:44:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-149193-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UdCu2ba6; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-149193-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-149193-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 0F14128A1D0 for ; Wed, 17 Apr 2024 20:34:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2F50B44C94; Wed, 17 Apr 2024 20:34:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="UdCu2ba6" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 45A8C1E48B; Wed, 17 Apr 2024 20:34:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713386075; cv=none; b=ivOnWBSiaQIEmhIed6A9yT3sHMpFFD8OHCsBVmw57Ml7+V40XcXiv+8nma94BJ5LZ5Ppqti8wcJZCKf4aw74N/DJtVPdhHk9NWpSyZtuLQPRJ0EKk3utz9I4whcIb2o0y6AfCcVYd3eScAJsRe+kPaFe2gddAvq+6rHrgW30BPY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713386075; c=relaxed/simple; bh=EtXU9c2X1rus7AR+E4QdwNGG0e/acH591nahmvg0zE4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=cQ0qmJlORzksu2SLIenqxmFxkUJDZ8zNwMydfFs3ZTzbfPa/Mb3BHat/GquZLF89pAZD5V6qy0E9t+zBo+uZsyZiShSBEabEquKebflfw/eQRYjY4pOaF3heATGSPI2TZDLsQRtS/OK71DaajpuW2ZJgA0mObTyDHMkPlmRKto0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=UdCu2ba6; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5A5F7C072AA; Wed, 17 Apr 2024 20:34:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713386074; bh=EtXU9c2X1rus7AR+E4QdwNGG0e/acH591nahmvg0zE4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=UdCu2ba6hcAPeyyocbmuIrgN5vfGx7tuIbgJfByfWkWqHYsEwRAIdQ6ytJq6qoujB bsbrHf2dKw7omIuXKr+I2wZYriYo0KCsj6bDBPo9czZMETYAxI0IMoiR1rM5F+PXNj CmY5wXIT5HnK0/PfHPLzkr0mx1qD5reZ0JPAiYjzHigqYf05CiIIkw3K+36Gzrmzo2 kcI6tEMbG0iGw7aJPAmP4hANxV/JlUCIlvcu/XOST3DWZ0UCRvrSTq7Vw2Xmz6G6QZ OO6q+2/jDKduzXDMsXDZ5Wr8dvI6SHg3+chjSY+nu6MLu09Gh0BRoEqBa/ItI7f1ur 88qMoDIwMeMtA== Date: Wed, 17 Apr 2024 21:34:30 +0100 From: Simon Horman To: Florian Fainelli Cc: Markus Elfring , Justin Chen , bcm-kernel-feedback-list@broadcom.com, netdev@vger.kernel.org, kernel-janitors@vger.kernel.org, LKML , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Subject: Re: [PATCH net] net: bcmasp: fix memory leak when bringing down if Message-ID: <20240417203430.GB3935777@kernel.org> References: <20240412181631.3488324-1-justin.chen@broadcom.com> <6881c322-8fbb-422f-bdbb-392a83d0b326@web.de> <9afad2b3-38a5-470d-a66f-10aa2cba3bab@broadcom.com> <8ae97386-876f-45cf-9e82-af082d8ea338@web.de> <20240417161933.GA2320920@kernel.org> <3a5cb80e-7169-4e82-b10c-843ff1eb0fd3@broadcom.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <3a5cb80e-7169-4e82-b10c-843ff1eb0fd3@broadcom.com> On Wed, Apr 17, 2024 at 09:52:47AM -0700, Florian Fainelli wrote: > On 4/17/24 09:19, Simon Horman wrote: > > On Mon, Apr 15, 2024 at 09:46:44PM +0200, Markus Elfring wrote: > > > > > > When bringing down the TX rings we flush the rings but forget to > > > > > > reclaimed the flushed packets. This lead to a memory leak since we > > > > > > do not free the dma mapped buffers. … > > > > > > > > > > I find this change description improvable. > > > > > > > > > > * How do you think about to avoid typos? > > > > > > > > > > * Would another imperative wording be more desirable? > > > > > > > > The change description makes sense to me. Can you be a bit more specific as to what isn't clear here? > > > > > > Spelling suggestions: > > > + … forget to reclaim … > > > + … This leads to … > > > > Markus, let's cut to the chase. > > > > What portion of your responses of this thread were produced > > by an LLM or similar technology? > > > > The suggestions in your second email are correct. > > But, ironically, your first response appears to be grammatically incorrect. > > > > Specifically: > > > > * What does "improvable" mean in this context? > > I read it as "improbable", but this patch came out of an actual bug report > we had internally and code inspection revealed the leaks being plugged by > this patch. > > > * "How do you think about to avoid typos?" > > is, in my opinion, grammatically incorrect. > > And, FWIW, I see no typos. > > There was one, "This lead to a memory leak" -> "This leads to a memory leak" > > > * "Would another imperative wording be more desirable?" > > is, in my opinion, also grammatically incorrect. > > > > And yet your comment is ostensibly about grammar. > > I'm sorry, but this strikes me as absurd. > > Yeah, I share that too, if you are to nitpick on every single word someone > wrote in a commit message, your responses better be squeaky clean such that > Shakespeare himself would be proud of you. > > There is a track record of what people might consider bike shedding, others > might consider useless, and others might find uber pedantic comments from > Markus done under his other email address: elfring@users.sourceforge.net. > > Me personally, I read his comments and apply my own judgement as to whether > they justify spinning a new patch just to address the feedback given. He has > not landed on my ignore filter, but of course that can change at a moments > notice. Thanks Florian, On reflection, my previous email was inappropriate. I do have reservations about the review provided by Markus, but should not reacted as I did. I apologise to every for that.