diff options
author | Juergen Gross <jgross@suse.com> | 2022-05-30 13:34:59 +0200 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2022-05-31 12:22:22 +0200 |
commit | 09e545f7381459c015b6fa0cd0ac6f010ef8cc25 (patch) | |
tree | 56f72b68271ab99cce408e56490a2eacfa1994ec /drivers | |
parent | net/ipv6: Expand and rename accept_unsolicited_na to accept_untracked_na (diff) | |
download | linux-09e545f7381459c015b6fa0cd0ac6f010ef8cc25.tar.xz linux-09e545f7381459c015b6fa0cd0ac6f010ef8cc25.zip |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/xen-netback/netback.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/xen-netback/netback.c b/drivers/net/xen-netback/netback.c index 0f7fd159f0f2..d93814c14a23 100644 --- a/drivers/net/xen-netback/netback.c +++ b/drivers/net/xen-netback/netback.c @@ -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; |