Skip to content

Commit

Permalink
sky2: use napi_complete_done
Browse files Browse the repository at this point in the history
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 <stephen@networkplumber.org>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
stephen hemminger authored and David S. Miller committed Sep 1, 2016
1 parent f5bb341 commit f4b63ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/marvell/sky2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down

0 comments on commit f4b63ea

Please sign in to comment.