Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0305efff authored by Florian Fainelli's avatar Florian Fainelli Committed by David S. Miller
Browse files

net: r6040: Utilize napi_complete_done()



We maintain how much work we did in NAPI context, so provide that with
napi_complete_done().

Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ffb5bce0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -648,7 +648,7 @@ static int r6040_poll(struct napi_struct *napi, int budget)
	work_done = r6040_rx(dev, budget);

	if (work_done < budget) {
		napi_complete(napi);
		napi_complete_done(napi, work_done);
		/* Enable RX/TX interrupt */
		iowrite16(ioread16(ioaddr + MIER) | RX_INTS | TX_INTS,
			  ioaddr + MIER);