aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/page_pool_user.c
diff options
context:
space:
mode:
authorPavel Begunkov <[email protected]>2025-02-04 21:56:12 +0000
committerJakub Kicinski <[email protected]>2025-02-07 00:27:30 +0000
commit8d522566ae9cb3f0609ddb2a6ce3f4f39988043c (patch)
tree51ed459c111745e4541747f567c043aa67691ee9 /net/core/page_pool_user.c
parentLinux 6.14-rc1 (diff)
downloadkernel-8d522566ae9cb3f0609ddb2a6ce3f4f39988043c.tar.gz
kernel-8d522566ae9cb3f0609ddb2a6ce3f4f39988043c.zip
net: page_pool: don't cast mp param to devmem
page_pool_check_memory_provider() is a generic path and shouldn't assume anything about the actual type of the memory provider argument. It's fine while devmem is the only provider, but cast away the devmem specific binding types to avoid confusion. Reviewed-by: Jakub Kicinski <[email protected]> Reviewed-by: Mina Almasry <[email protected]> Signed-off-by: Pavel Begunkov <[email protected]> Signed-off-by: David Wei <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/core/page_pool_user.c')
-rw-r--r--net/core/page_pool_user.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/page_pool_user.c b/net/core/page_pool_user.c
index 6677e0c2e256..d5e214c30c31 100644
--- a/net/core/page_pool_user.c
+++ b/net/core/page_pool_user.c
@@ -356,7 +356,7 @@ void page_pool_unlist(struct page_pool *pool)
int page_pool_check_memory_provider(struct net_device *dev,
struct netdev_rx_queue *rxq)
{
- struct net_devmem_dmabuf_binding *binding = rxq->mp_params.mp_priv;
+ void *binding = rxq->mp_params.mp_priv;
struct page_pool *pool;
struct hlist_node *n;