]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: add helper to pre-check if PP for an Rx queue will be unreadable
authorJakub Kicinski <kuba@kernel.org>
Mon, 1 Sep 2025 21:12:10 +0000 (14:12 -0700)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 4 Sep 2025 08:19:17 +0000 (10:19 +0200)
commit3ceb08838b576b20108d7facf6baa3dbf792afe9
tree467b9a36cd09526168eeb4057eaf5d451713fcdb
parent709da681f4dea53993578f4f060f02ccfbeb59c6
net: add helper to pre-check if PP for an Rx queue will be unreadable

mlx5 pokes into the rxq state to check if the queue has a memory
provider, and therefore whether it may produce unreadable mem.
Add a helper for doing this in the page pool API. fbnic will want
a similar thing (tho, for a slightly different reason).

Reviewed-by: Mina Almasry <almasrymina@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Link: https://patch.msgid.link/20250901211214.1027927-11-kuba@kernel.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
include/net/netdev_queues.h
include/net/page_pool/helpers.h
net/core/netdev_rx_queue.c