s390/qeth: support GRO flush timer
authorJulian Wiedmann <jwi@linux.vnet.ibm.com>
Wed, 18 Oct 2017 15:40:24 +0000 (17:40 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Oct 2017 12:11:05 +0000 (13:11 +0100)
Switch to napi_complete_done(), and thus enable delayed GRO flushing.
The timeout is configured via /sys/class/net/<if>/gro_flush_timeout.

Default timeout is 0, so no change in behaviour.

Signed-off-by: Julian Wiedmann <jwi@linux.vnet.ibm.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/s390/net/qeth_core_main.c

index 8855bc8534d294a772c4169b9ba6f20b65a80452..98b7e1ce0dd1f53b2b572ba130630fcf7a1983f0 100644 (file)
@@ -5370,7 +5370,7 @@ int qeth_poll(struct napi_struct *napi, int budget)
                }
        }
 
-       napi_complete(napi);
+       napi_complete_done(napi, work_done);
        if (qdio_start_irq(card->data.ccwdev, 0))
                napi_schedule(&card->napi);
 out: