drivers: net: generalize napi_complete_done()
napi_complete_done() allows to opt-in for gro_flush_timeout,
added back in linux-3.19, commit 3b47d30396
("net: gro: add a per device gro flush timer")
This allows for more efficient GRO aggregation without
sacrifying latencies.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
63a6fff353
commit
6ad20165d3
@@ -1326,7 +1326,7 @@ restart_poll:
|
||||
ibmveth_replenish_task(adapter);
|
||||
|
||||
if (frames_processed < budget) {
|
||||
napi_complete(napi);
|
||||
napi_complete_done(napi, frames_processed);
|
||||
|
||||
/* We think we are done - reenable interrupts,
|
||||
* then check once more to make sure we are done.
|
||||
|
@@ -987,7 +987,7 @@ restart_poll:
|
||||
|
||||
if (frames_processed < budget) {
|
||||
enable_scrq_irq(adapter, adapter->rx_scrq[scrq_num]);
|
||||
napi_complete(napi);
|
||||
napi_complete_done(napi, frames_processed);
|
||||
if (pending_scrq(adapter, adapter->rx_scrq[scrq_num]) &&
|
||||
napi_reschedule(napi)) {
|
||||
disable_scrq_irq(adapter, adapter->rx_scrq[scrq_num]);
|
||||
|
Reference in New Issue
Block a user