ramips: fix for kernel 4.0 napi repoll need return budgets number
Signed-off-by: Michael Lee <igvtee@gmail.com> SVN-Revision: 47306
This commit is contained in:
parent
9cd525a7fa
commit
b100027a83
1 changed files with 4 additions and 1 deletions
|
@ -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…
Reference in a new issue