diff options
author | John Crispin <blogic@openwrt.org> | 2014-03-30 14:01:21 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2014-03-30 14:01:21 +0000 |
commit | 744251d4f1810a0f2e0eea4ddc37442be2caa133 (patch) | |
tree | 37853c0271115aeeb39dc82a3fe85f81ed1cdaa4 /package/kernel | |
parent | aabcfb48e63098c864e5cf983a9a41f82d5f9360 (diff) | |
download | master-187ad058-744251d4f1810a0f2e0eea4ddc37442be2caa133.tar.gz master-187ad058-744251d4f1810a0f2e0eea4ddc37442be2caa133.tar.bz2 master-187ad058-744251d4f1810a0f2e0eea4ddc37442be2caa133.zip |
lantiq: fix ptm crash under load
https://dev.openwrt.org/ticket/14581
Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40335 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/kernel')
-rw-r--r-- | package/kernel/lantiq/ltq-ptm/src/ifxmips_ptm_vdsl.c | 4 |
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; } |