netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next] net: bcmgenet: use napi_complete_done()
@ 2016-04-09  5:06 Eric Dumazet
  2016-04-09  5:19 ` Florian Fainelli
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Eric Dumazet @ 2016-04-09  5:06 UTC (permalink / raw)
  To: David Miller; +Cc: netdev, Petri Gynther, Florian Fainelli

From: Eric Dumazet <edumazet@google.com>

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>
---
 drivers/net/ethernet/broadcom/genet/bcmgenet.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);
 	}
 

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-04-14  3:38 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-09  5:06 [PATCH net-next] net: bcmgenet: use napi_complete_done() Eric Dumazet
2016-04-09  5:19 ` Florian Fainelli
2016-04-09  5:27   ` Eric Dumazet
2016-04-09  5:30   ` [PATCH net-next] net: bcmgenet: use __napi_schedule_irqoff() Eric Dumazet
2016-04-09 17:24     ` Petri Gynther
2016-04-14  3:38     ` David Miller
2016-04-09 17:23 ` [PATCH net-next] net: bcmgenet: use napi_complete_done() Petri Gynther
2016-04-14  3:37 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).