]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xsk: respect the offsets when copying frags
authorBui Quang Minh <minhquangbui99@gmail.com>
Sat, 26 Apr 2025 08:12:19 +0000 (15:12 +0700)
committerJakub Kicinski <kuba@kernel.org>
Tue, 29 Apr 2025 21:26:26 +0000 (14:26 -0700)
commitebaebc5eaf431f7daeeb0a6788a8480d42136df1
treed8802666869656e11796ca0d466f23076e381de7
parenteed848871c96d4b5a7b06307755b75abd0cc7a06
xsk: respect the offsets when copying frags

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
commit adds the missing offset when copying frags in
xdp_copy_frags_from_zc(). This function is not used anywhere so no
backport is needed.

Signed-off-by: Bui Quang Minh <minhquangbui99@gmail.com>
Link: https://patch.msgid.link/20250426081220.40689-2-minhquangbui99@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/xdp.c