From mboxrd@z Thu Jan 1 00:00:00 1970 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 C80CE1D61A1; Thu, 27 Feb 2025 03:43:12 +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=1740627792; cv=none; b=YNxVzTYqUEMFZXEVg668c9e+Jc5jPm7aSNNMxTnbryfiEW20rH9CByHrlQ27ZOJA8Ym8tDOrohLVOTnZH0MNFP6oM98vR60NGpO1N94Ks9abZSKwrvt6YCAC11gHMtizWVHrqj+J3w/tu1hBfz84S/oWMVnHpYzEl6gqZvigpBg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740627792; c=relaxed/simple; bh=HRAUJZiaXmc4gvllAhWu+rvpOk514k1RBIfgmxusrUo=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=K6E7hyw8bwDziIK2uClzuSn/aM9ScPXxGjR5jjcm8Fbbp8a/prIq0tLhOr8yAXN2oGAyTVfJtMkqo6IK2ubbOIeas/a+fDl1HstQOWIgcTrRE9AufBffsYtHPxOL3TATdiFXh5US/DtZin1scun/+Ft8/A+n8jVmq5qTAE4psM0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=dtmgAtm+; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="dtmgAtm+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9152BC4CEDD; Thu, 27 Feb 2025 03:43:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1740627792; bh=HRAUJZiaXmc4gvllAhWu+rvpOk514k1RBIfgmxusrUo=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=dtmgAtm+Qe2PheNsliaKRMSteSGk5zN7eklfKXZ8ucTjoq/tFgrq23nfNLtEFuPJd 5vGDqgp0mJkY0URP8UVPlmOKF6rT4poVrSntpgkNHclC6tbtLPvghLxBavUCUZzWoz hRqGJ29uPhdG3NYkMSaiH1BBaHg04ei1MwlCyGLX/f+eJZ/YUpN6gxdMOwfXhOJSdP J7MmCZreolXJdyZbAlZ4ICWvgzIOZPb6VlMDp+HFEFu4WjD2yA1ATKKbNQLNcVKdbd jOuB0zd4ixcsqyiQX2NwkIubjFHu1e6R1IoAhI9dJMA/JwTrvNWe6rFVJ3bJhHaxwI skTFGGCISA09Q== Date: Wed, 26 Feb 2025 19:43:10 -0800 From: Jakub Kicinski To: Lorenzo Bianconi Cc: Andrew Lunn , "David S. Miller" , Eric Dumazet , Paolo Abeni , Felix Fietkau , Sean Wang , Matthias Brugger , AngeloGioacchino Del Regno , Philipp Zabel , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "Chester A. Unal" , Daniel Golle , DENG Qingfang , Andrew Lunn , Vladimir Oltean , netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, upstream@airoha.com, Sayantan Nandy Subject: Re: [PATCH net-next v7 13/15] net: airoha: Introduce flowtable offload support Message-ID: <20250226194310.03398da0@kernel.org> In-Reply-To: <20250224-airoha-en7581-flowtable-offload-v7-13-b4a22ad8364e@kernel.org> References: <20250224-airoha-en7581-flowtable-offload-v7-0-b4a22ad8364e@kernel.org> <20250224-airoha-en7581-flowtable-offload-v7-13-b4a22ad8364e@kernel.org> Precedence: bulk X-Mailing-List: netdev@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 Mon, 24 Feb 2025 12:25:33 +0100 Lorenzo Bianconi wrote: > + foe_size = PPE_NUM_ENTRIES * sizeof(struct airoha_foe_entry); > + ppe->foe = dmam_alloc_coherent(eth->dev, foe_size, &ppe->foe_dma, > + GFP_KERNEL | __GFP_ZERO); dmam_alloc_coherent() always zeros the memory, the GFP_ZERO is not necessary