From: Jakub Kicinski <kuba@kernel•org>
To: Xuan Zhuo <xuanzhuo@linux•alibaba.com>
Cc: netdev@vger•kernel.org, Andrew Lunn <andrew+netdev@lunn•ch>,
"David S. Miller" <davem@davemloft•net>,
Eric Dumazet <edumazet@google•com>,
Paolo Abeni <pabeni@redhat•com>, Wen Gu <guwen@linux•alibaba.com>,
Philo Lu <lulie@linux•alibaba.com>,
Lorenzo Bianconi <lorenzo@kernel•org>,
Vadim Fedorenko <vadim.fedorenko@linux•dev>,
Lukas Bulwahn <lukas.bulwahn@redhat•com>,
Geert Uytterhoeven <geert+renesas@glider•be>,
Vivian Wang <wangruikang@iscas•ac.cn>,
Troy Mitchell <troy.mitchell@linux•spacemit.com>,
Dust Li <dust.li@linux•alibaba.com>
Subject: Re: [PATCH net-next v9 2/5] eea: introduce ring and descriptor structures
Date: Mon, 3 Nov 2025 18:24:43 -0800 [thread overview]
Message-ID: <20251103182443.54a12faf@kernel.org> (raw)
In-Reply-To: <20251029080145.18967-3-xuanzhuo@linux.alibaba.com>
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.
next prev parent reply other threads:[~2025-11-04 2:24 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-29 8:01 [PATCH net-next v9 0/5] eea: Add basic driver framework for Alibaba Elastic Ethernet Adaptor Xuan Zhuo
2025-10-29 8:01 ` [PATCH net-next v9 1/5] eea: introduce PCI framework Xuan Zhuo
2025-11-04 2:23 ` Jakub Kicinski
2025-10-29 8:01 ` [PATCH net-next v9 2/5] eea: introduce ring and descriptor structures Xuan Zhuo
2025-11-04 2:24 ` Jakub Kicinski [this message]
2025-10-29 8:01 ` [PATCH net-next v9 3/5] eea: probe the netdevice and create adminq Xuan Zhuo
2025-10-29 8:01 ` [PATCH net-next v9 4/5] eea: create/destroy rx,tx queues for netdevice open and stop Xuan Zhuo
2025-10-29 8:01 ` [PATCH net-next v9 5/5] eea: introduce ethtool support Xuan Zhuo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251103182443.54a12faf@kernel.org \
--to=kuba@kernel$(echo .)org \
--cc=andrew+netdev@lunn$(echo .)ch \
--cc=davem@davemloft$(echo .)net \
--cc=dust.li@linux$(echo .)alibaba.com \
--cc=edumazet@google$(echo .)com \
--cc=geert+renesas@glider$(echo .)be \
--cc=guwen@linux$(echo .)alibaba.com \
--cc=lorenzo@kernel$(echo .)org \
--cc=lukas.bulwahn@redhat$(echo .)com \
--cc=lulie@linux$(echo .)alibaba.com \
--cc=netdev@vger$(echo .)kernel.org \
--cc=pabeni@redhat$(echo .)com \
--cc=troy.mitchell@linux$(echo .)spacemit.com \
--cc=vadim.fedorenko@linux$(echo .)dev \
--cc=wangruikang@iscas$(echo .)ac.cn \
--cc=xuanzhuo@linux$(echo .)alibaba.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox