Re: [PATCH net-next 6/9] netmem: remove __netmem_get_pp()

From
Ilias Apalodimas <ilias.apalodimas@linaro.org>
Date
2025-06-10 11:12:11
Also in
bpf, linux-mm, linux-rdma, lkml
Reply to
Byungchul Park, 2025-06-09
On Mon, 9 Jun 2025 at 07:32, Byungchul Park [off-list ref] wrote:
There are no users of __netmem_get_pp().  Remove it.

Signed-off-by: Byungchul Park <byungchul@sk.com>
Reviewed-by: Mina Almasry <redacted>
Reviewed-by: Toke Høiland-Jørgensen <redacted>
Reviewed-by: Pavel Begunkov <asml.silence@gmail.com>
---
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
quoted hunk ↗ jump to hunk
 include/net/netmem.h | 16 ----------------
 1 file changed, 16 deletions(-)
diff --git a/include/net/netmem.h b/include/net/netmem.h
index 65bb87835664..d4066fcb1fee 100644
--- a/include/net/netmem.h
+++ b/include/net/netmem.h
@@ -234,22 +234,6 @@ static inline struct net_iov *__netmem_clear_lsb(netmem_ref netmem)
        return (struct net_iov *)((__force unsigned long)netmem & ~NET_IOV);
 }

-/**
- * __netmem_get_pp - unsafely get pointer to the &page_pool backing @netmem
- * @netmem: netmem reference to get the pointer from
- *
- * Unsafe version of netmem_get_pp(). When @netmem is always page-backed,
- * e.g. when it's a header buffer, performs faster and generates smaller
- * object code (avoids clearing the LSB). When @netmem points to IOV,
- * provokes invalid memory access.
- *
- * Return: pointer to the &page_pool (garbage if @netmem is not page-backed).
- */
-static inline struct page_pool *__netmem_get_pp(netmem_ref netmem)
-{
-       return __netmem_to_page(netmem)->pp;
-}
-
 static inline struct page_pool *netmem_get_pp(netmem_ref netmem)
 {
        return __netmem_clear_lsb(netmem)->pp;
--
2.17.1
Thread (40 messages) 40 messages, 9 authors, last reply 2025-06-20
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help