Skip to contentSkip to conversation

sky2: use napi_complete_done

PATCH Applied Stephen Hemminger 3 participants 3 messages Aug 29, 2016 – Sep 1, 2016

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/net/ethernet/marvell/sky2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/marvell/sky2.c +1 -1
index 467138b..f05ea56 100644
@@ -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:
 
Signature · 1 line
2.9.3