diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2016-04-20 11:37:09 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-04-21 15:06:04 -0400 |
commit | c82f47efa021697722b1cfc84e48f72d45c9f5b2 (patch) | |
tree | 75597d4ac8929ce17b78e444f445d423890433cb /drivers/net/ethernet/broadcom/bcmsysport.c | |
parent | ba90950c94713f294e8778e891eef4143183957c (diff) | |
download | linux-c82f47efa021697722b1cfc84e48f72d45c9f5b2.tar.bz2 |
net: bcmsysport: 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: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bcmsysport.c')
-rw-r--r-- | drivers/net/ethernet/broadcom/bcmsysport.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/broadcom/bcmsysport.c b/drivers/net/ethernet/broadcom/bcmsysport.c index 9e3ec739d860..30b0c2895a56 100644 --- a/drivers/net/ethernet/broadcom/bcmsysport.c +++ b/drivers/net/ethernet/broadcom/bcmsysport.c @@ -831,7 +831,7 @@ static int bcm_sysport_poll(struct napi_struct *napi, int budget) rdma_writel(priv, priv->rx_c_index, RDMA_CONS_INDEX); if (work_done < budget) { - napi_complete(napi); + napi_complete_done(napi, work_done); /* re-enable RX interrupts */ intrl2_0_mask_clear(priv, INTRL2_0_RDMA_MBDONE); } |