From: Eric Dumazet Date: Sat, 9 Apr 2016 05:06:40 +0000 (-0700) Subject: net: bcmgenet: use napi_complete_done() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=eb96ce01bab7af55d983feaae069c18792d427ef;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git net: bcmgenet: use napi_complete_done() 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 Cc: Petri Gynther Cc: Florian Fainelli Acked-by: Florian Fainelli Acked-by: Petri Gynther Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/broadcom/genet/bcmgenet.c b/drivers/net/ethernet/broadcom/genet/bcmgenet.c index f7b42b9fc979..e823013d3125 100644 --- a/drivers/net/ethernet/broadcom/genet/bcmgenet.c +++ b/drivers/net/ethernet/broadcom/genet/bcmgenet.c @@ -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); }