🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #4578

Re: [PATCH net-next] net/mlx5: Remove redundant memset after kvzalloc

#4578
From: Simon Horman
Date: Sun, 18 Oct 2026 15:13
18 lines
6073 bytes
On Tue, Oct 13, 2026 at 12:03:10AM +0900, Sang-Heon Jeon wrote:
> kvzalloc() returns zeroed memory, so the memset after the allocation in
> mlx5e_post_meter_create_mtu_table() and macsec_fs_tx_create() is
> redundant.
> 
> So remove the memset.
> 
> No functional change.
> 
> Signed-off-by: Sang-Heon Jeon <ekffu200098@gmail.com>

Hi Sang-Heon,

I'm not sure if the value this cleanup brings is worth the churn.
But I do believe it is correct.

Reviewed-by: Simon Horman <horms@kernel.org>
Technical Details
Message-ID: <20261018151325.GP503057@horms.kernel.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-348070-linux-kernel-netdev=dewy.ru
References: <20261012150311.555104-1-ekffu200098@gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-348070-linux-kernel-netdev=dewy.ru
From: horms@kernel.org (Simon Horman)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next] net/mlx5: Remove redundant memset after kvzalloc
Date: Sun, 18 Oct 2026 16:13:25 +0100
Organization: Usenet Network
Message-ID: <20261018151325.GP503057@horms.kernel.org>
References: <20261012150311.555104-1-ekffu200098@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="3353384"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:4Po1KnI+e+iTB82i5AC3MFWpv1Y= sha256:nfq1P+xZZdPkYfOqDkgWL+DGiQyL7w+FiwV+KsIZA+w=
	sha1:5NOgWv56+Op6IVE4M9L1KVJwM9c= sha256:V6sICPwkP+6kjFkKAbWKPm7sNapLr7AE5bt4WvJfARI=
Content-Disposition: inline
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id E99CE11082E; Sun, 18 Oct 2026 18:13:49 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.74
X-Spam-Status: No, score=-3.74 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.34, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=kernel.org
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id xQ0A60TUGa7p;
	Sun, 18 Oct 2026 18:13:47 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-348070-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])
	by mail.dewy.ru (Postfix) with ESMTPS id 165DD1107D8; Sun, 18 Oct 2026 18:13:38 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
	by sin.lore.kernel.org (Postfix) with ESMTP id C05E528431; Sun, 18 Oct 2026 15:13:32 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 514C24BF959;
	Sun, 18 Oct 2026 15:13:31 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Aai4Or3/"
X-Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18])
	(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 5841435C68C;
	Sun, 18 Oct 2026 15:13:30 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18
X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
	t=1792336411; cv=none; b=FxJX0rEG+npnNsW7aZt24gfrLn6oNdxDi8q/y7h5kQLZhn6I+ZuRisrfaX8v0bQPHpyNXmkSqekXGFaqJiimoMPpc6uAyAdHyDoz6svm3U32RQ3r+DE4riDcD3/syt+ao8y7c6Awmhu9z3oX8/Nj818tW9SbOjLl0Nx0+XTqMzo=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1792336411; c=relaxed/simple;
	bh=U7VgBonWvdSl8FluRyON3Hb2KOF19VzseGsJtL5EYTw=;
	h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:
	 Content-Type:Content-Disposition:In-Reply-To; b=e72pTpdIrDQOztrxqyhkoOKDdzzAy1bLDqtCM9K1uc3RiQ/UIhjYThrErSaGZ6g48kmZFxIMOhUaiZnKPHm807mOwbOz+Cn4guEsKegVXHIiZg1ScMPd3G3fFJ0ZQcr7sAOkf8wGWfDZlF0W7ydOJz7Xhhd2eq1aQ1v0YyjDesY=
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Aai4Or3/; arc=none smtp.client-ip=100.103.45.18
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id E8A851F000C4;
	Sun, 18 Oct 2026 15:13:27 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1792336410;
	bh=6nm3/heRuld0tUqrdNjEQiwVkJeGyevZGRjtlCGwWXA=;
	h=Date:From:To:Cc:Subject:References:In-Reply-To;
	b=Aai4Or3/VOS+ihemGgmjI1GmOze29H6ugG+DgUmJhoPFXTHMSo9r6pPMX3sj+YLad
	 jAujbsXVdzST+GIVzneAps0mkILhkJTQUhDzFmWNOrq1Mc9dPJffbEsSJBmskVKZlb
	 5qpjCdUtYUKGHRmcEQPgtDSFl5wuRYegwMc5CBRNnc6iFE6KCXc/+yeXtK2erqzZYu
	 cUthx6NVFNx9W7KRS8srIBjOv6T3cR7H/NHnXdWEfSNLCIjEZJ65YTheOprrJfxXUW
	 3q4zn/VTKLsXG/t6ZJCh5rlbQVuWag0jEZOwvmKGPTEVdR9+HkS2meJH4jWwQs6C7D
	 JHKXF/+ZB6lYA==
X-Cc: Andrew Lunn <andrew+netdev@lunn.ch>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@kernel.org>,
	Jakub Kicinski <kuba@kernel.org>, Leon Romanovsky <leon@kernel.org>,
	Mark Bloch <mbloch@nvidia.com>, Paolo Abeni <pabeni@redhat.com>,
	Sabrina Dubroca <sd@queasysnail.net>,
	Saeed Mahameed <saeedm@nvidia.com>,
	Tariq Toukan <tariqt@nvidia.com>, linux-rdma@vger.kernel.org,
	netdev@vger.kernel.org
X-Precedence: bulk
X-Mailing-List: netdev@vger.kernel.org
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-In-Reply-To: <20261012150311.555104-1-ekffu200098@gmail.com>