Browse Source

lantiq: fix ptm crash under load

https://dev.openwrt.org/ticket/14581

Signed-off-by: John Crispin <[email protected]>

SVN-Revision: 40335
John Crispin 11 years ago
parent
commit
aa1118c79b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      package/kernel/lantiq/ltq-ptm/src/ifxmips_ptm_vdsl.c

+ 2 - 2
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;
     }