diff options
author | Juergen Gross <jgross@suse.com> | 2023-03-27 11:36:46 +0300 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2023-03-28 15:16:40 +0300 |
commit | 8fb8ebf9487785184846d04e915bfe327bf4ccd5 (patch) | |
tree | 321446f779c8e7ce440e016e3912cbf9677b025b /drivers/net | |
parent | 05310f31ca74673a96567fb14637b7d5d6c82ea5 (diff) | |
download | linux-8fb8ebf9487785184846d04e915bfe327bf4ccd5.tar.xz |
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>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/xen-netback/netback.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/net/xen-netback/netback.c b/drivers/net/xen-netback/netback.c index 111c179f161b..4943be4fd99d 100644 --- a/drivers/net/xen-netback/netback.c +++ b/drivers/net/xen-netback/netback.c @@ -1082,10 +1082,6 @@ static void xenvif_tx_build_gops(struct xenvif_queue *queue, __skb_queue_tail(&queue->tx_queue, skb); queue->tx.req_cons = idx; - - if ((*map_ops >= ARRAY_SIZE(queue->tx_map_ops)) || - (*copy_ops >= ARRAY_SIZE(queue->tx_copy_ops))) - break; } return; |