MiniOS: Fix continue; in netfront receive loop

To properly ignore some requests through the use of continue;, indexes
need to
be updated.

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
committer: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
xen-unstable changeset:   22236:6e8dd34122e7
xen-unstable date:        Tue Oct 12 10:27:56 2010 +0100
This commit is contained in:
Keir Fraser committed 2010-10-20 13:35:07 +01:00
1 parent 9b3058286f
commit be508b8365
1 file changed
+3 -7
+3 -7
View File
@@ -105,9 +105,9 @@ moretodo:
rmb(); /* Ensure we see queued responses up to 'rp'. */
cons = dev->rx.rsp_cons;
nr_consumed = 0;
some = 0;
while ((cons != rp) && !some)
for (nr_consumed = 0, some = 0;
(cons != rp) && !some;
nr_consumed++, cons++)
{
struct net_buffer* buf;
unsigned char* page;
@@ -146,10 +146,6 @@ moretodo:
#endif
dev->netif_rx(page+rx->offset,rx->status);
}
nr_consumed++;
++cons;
}
dev->rx.rsp_cons=cons;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.