|
| From: | Paolo Bonzini |
| Subject: | Re: [Qemu-devel] [RFC PATCH 6/8] tap: Drop tap_can_send |
| Date: | Wed, 29 Apr 2015 13:05:55 +0200 |
| User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 |
On 29/04/2015 12:37, Fam Zheng wrote:
> @@ -190,10 +181,13 @@ static void tap_send(void *opaque)
> TAPState *s = opaque;
> int size;
> int packets = 0;
> + bool can_send = true;
>
> - while (qemu_can_send_packet(&s->nc)) {
> + while (can_send) {
This is effectively a while (true) since can_send is:
- assigned to true on entry to the first iteration
- true on the next iterations as well or you would have exited.
Paolo
| [Prev in Thread] | Current Thread | [Next in Thread] |