mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 10:33:41 +02:00
gve: unlink old napi only if page pool exists
Commitde70981f29("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:de70981f29("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>
This commit is contained in:
parent
c60d101a22
commit
81273eb87a
|
|
@ -114,7 +114,8 @@ void gve_rx_stop_ring_dqo(struct gve_priv *priv, int idx)
|
|||
if (!gve_rx_was_added_to_block(priv, idx))
|
||||
return;
|
||||
|
||||
page_pool_disable_direct_recycling(rx->dqo.page_pool);
|
||||
if (rx->dqo.page_pool)
|
||||
page_pool_disable_direct_recycling(rx->dqo.page_pool);
|
||||
gve_remove_napi(priv, ntfy_idx);
|
||||
gve_rx_remove_from_block(priv, idx);
|
||||
gve_rx_reset_ring_dqo(priv, idx);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user