[PATCH net-next v2 0/2] xsk: respect the offsets when copying frags

From: Bui Quang Minh
Date: Sat Apr 26 2025 - 04:13:57 EST


Hi everyone,

In commit 560d958c6c68 ("xsk: add generic XSk &xdp_buff -> skb
conversion"), we introduce a helper to convert zerocopy xdp_buff to skb.
However, in the frag copy, we mistakenly ignore the frag's offset. This
series adds the missing offset when copying frags in
xdp_copy_frags_from_zc(). This function is not used anywhere so no
backport is needed.

This series also makes xdp_copy_frags_from_zc() use page allocation API
page_pool_dev_alloc() instead of page_pool_dev_alloc_netmem() to avoid
possible confusion of the returned value.

Thanks,
Quang Minh.

Bui Quang Minh (2):
xsk: respect the offsets when copying frags
xsk: convert xdp_copy_frags_from_zc() to use page_pool_dev_alloc()

net/core/xdp.c | 17 +++++++++--------
1 file changed, 9 insertions(+), 8 deletions(-)

--
2.43.0