On Mon, 29 Sep 2025 17:01:49 -0700 Octavian Purdila wrote:
quoted hunk ↗ jump to hunk
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.