Subject: Re: [PATCH net-next 2/3] net: txgbe: support TX head write-back mode

From: Jakub Kicinski <[email-masked]>
Date: Mon, 20 Oct 2025 08:48:52 -0700

On Mon, 20 Oct 2025 16:26:08 +0800 Jiawen Wu wrote:
> +	tx_ring->headwb_mem = dma_alloc_coherent(tx_ring->dev,
> +						 sizeof(u32),
> +						 &tx_ring->headwb_dma,
> +						 GFP_KERNEL);
> +	if (!tx_ring->headwb_mem) {
> +		dev_info(tx_ring->dev, "Allocate headwb memory failed, disable it\n");
> +		return;
> +	}
> +
> +	memset(tx_ring->headwb_mem, 0, sizeof(u32));

drivers/net/ethernet/wangxun/libwx/wx_lib.c:2932:23-41: WARNING: dma_alloc_coherent used in tx_ring -> headwb_mem already zeroes out memory, so memset is not needed
-- 
pw-bot: cr