ar71xx: return limit as number of processed frames when re-scheduling NAPI poll
authorFelix Fietkau <nbd@openwrt.org>
Sun, 14 Jun 2015 17:43:59 +0000 (17:43 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 14 Jun 2015 17:43:59 +0000 (17:43 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 45971

target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c

index 5ef324e8533e15ff61e3db8d32addede266b4231..dc77699845adadec77619136d83d381634031922 100644 (file)
@@ -1082,7 +1082,7 @@ static int ag71xx_poll(struct napi_struct *napi, int limit)
 more:
        DBG("%s: stay in polling mode, rx=%d, tx=%d, limit=%d\n",
                        dev->name, rx_done, tx_done, limit);
-       return rx_done;
+       return limit;
 
 oom:
        if (netif_msg_rx_err(ag))