]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
sky2: use napi_complete_done
authorstephen hemminger <stephen@networkplumber.org>
Mon, 29 Aug 2016 17:16:37 +0000 (10:16 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Sep 2016 21:09:51 +0000 (14:09 -0700)
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>
drivers/net/ethernet/marvell/sky2.c

index 467138b423d3629cf468b3c54606a321214909ba..f05ea56dcff2cdecee79e21ac38c1c9623378912 100644 (file)
@@ -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: