xen/netback: remove not needed test in xenvif_tx_build_gops()
authorJuergen Gross <jgross@suse.com>
Mon, 27 Mar 2023 08:36:46 +0000 (10:36 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 28 Mar 2023 12:16:40 +0000 (14:16 +0200)
commit8fb8ebf9487785184846d04e915bfe327bf4ccd5
tree321446f779c8e7ce440e016e3912cbf9677b025b
parent05310f31ca74673a96567fb14637b7d5d6c82ea5
xen/netback: remove not needed test in xenvif_tx_build_gops()

The tests for the number of grant mapping or copy operations reaching
the array size of the operations buffer at the end of the main loop in
xenvif_tx_build_gops() isn't needed.

The loop can handle at maximum MAX_PENDING_REQS transfer requests, as
XEN_RING_NR_UNCONSUMED_REQUESTS() is taking unsent responses into
consideration, too.

Remove the tests.

Suggested-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Paul Durrant <paul@xen.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/xen-netback/netback.c