Skip to content

Commit 09e545f

Browse files
jgross1Paolo Abeni
authored andcommitted
xen/netback: fix incorrect usage of RING_HAS_UNCONSUMED_REQUESTS()
Commit 6fac592 ("xen: update ring.h") missed to fix one use case of RING_HAS_UNCONSUMED_REQUESTS(). Reported-by: Jan Beulich <[email protected]> Fixes: 6fac592 ("xen: update ring.h") Signed-off-by: Juergen Gross <[email protected]> Reviewed-by: Jan Beulich <[email protected]> Acked-by: Wei Liu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
1 parent 3e0b8f5 commit 09e545f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/xen-netback/netback.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,7 @@ static void xenvif_tx_build_gops(struct xenvif_queue *queue,
828828
break;
829829
}
830830

831-
work_to_do = RING_HAS_UNCONSUMED_REQUESTS(&queue->tx);
831+
work_to_do = XEN_RING_NR_UNCONSUMED_REQUESTS(&queue->tx);
832832
if (!work_to_do)
833833
break;
834834

0 commit comments

Comments
 (0)