From: stephen hemminger Date: Mon, 29 Aug 2016 17:16:37 +0000 (-0700) Subject: sky2: use napi_complete_done X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f4b63ea08fd9e8f9fbf9e45b5921114a0514ef76;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git sky2: use napi_complete_done Update the sky2 driver to pass number of packets done to NAPI. The driver was never updated when napi_complete_done was added. Signed-off-by: Stephen Hemminger Acked-by: Eric Dumazet Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/marvell/sky2.c b/drivers/net/ethernet/marvell/sky2.c index 467138b423d3..f05ea56dcff2 100644 --- a/drivers/net/ethernet/marvell/sky2.c +++ b/drivers/net/ethernet/marvell/sky2.c @@ -3070,7 +3070,7 @@ static int sky2_poll(struct napi_struct *napi, int work_limit) goto done; } - napi_complete(napi); + napi_complete_done(napi, work_done); sky2_read32(hw, B0_Y2_SP_LISR); done: