aeroflex/greth: use napi_complete_done()
authorEric Dumazet <edumazet@google.com>
Sat, 4 Feb 2017 23:25:01 +0000 (15:25 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 5 Feb 2017 21:11:57 +0000 (16:11 -0500)
We plan to remove __napi_complete() soon,
this driver is the last user.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/aeroflex/greth.c

index 93def92f999703d234b44508725f45863ef39a18..9f7422ada704e9484b79d336ece46a0547667abb 100644 (file)
@@ -1008,7 +1008,7 @@ restart_txrx_poll:
                        spin_unlock_irqrestore(&greth->devlock, flags);
                        goto restart_txrx_poll;
                } else {
-                       __napi_complete(napi);
+                       napi_complete_done(napi, work_done);
                        spin_unlock_irqrestore(&greth->devlock, flags);
                }
        }