diff options
| author | Byungchul Park <[email protected]> | 2025-07-21 02:18:25 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2025-07-24 00:46:54 +0000 |
| commit | 38a436d4e26487e16ac6c1de17c030b1bef84d83 (patch) | |
| tree | e8edcacb49540ee1916aebb2e31910e329278b9d /drivers/net/netdevsim/netdev.c | |
| parent | netmem: introduce struct netmem_desc mirroring struct page (diff) | |
| download | kernel-38a436d4e26487e16ac6c1de17c030b1bef84d83.tar.gz kernel-38a436d4e26487e16ac6c1de17c030b1bef84d83.zip | |
netmem: use netmem_desc instead of page to access ->pp in __netmem_get_pp()
To eliminate the use of the page pool fields in struct page, the page
pool code should use netmem descriptor and APIs instead.
However, __netmem_get_pp() still accesses ->pp via struct page. So
change it to use struct netmem_desc instead, since ->pp no longer will
be available in struct page.
While at it, add a helper, __netmem_to_nmdesc(), that can be used to
unsafely get pointer to netmem_desc backing the netmem_ref, only when
the netmem_ref is always backed by system memory.
Signed-off-by: Byungchul Park <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/net/netdevsim/netdev.c')
0 files changed, 0 insertions, 0 deletions
