Subject: Re: [PATCH net-next v9 2/5] eea: introduce ring and descriptor structures

From: Jakub Kicinski <[email-masked]>
Date: Mon, 3 Nov 2025 18:24:43 -0800

On Wed, 29 Oct 2025 16:01:42 +0800 Xuan Zhuo wrote:
> +static void *ering_alloc_queue(struct eea_device *edev, size_t size,
> +			       dma_addr_t *dma_handle)
> +{
> +	gfp_t flags = GFP_KERNEL | __GFP_NOWARN | __GFP_ZERO;
> +
> +	return dma_alloc_coherent(edev->dma_dev, size, dma_handle, flags);

dma_alloc_coherent() always zeros allocated memory you can drop the __GFP_ZERO.