mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-11 00:42:56 -04:00
idpf: access ->pp through netmem_desc instead of page
To eliminate the use of struct page in page pool, the page pool users should use netmem descriptor and APIs instead. Make idpf access ->pp through netmem_desc instead of page. Signed-off-by: Byungchul Park <byungchul@sk.com> Link: https://patch.msgid.link/20250721021835.63939-10-byungchul@sk.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
committed by
Jakub Kicinski
parent
c8d6830e32
commit
fc16f6a587
@@ -3276,8 +3276,10 @@ static u32 idpf_rx_hsplit_wa(const struct libeth_fqe *hdr,
|
||||
|
||||
hdr_page = __netmem_to_page(hdr->netmem);
|
||||
buf_page = __netmem_to_page(buf->netmem);
|
||||
dst = page_address(hdr_page) + hdr->offset + hdr_page->pp->p.offset;
|
||||
src = page_address(buf_page) + buf->offset + buf_page->pp->p.offset;
|
||||
dst = page_address(hdr_page) + hdr->offset +
|
||||
pp_page_to_nmdesc(hdr_page)->pp->p.offset;
|
||||
src = page_address(buf_page) + buf->offset +
|
||||
pp_page_to_nmdesc(buf_page)->pp->p.offset;
|
||||
|
||||
memcpy(dst, src, LARGEST_ALIGN(copy));
|
||||
buf->offset += copy;
|
||||
@@ -3296,7 +3298,7 @@ static u32 idpf_rx_hsplit_wa(const struct libeth_fqe *hdr,
|
||||
struct sk_buff *idpf_rx_build_skb(const struct libeth_fqe *buf, u32 size)
|
||||
{
|
||||
struct page *buf_page = __netmem_to_page(buf->netmem);
|
||||
u32 hr = buf_page->pp->p.offset;
|
||||
u32 hr = pp_page_to_nmdesc(buf_page)->pp->p.offset;
|
||||
struct sk_buff *skb;
|
||||
void *va;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user