ramips: fix for kernel 4.0 napi repoll need return budgets number

Signed-off-by: Michael Lee <igvtee@gmail.com>

SVN-Revision: 47306
v19.07.3_mercusys_ac12_duma
Felix Fietkau 9 years ago
parent 9cd525a7fa
commit b100027a83

@ -991,8 +991,11 @@ static int fe_poll(struct napi_struct *napi, int budget)
if (!tx_again && (rx_done < budget)) {
status = fe_reg_r32(FE_REG_FE_INT_STATUS);
if (status & (tx_intr | rx_intr ))
if (status & (tx_intr | rx_intr)) {
/* let napi poll again */
rx_done = budget;
goto poll_again;
}
napi_complete(napi);
fe_int_enable(tx_intr | rx_intr);

Loading…
Cancel
Save