]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
gve: unlink old napi when stopping a queue using queue API
authorHarshitha Ramamurthy <hramamurthy@google.com>
Wed, 26 Feb 2025 00:35:26 +0000 (00:35 +0000)
committerJakub Kicinski <kuba@kernel.org>
Thu, 27 Feb 2025 02:10:28 +0000 (18:10 -0800)
commitde70981f295e7eab86325db3bf349fa676f16c42
tree9c2fb5e5ed85c7ad23eb64013c776355d739818f
parent01c9c123db76357d4373b2e97b760a856d6fe822
gve: unlink old napi when stopping a queue using queue API

When a queue is stopped using the ndo queue API, before
destroying its page pool, the associated NAPI instance
needs to be unlinked to avoid warnings.

Handle this by calling page_pool_disable_direct_recycling()
when stopping a queue.

Cc: stable@vger.kernel.org
Fixes: ebdfae0d377b ("gve: adopt page pool for DQ RDA mode")
Reviewed-by: Praveen Kaligineedi <pkaligineedi@google.com>
Signed-off-by: Harshitha Ramamurthy <hramamurthy@google.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Link: https://patch.msgid.link/20250226003526.1546854-1-hramamurthy@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/google/gve/gve_rx_dqo.c