The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH net-next v2 0/2] xsk: respect the offsets when copying frags
@ 2025-04-26  8:12 Bui Quang Minh
  2025-04-26  8:12 ` [PATCH net-next v2 1/2] " Bui Quang Minh
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Bui Quang Minh @ 2025-04-26  8:12 UTC (permalink / raw)
  To: netdev
  Cc: Alexei Starovoitov, Daniel Borkmann, David S. Miller,
	Jakub Kicinski, Jesper Dangaard Brouer, John Fastabend,
	Eric Dumazet, Paolo Abeni, Simon Horman, Maciej Fijalkowski,
	Alexander Lobakin, bpf, linux-kernel, Bui Quang Minh

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-04-29 21:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-26  8:12 [PATCH net-next v2 0/2] xsk: respect the offsets when copying frags Bui Quang Minh
2025-04-26  8:12 ` [PATCH net-next v2 1/2] " Bui Quang Minh
2025-04-26  8:12 ` [PATCH net-next v2 2/2] xsk: convert xdp_copy_frags_from_zc() to use page_pool_dev_alloc() Bui Quang Minh
2025-04-29 21:40 ` [PATCH net-next v2 0/2] xsk: respect the offsets when copying frags patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox