Skip to contentSkip to conversation

xen/netback: fix incorrect usage of RING_HAS_UNCONSUMED_REQUESTS()

PATCH Applied Juergen Gross 4 participants 4 messages May 30, 2022 – May 31, 2022

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen/netback: fix incorrect usage of RING_HAS_UNCONSUMED_REQUESTS()

Commit 6fac592cca60 ("xen: update ring.h") missed to fix one use case of RING_HAS_UNCONSUMED_REQUESTS().

Fixes 6fac592cca60 ("xen: update ring.h")
---
 drivers/net/xen-netback/netback.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/xen-netback/netback.c +1 -1
index 0f7fd159f0f2..d93814c14a23 100644
@@ -828,7 +828,7 @@ static void xenvif_tx_build_gops(struct xenvif_queue *queue,
 			break;
 		}
 
-		work_to_do = RING_HAS_UNCONSUMED_REQUESTS(&queue->tx);
+		work_to_do = XEN_RING_NR_UNCONSUMED_REQUESTS(&queue->tx);
 		if (!work_to_do)
 			break;
 
Signature · 1 line
2.35.3
#3 lore raw
In reply to Juergen Gross
This patch was applied to netdev/net.git (master) by Paolo Abeni <[email protected]>:

Hello:

This patch was applied to netdev/net.git (master)
by Paolo Abeni <[email protected]>:

Quoted 8 lines · On Mon, 30 May 2022 13:34:59 +0200 you wrote:

Commit 6fac592cca60 ("xen: update ring.h") missed to fix one use case of RING_HAS_UNCONSUMED_REQUESTS().

Fixes 6fac592cca60 ("xen: update ring.h")

[...]

Here is the summary with links:
- xen/netback: fix incorrect usage of RING_HAS_UNCONSUMED_REQUESTS()

    https://git.kernel.org/netdev/net/c/09e545f73814

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html