net: bcmgenet: use napi_complete_done()
authorEric Dumazet <edumazet@google.com>
Sat, 9 Apr 2016 05:06:40 +0000 (22:06 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Apr 2016 03:37:37 +0000 (23:37 -0400)
By using napi_complete_done(), we allow fine tuning
of /sys/class/net/ethX/gro_flush_timeout for higher GRO aggregation
efficiency for a Gbit NIC.

Check commit 24d2e4a50737 ("tg3: use napi_complete_done()") for details.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Petri Gynther <pgynther@google.com>
Cc: Florian Fainelli <f.fainelli@gmail.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Acked-by: Petri Gynther <pgynther@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/genet/bcmgenet.c

index f7b42b9fc9795074c97d26a73e768ec843340efd..e823013d312578eb20aa3cbec91e61d4b2280528 100644 (file)
@@ -1735,7 +1735,7 @@ static int bcmgenet_rx_poll(struct napi_struct *napi, int budget)
        work_done = bcmgenet_desc_rx(ring, budget);
 
        if (work_done < budget) {
-               napi_complete(napi);
+               napi_complete_done(napi, work_done);
                ring->int_enable(ring);
        }