mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-10-22 23:13:01 +02:00
xsk: add missing virtual address conversion for page
In commit7ead4405e0
("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. Fixes:7ead4405e0
("xsk: convert xdp_copy_frags_from_zc() to use page_pool_dev_alloc()") Reviewed-by: Alexander Lobakin <aleksander.lobakin@intel.com> Signed-off-by: Bui Quang Minh <minhquangbui99@gmail.com> Link: https://patch.msgid.link/20250522040115.5057-1-minhquangbui99@gmail.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
This commit is contained in:
parent
35a7a2f555
commit
28fcb4b56f
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user