projects
/
oweals
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6189843
)
lantiq: fix ptm crash under load
author
John Crispin
<john@openwrt.org>
Sun, 30 Mar 2014 14:01:21 +0000
(14:01 +0000)
committer
John Crispin
<john@openwrt.org>
Sun, 30 Mar 2014 14:01:21 +0000
(14:01 +0000)
https://dev.openwrt.org/ticket/14581
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 40335
package/kernel/lantiq/ltq-ptm/src/ifxmips_ptm_vdsl.c
patch
|
blob
|
history
diff --git
a/package/kernel/lantiq/ltq-ptm/src/ifxmips_ptm_vdsl.c
b/package/kernel/lantiq/ltq-ptm/src/ifxmips_ptm_vdsl.c
index 745eb03321d5f3a376c2a04034e733766526dfc5..1b9b710bfb7359ddb1b10c39c5b72c57982b6aba 100644
(file)
--- a/
package/kernel/lantiq/ltq-ptm/src/ifxmips_ptm_vdsl.c
+++ b/
package/kernel/lantiq/ltq-ptm/src/ifxmips_ptm_vdsl.c
@@
-256,8
+256,8
@@
static int ptm_napi_poll(struct napi_struct *napi, int budget)
// clear interrupt
IFX_REG_W32_MASK(0, 1, MBOX_IGU1_ISRC);
// no more traffic
- if (
WAN_RX_DESC_BASE[g_ptm_priv_data.itf[0].rx_desc_pos].own ) { // if PP32 hold descriptor
-
napi_complete(napi);
+ if (
work_done < budget) {
+ napi_complete(napi);
IFX_REG_W32_MASK(0, 1, MBOX_IGU1_IER);
return work_done;
}