Re: [PATCH net-next 03/16] libeth: xdp: add XDP_TX buffers sending

From
Alexander Lobakin <aleksander.lobakin@intel.com>
Date
2025-05-28 14:57:27
Also in
bpf
Reply to
Jakub Kicinski, 2025-05-28
From: Jakub Kicinski <kuba@kernel.org>
Date: Tue, 27 May 2025 19:03:09 -0700
On Tue, 20 May 2025 13:59:04 -0700 Tony Nguyen wrote:
quoted
+	if (sinfo || !netmem_is_net_iov(netmem)) {
+		const struct page_pool *pp = __netmem_get_pp(netmem);
+
+		dma_sync_single_for_device(pp->p.dev, desc.addr, desc.len,
+					   DMA_BIDIRECTIONAL);
+	}
How can we get an unreadable netmem into the XDP Tx path?
For now, it's not allowed. This is future proof. I have plans to allow
XDP and devmem to co-exist when the XDP program doesn't want to access
frags, only headers. In that case, why forbid?

Thanks,
Olek
Thread (26 messages) 26 messages, 4 authors, last reply 2025-05-29
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help