Commit 09e545f7 authored by Juergen Gross's avatar Juergen Gross Committed by Paolo Abeni

xen/netback: fix incorrect usage of RING_HAS_UNCONSUMED_REQUESTS()

Commit 6fac592c ("xen: update ring.h") missed to fix one use case
of RING_HAS_UNCONSUMED_REQUESTS().
Reported-by: default avatarJan Beulich <jbeulich@suse.com>
Fixes: 6fac592c ("xen: update ring.h")
Signed-off-by: default avatarJuergen Gross <jgross@suse.com>
Reviewed-by: default avatarJan Beulich <jbeulich@suse.com>
Acked-by: default avatarWei Liu <wei.liu@kernel.org>
Link: https://lore.kernel.org/r/20220530113459.20124-1-jgross@suse.comSigned-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent 3e0b8f52
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment