Thread (31 messages) flat view 31 messages, 6 authors, 2025-08-29

Re: [PATCH net-next v2 2/9] xsk: add descs parameter in xskq_cons_read_desc_batch()

From: Jason Xing <hidden>
Date: 2025-08-26 00:11:25
Also in: bpf

On Tue, Aug 26, 2025 at 5:19 AM Maciej Fijalkowski
[off-list ref] wrote:
On Mon, Aug 25, 2025 at 09:53:35PM +0800, Jason Xing wrote:
quoted
From: Jason Xing <kernelxing@tencent.com>

Add a new parameter to let generic xmit call this interface in the
subsequent patches.

Prior to this patch, pool->tx_descs in xskq_cons_read_desc_batch() is
only used to store a small number of descs in zerocopy mode. Later
another similar cache named xs->desc_batch will be used in copy mode.
So adjust the parameter for copy mode.
Explain why you couldn't reuse tx_descs as-is. Pool can not work both in
copy and zero-copy modes at the same time so I don't see the reason why
you couldn't reuse this for your needs?
Oh, right, spot on. I can reuse them instead of creating similar
wheels. Let me try this way.

Thanks,
Jason
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help