Message ID | 1257952296.1920.3.camel@myhost |
---|---|
State | Rejected, archived |
Delegated to: | David Miller |
Headers | show |
diff --git a/drivers/net/pcnet32.c b/drivers/net/pcnet32.c index c1b3f09..58894a3 100644 --- a/drivers/net/pcnet32.c +++ b/drivers/net/pcnet32.c @@ -1396,6 +1396,7 @@ static int pcnet32_poll(struct napi_struct *napi, int budget) spin_unlock_irqrestore(&lp->lock, flags); if (work_done < budget) { + work_done = 0; spin_lock_irqsave(&lp->lock, flags); __napi_complete(napi);
Poll method return 0 when it is done. Signed-off-by: Figo.zhang <figo1802@gmail.com> --- drivers/net/pcnet32.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html