Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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().

Reported-by: Jan Beulich <jbeulich@suse.com>
Fixes: 6fac592cca60 ("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>

authored by

Juergen Gross and committed by
Paolo Abeni
09e545f7 3e0b8f52

+1 -1
+1 -1
drivers/net/xen-netback/netback.c
··· 828 828 break; 829 829 } 830 830 831 - work_to_do = RING_HAS_UNCONSUMED_REQUESTS(&queue->tx); 831 + work_to_do = XEN_RING_NR_UNCONSUMED_REQUESTS(&queue->tx); 832 832 if (!work_to_do) 833 833 break; 834 834