ramips: Change ethernet driver to use napi_complete_done.
[lede-git/.git] / target / linux / ramips / files-4.9 / drivers / net / ethernet / mtk / mtk_eth_soc.c
index 5f4afade06cb9803faf1c4d25b11542e92fc192c..baa7a198d0df9d4abbc056b13344b487f830144e 100644 (file)
@@ -1003,7 +1003,7 @@ static int fe_poll(struct napi_struct *napi, int budget)
                        goto poll_again;
                }
 
-               napi_complete(napi);
+               napi_complete_done(napi, rx_done);
                fe_int_enable(tx_intr | rx_intr);
        } else {
                rx_done = budget;