xsk: add missing virtual address conversion for page
Subsystems (4)
PATCH v2 1/1 xsk: add missing virtual address conversion for page
In commit 7ead4405e06f ("xsk: convert xdp_copy_frags_from_zc() to use page_pool_dev_alloc()"), when converting from netmem to page, I missed a call to page_address() around skb_frag_page(frag) to get the virtual address of the page. This commit uses skb_frag_address() helper to fix the issue.
---
Changes in v2:
- Add Fixes tag
net/core/xdp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
net/core/xdp.c +1 -2
@@ -709,8 +709,7 @@ static noinline bool xdp_copy_frags_from_zc(struct sk_buff *skb,return false; } -memcpy (page_address (page) + offset, -skb_frag_page (frag) +skb_frag_off (frag), +memcpy (page_address (page) + offset,skb_frag_address (frag),LARGEST_ALIGN (len));__skb_fill_page_desc_noacc (sinfo, i, page, offset, len);
Signature · 1 line
2.43.0
This patch was applied to netdev/net-next.git (main) by Paolo Abeni <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by Paolo Abeni <[email protected]>:
Quoted 11 lines · On Thu, 22 May 2025 11:01:15 +0700 you wrote:
In commit
7ead4405e06f("xsk: convertxdp_copy_frags_from_zc()to usepage_pool_dev_alloc()"), when converting from netmem to page, I missed a call topage_address()aroundskb_frag_page(frag)to get the virtual address of the page. This commit usesskb_frag_address()helper to fix the issue.Fixes 7ead4405e06f ("xsk: convert xdp_copy_frags_from_zc() to use page_pool_dev_alloc()")Reviewed-by Alexander Lobakin <[email protected]>Signed-off-by Bui Quang Minh <[email protected]>[...]
Here is the summary with links:
- [v2,net-next] xsk: add missing virtual address conversion for page
https://git.kernel.org/netdev/net-next/c/28fcb4b56f92
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html