Skip to content

Commit 8fb8ebf

Browse files
jgross1Paolo Abeni
authored andcommitted
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>
1 parent 05310f3 commit 8fb8ebf

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

drivers/net/xen-netback/netback.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1082,10 +1082,6 @@ static void xenvif_tx_build_gops(struct xenvif_queue *queue,
10821082
__skb_queue_tail(&queue->tx_queue, skb);
10831083

10841084
queue->tx.req_cons = idx;
1085-
1086-
if ((*map_ops >= ARRAY_SIZE(queue->tx_map_ops)) ||
1087-
(*copy_ops >= ARRAY_SIZE(queue->tx_copy_ops)))
1088-
break;
10891085
}
10901086

10911087
return;

0 commit comments

Comments
 (0)