]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Merge branch 'xsk-respect-the-offsets-when-copying-frags'
authorJakub Kicinski <kuba@kernel.org>
Tue, 29 Apr 2025 21:26:29 +0000 (14:26 -0700)
committerJakub Kicinski <kuba@kernel.org>
Tue, 29 Apr 2025 21:26:30 +0000 (14:26 -0700)
commitd899e4d55f78901597c0a1ae453166fce2718cb8
tree1f22454378401f70b5dcbfc5f1c78615ab9196d9
parenteed848871c96d4b5a7b06307755b75abd0cc7a06
parent7ead4405e06f67bf2163fd4708a6ce0a495b1dca
Merge branch 'xsk-respect-the-offsets-when-copying-frags'

Bui Quang Minh says:

====================
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
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.
====================

Link: https://patch.msgid.link/20250426081220.40689-1-minhquangbui99@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>