net: bcmsysport: use napi_complete_done()
authorFlorian Fainelli <f.fainelli@gmail.com>
Wed, 20 Apr 2016 18:37:09 +0000 (11:37 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Apr 2016 19:06:04 +0000 (15:06 -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: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bcmsysport.c

index 9e3ec739d860d72ef02cda6294dc5cba85ec36b4..30b0c2895a563ea4585b9f0f494bc08b323b6c15 100644 (file)
@@ -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);
        }