diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-10-30 22:32:49 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-10-30 22:32:49 +0000 |
commit | 41232170f889f33f26807a951dcf58c667c962eb (patch) | |
tree | eb2e96b4fd9ec51257f69459b3fa62423e7185b3 /target | |
parent | 39fb14e44292b43f1866c3fd3bbdff11d4480a36 (diff) | |
download | master-187ad058-41232170f889f33f26807a951dcf58c667c962eb.tar.gz master-187ad058-41232170f889f33f26807a951dcf58c667c962eb.tar.bz2 master-187ad058-41232170f889f33f26807a951dcf58c667c962eb.zip |
ramips: fix for kernel 4.0 napi repoll need return budgets number
Signed-off-by: Michael Lee <igvtee@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47306 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rw-r--r-- | target/linux/ramips/files/drivers/net/ethernet/ralink/ralink_soc_eth.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/target/linux/ramips/files/drivers/net/ethernet/ralink/ralink_soc_eth.c b/target/linux/ramips/files/drivers/net/ethernet/ralink/ralink_soc_eth.c index 05b810a78a..0f3009cc73 100644 --- a/target/linux/ramips/files/drivers/net/ethernet/ralink/ralink_soc_eth.c +++ b/target/linux/ramips/files/drivers/net/ethernet/ralink/ralink_soc_eth.c @@ -991,8 +991,11 @@ static int fe_poll(struct napi_struct *napi, int budget) 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); |