Author: nbd
Date: 2015-10-30 23:32:49 +0100 (Fri, 30 Oct 2015)
New Revision: 47306

Modified:
   trunk/target/linux/ramips/files/drivers/net/ethernet/ralink/ralink_soc_eth.c
Log:
ramips: fix for kernel 4.0 napi repoll need return budgets number

Signed-off-by: Michael Lee <[email protected]>

Modified: 
trunk/target/linux/ramips/files/drivers/net/ethernet/ralink/ralink_soc_eth.c
===================================================================
--- 
trunk/target/linux/ramips/files/drivers/net/ethernet/ralink/ralink_soc_eth.c    
    2015-10-30 22:32:41 UTC (rev 47305)
+++ 
trunk/target/linux/ramips/files/drivers/net/ethernet/ralink/ralink_soc_eth.c    
    2015-10-30 22:32:49 UTC (rev 47306)
@@ -991,8 +991,11 @@
 
        if (!tx_again && (rx_done < budget)) {
                status = fe_reg_r32(FE_REG_FE_INT_STATUS);
-               if (status & (tx_intr | rx_intr ))
+               if (status & (tx_intr | rx_intr)) {
+                       /* let napi poll again */
+                       rx_done = budget;
                        goto poll_again;
+               }
 
                napi_complete(napi);
                fe_int_enable(tx_intr | rx_intr);
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to