From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9B765C3DA4B for ; Sat, 13 Jul 2024 22:36:23 +0000 (UTC) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=TNuN/KLn; dkim-atps=neutral Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4WM3GY5pwrz3dBZ for ; Sun, 14 Jul 2024 08:36:21 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=TNuN/KLn; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=kernel.org (client-ip=2604:1380:4641:c500::1; helo=dfw.source.kernel.org; envelope-from=kuba@kernel.org; receiver=lists.ozlabs.org) Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4WM3Fn3tplz30Ts for ; Sun, 14 Jul 2024 08:35:41 +1000 (AEST) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 336E360AF6; Sat, 13 Jul 2024 22:35:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 94C8BC4AF0F; Sat, 13 Jul 2024 22:35:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1720910134; bh=zQUxCqtUpN52n9YsEQxbjE8McWWkxC6aEh066/NralQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=TNuN/KLnVTqee778aHu2dlA7WIyvigcmlfKY3stUj1rxOvT9viyCQynS3KSfb+k1/ RHjfRTc7WJvIVjbmeNF0JUkZAPYIe9a4D6umdGtJ7lE6Ii8nf5k7z5zq6bHIFFrt3q 7BUAWXjpqb+EEMop9aGkLJQtwUk9k0+dwzQZS3K1v+tvtyrxUDVyDe4fuqrNLCSgDD 2kn8QjRQZYWVDxd8jt3VJSUtOf1tJ1ULaZNcDqQ5KmSc3Kl0rlIeubQQ6KhjwvPQxJ v0hn4oHGIyhL3Z/l1s1iubAF92LNani7LBkg1ZzJuVUZrU4IX195xsBvKmGHwL6dxI g3PG5ueJCmocg== Date: Sat, 13 Jul 2024 15:35:32 -0700 From: Jakub Kicinski To: Vladimir Oltean Subject: Re: [PATCH net-next 2/5] net: dpaa: eliminate NR_CPUS dependency in egress_fqs[] and conf_fqs[] Message-ID: <20240713153532.28bf1320@kernel.org> In-Reply-To: <20240710230025.46487-3-vladimir.oltean@nxp.com> References: <20240710230025.46487-1-vladimir.oltean@nxp.com> <20240710230025.46487-3-vladimir.oltean@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Herbert Xu , Madalin Bucur , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Eric Dumazet , Breno Leitao , Paolo Abeni , linuxppc-dev@lists.ozlabs.org, "David S. Miller" , linux-arm-kernel@lists.infradead.org Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" On Thu, 11 Jul 2024 02:00:22 +0300 Vladimir Oltean wrote: > + priv->egress_fqs = devm_kcalloc(dev, dpaa_max_num_txqs(), > + sizeof(*priv->egress_fqs), > + GFP_KERNEL); > + if (!priv->egress_fqs) > + goto free_netdev; > + > + priv->conf_fqs = devm_kcalloc(dev, dpaa_max_num_txqs(), > + sizeof(*priv->conf_fqs), > + GFP_KERNEL); > + if (!priv->conf_fqs) > + goto free_netdev; Gotta set err before jumping -- pw-bot: cr