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
master
John Crispin 2014-03-30 14:01:21 +00:00
parent aabcfb48e6
commit 744251d4f1
1 changed files with 2 additions and 2 deletions

View File

@ -256,8 +256,8 @@ static int ptm_napi_poll(struct napi_struct *napi, int budget)
// clear interrupt // clear interrupt
IFX_REG_W32_MASK(0, 1, MBOX_IGU1_ISRC); IFX_REG_W32_MASK(0, 1, MBOX_IGU1_ISRC);
// no more traffic // no more traffic
if ( WAN_RX_DESC_BASE[g_ptm_priv_data.itf[0].rx_desc_pos].own ) { // if PP32 hold descriptor if (work_done < budget) {
napi_complete(napi); napi_complete(napi);
IFX_REG_W32_MASK(0, 1, MBOX_IGU1_IER); IFX_REG_W32_MASK(0, 1, MBOX_IGU1_IER);
return work_done; return work_done;
} }