[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250426081220.40689-1-minhquangbui99@gmail.com>
Date: Sat, 26 Apr 2025 15:12:18 +0700
From: Bui Quang Minh <minhquangbui99@...il.com>
To: netdev@...r.kernel.org
Cc: Alexei Starovoitov <ast@...nel.org>,
Daniel Borkmann <daniel@...earbox.net>,
"David S. Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>,
Jesper Dangaard Brouer <hawk@...nel.org>,
John Fastabend <john.fastabend@...il.com>,
Eric Dumazet <edumazet@...gle.com>,
Paolo Abeni <pabeni@...hat.com>,
Simon Horman <horms@...nel.org>,
Maciej Fijalkowski <maciej.fijalkowski@...el.com>,
Alexander Lobakin <aleksander.lobakin@...el.com>,
bpf@...r.kernel.org,
linux-kernel@...r.kernel.org,
Bui Quang Minh <minhquangbui99@...il.com>
Subject: [PATCH net-next v2 0/2] xsk: respect the offsets when copying frags
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
Powered by blists - more mailing lists