Skip to content

Commit

Permalink
xen/netback: fix incorrect usage of RING_HAS_UNCONSUMED_REQUESTS()
Browse files Browse the repository at this point in the history
Commit 6fac592 ("xen: update ring.h") missed to fix one use case
of RING_HAS_UNCONSUMED_REQUESTS().

Reported-by: Jan Beulich <jbeulich@suse.com>
Fixes: 6fac592 ("xen: update ring.h")
Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Wei Liu <wei.liu@kernel.org>
Link: https://lore.kernel.org/r/20220530113459.20124-1-jgross@suse.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
  • Loading branch information
Juergen Gross authored and Paolo Abeni committed May 31, 2022
1 parent 3e0b8f5 commit 09e545f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/xen-netback/netback.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 09e545f

Please sign in to comment.