aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/lantiq/ltq-ptm
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2014-03-30 14:01:21 +0000
committerJohn Crispin <john@openwrt.org>2014-03-30 14:01:21 +0000
commitaa1118c79b51575c7963c1139d484de5a21a63c1 (patch)
treef9c2f3890684d5af7b8e2dd8268ff5f32d423629 /package/kernel/lantiq/ltq-ptm
parent618984339a470f0006797facda8e22736282639d (diff)
downloadupstream-aa1118c79b51575c7963c1139d484de5a21a63c1.tar.gz
upstream-aa1118c79b51575c7963c1139d484de5a21a63c1.tar.bz2
upstream-aa1118c79b51575c7963c1139d484de5a21a63c1.zip
lantiq: fix ptm crash under load
https://dev.openwrt.org/ticket/14581 Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 40335
Diffstat (limited to 'package/kernel/lantiq/ltq-ptm')
-rw-r--r--package/kernel/lantiq/ltq-ptm/src/ifxmips_ptm_vdsl.c4
1 files changed, 2 insertions, 2 deletions
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 745eb03321..1b9b710bfb 100644
--- 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;
}