net: r6040: Utilize napi_complete_done()
authorFlorian Fainelli <f.fainelli@gmail.com>
Mon, 4 Jul 2016 21:36:07 +0000 (14:36 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Jul 2016 07:10:29 +0000 (00:10 -0700)
We maintain how much work we did in NAPI context, so provide that with
napi_complete_done().

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/rdc/r6040.c

index 13ff800882686f366feb3a967d64a3240955ef9f..c0256b865ff940d25450e7b572148ef145bb51db 100644 (file)
@@ -648,7 +648,7 @@ static int r6040_poll(struct napi_struct *napi, int budget)
        work_done = r6040_rx(dev, budget);
 
        if (work_done < budget) {
-               napi_complete(napi);
+               napi_complete_done(napi, work_done);
                /* Enable RX/TX interrupt */
                iowrite16(ioread16(ioaddr + MIER) | RX_INTS | TX_INTS,
                          ioaddr + MIER);
This page took 0.028367 seconds and 5 git commands to generate.