Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=8329d98e480250ef5f5a083f9c3af50510b5e65d
Commit:     8329d98e480250ef5f5a083f9c3af50510b5e65d
Parent:     9a4b9708f1f2eaf5edd619df578cf3afec36eb82
Author:     Rusty Russell <[EMAIL PROTECTED]>
AuthorDate: Mon Nov 19 11:20:43 2007 -0500
Committer:  Rusty Russell <[EMAIL PROTECTED]>
CommitDate: Mon Nov 19 11:20:44 2007 +1100

    virtio: fix net driver loop case where we fail to restart
    
    skb is only NULL the first time around: it's more correct to test for
    being under-budget.
    
    Signed-off-by: Rusty Russell <[EMAIL PROTECTED]>
---
 drivers/net/virtio_net.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c
index d74e6f4..5413dbf 100644
--- a/drivers/net/virtio_net.c
+++ b/drivers/net/virtio_net.c
@@ -198,8 +198,8 @@ again:
        if (vi->num < vi->max / 2)
                try_fill_recv(vi);
 
-       /* All done? */
-       if (!skb) {
+       /* Out of packets? */
+       if (received < budget) {
                netif_rx_complete(vi->dev, napi);
                if (unlikely(!vi->rvq->vq_ops->restart(vi->rvq))
                    && netif_rx_reschedule(vi->dev, napi))
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to