]> www.infradead.org Git - users/jedix/linux-maple.git/commit
gve: unlink old napi only if page pool exists
authorHarshitha Ramamurthy <hramamurthy@google.com>
Mon, 17 Mar 2025 21:41:41 +0000 (21:41 +0000)
committerJakub Kicinski <kuba@kernel.org>
Mon, 24 Mar 2025 19:04:50 +0000 (12:04 -0700)
commit81273eb87af86d4a43244b553762348e364b2df7
tree53a63b66734705d523379f628d98c8cb29b2346a
parentc60d101a226f18e9a8f01bb4c6ca2b47dfcb15ef
gve: unlink old napi only if page pool exists

Commit de70981f295e ("gve: unlink old napi when stopping a queue using
queue API") unlinks the old napi when stopping a queue. But this breaks
QPL mode of the driver which does not use page pool. Fix this by checking
that there's a page pool associated with the ring.

Cc: stable@vger.kernel.org
Fixes: de70981f295e ("gve: unlink old napi when stopping a queue using queue API")
Reviewed-by: Joshua Washington <joshwash@google.com>
Signed-off-by: Harshitha Ramamurthy <hramamurthy@google.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250317214141.286854-1-hramamurthy@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/google/gve/gve_rx_dqo.c