Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp313248rdb; Thu, 1 Feb 2024 09:10:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IEua/Um6tLmLevGIPCYK7HO4XI4Dwwedo7qWBViKHMgywRFVI7frhmWGi+Xd4HLje3nvXkK X-Received: by 2002:a17:90b:814:b0:296:280e:7653 with SMTP id bk20-20020a17090b081400b00296280e7653mr1288815pjb.8.1706807400371; Thu, 01 Feb 2024 09:10:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706807400; cv=pass; d=google.com; s=arc-20160816; b=l8uoDx06CnS9nF77/ey4ZZ1Y7E3mqP3dmVA5Zup5D4Gs6rqW3IG1C3dc8M3rtfc/ZI jKBVaQSRlN9QOf4RDb0yNjTgP1qVZYX9dl+BJRRfacKCuwiS2wrlg7+piZAZhqOHNw89 T+ok7L3MhdtPAQIn0hxteq8g1ahdW04vMFbNht378I/669pHuUQitv2rqPe5Wl8KHnf0 FQ8y9SDrKRoXlp+LGl3ZF3OM6KG2U3tuNs8Wp61YRAf8cXdVj6Jf2x3oZgev0N0W64ki wt9kr2IXZBYL9FRw1igj0KBuZryG9RZqK9qV6faXMGnl/PweVfnQePqG7xRPoylttFzf gUaw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=0MojZCee9WNBLRHNhNRw1WvLhuFl5it6l2Lel4jN4DI=; fh=Fu6trNuNBR5fdwN12bOxO2iTslug3DrLs54vzB3TslU=; b=yRuXyGY51VgjOKMKeLr0aeY7LmtilgaHH98NUjiIwP4KC3CFIlNKMGoXBs0M0wH8zz YZix5QqGKglfhl107eWH6yyzAvOtc9zEXX37bsvEh+Ia2WXHNrZRUYXSZ7MdSW/mf2F3 g5BwB1qqQhuUWXjxwqWBqWXpRVVMg1m1/DQyfeIE+xrroluu67pjwDkJDSlbawGOmB0v bNp18xOHTBYs6n8poB0gGGzlqtMJUm0DBK4jg+ORacr5ZPLhxJTqnq8BoRunKeKUN/FJ VtObYDF4bwNKeMHUsQI/B28R8fP7lkMXNyP6+li+M2bHSOO2rIpmsGgiDBfw+2f+WS63 cJKQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=khzggZHU; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-48522-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48522-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=1; AJvYcCWGa3CmVdXwNm1W4w2YSk+vA/EyY5jEKxRVUDUxwFJ3f0pMEcedsN8RkyVubKAe9hnnDulnUC5FZ66aejnhhzod4wAenrw/UWQi70/Kag== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id x15-20020a17090aca0f00b0029615edd44bsi93282pjt.99.2024.02.01.09.09.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 09:10:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-48522-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=khzggZHU; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-48522-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48522-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 20B5EB2EDD2 for ; Thu, 1 Feb 2024 16:28:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 113995A4C3; Thu, 1 Feb 2024 16:27:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="khzggZHU" 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 36B817E0EC; Thu, 1 Feb 2024 16:27:18 +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=1706804839; cv=none; b=Cm8yDX0ZKM8GoJO1qTxEw0qLLuenCGVvoihNeO5wFglbcHkRHEiuqmFKIlOgZY6b6+WrVNGmfNljITOqM2P/XuCbpDuzccGspkP5sqUOd+OT5huVzMPSfaA5Po5W0w0k6LM+e/Nk1e5iYUS3BleXQA/a38bS1dXEbsnuiR9JTFw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706804839; c=relaxed/simple; bh=ahIUy8vso575myYmWIjBbi8GpodW9BmM9NcyKx4waB4=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=fkwbxPWhhLXnmAmsOSxhkxNCT2fuv/YRB1/qJnmPap0USkDbTNYBuZbi6HUE/OG8YqBZhsCtpaKoVU7DgFbsTKS5ruD/m5QSesWCioV4Hy3wo4whxEf35Wss7aihfJyH3VGgUeKZduiFpKNRHtua44iAsTdmpM/pO4/U3Xr7EZ4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=khzggZHU; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2F8F3C433F1; Thu, 1 Feb 2024 16:27:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706804838; bh=ahIUy8vso575myYmWIjBbi8GpodW9BmM9NcyKx4waB4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=khzggZHUGjInwLC9G46R08OzHghP+fg9MO1hJo3J9j+H7T69ZTh+YuZwXTDjORA18 D/3n5tq9F/RI7HvaVzrCU9xwQVbvpmznIOJYxSJGLlFWChctQXq0+lsRWQKVhinoj6 oV5rWDXoU8yTSmF9Raa9/M40cELR4iVTtmb0ujPu5VQNYZOJ8wQ1YMbKEB0OrXLsUz cNNEJmomfWzZO8gKka5/32H14whoMyyjchJQ0/ZwujMU998KJ/sdWOkJ4UeoinNr52 wbDbbWAHCSvimsiqeIzwbs5j6bodN9SKWFQGlIwBsakrTMiwPpbZGv0p56t8ueLskJ fbWQpapUZH1sw== Date: Thu, 1 Feb 2024 08:27:17 -0800 From: Jakub Kicinski To: Ratheesh Kannoth Cc: Simon Horman , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Sunil Kovvuri Goutham , "davem@davemloft.net" , "edumazet@google.com" , "pabeni@redhat.com" , "bcreeley@amd.com" , Subbaraya Sundeep Bhatta , Geethasowjanya Akula , Hariprasad Kelam , Suman Ghosh Subject: Re: [EXT] Re: [PATCH net v3] octeontx2-af: Initialize maps. Message-ID: <20240201082717.7b946987@kernel.org> In-Reply-To: References: <20240131024118.254758-1-rkannoth@marvell.com> <20240201093119.GB514352@kernel.org> 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=US-ASCII Content-Transfer-Encoding: 7bit On Thu, 1 Feb 2024 09:35:15 +0000 Ratheesh Kannoth wrote: > > The use of bitmap_zalloc()/bitmap_free() looks good to me. > > But for the kmalloc_array(..., GFP_KERNEL | __GFP_ZERO) cases I think > > kcalloc() is the way to go. > Kcalloc() is a wrapper around kmalloc_array(). Why do you think kcalloc() > Is better ? AFAICT this is not the first time you're questioning Simon's obviously correct feedback. Are you genuinely asking for an explanation why kcalloc() is better than kmalloc_array()? It's an equivalent to the standard C function, calloc(). The reviewers are the most valuable part of this community, we will not take frustrating them lightly :|