Thread (10 messages) 10 messages, 3 authors, 2025-09-30

Re: [PATCH net] xdp: use multi-buff only if receive queue supports page pool

From: Jakub Kicinski <kuba@kernel.org>
Date: 2025-09-30 17:41:31
Also in: bpf

On Mon, 29 Sep 2025 17:01:49 -0700 Octavian Purdila wrote:
        local_lock_nested_bh(&system_page_pool.bh_lock);
-       err = skb_cow_data_for_xdp(this_cpu_read(system_page_pool.pool), pskb, prog);
+       pool = this_cpu_read(system_page_pool.pool);
+       err = skb_cow_data_for_xdp(pool, pskb, prog);
+       rxq->mem.type = MEM_TYPE_PAGE_POOL;
+       rxq->mem.id = pool->xdp_mem_id;
        local_unlock_nested_bh(&system_page_pool.bh_lock);
Yes, LGTM. I _think_ that only skb_cow_data_for_xdp() has to be under
the lock here, but doesn't really matter.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help