mirror of https://github.com/hak5/openwrt-owl.git
ramips: fix for kernel 4.0 napi repoll need return budgets number
Signed-off-by: Michael Lee <igvtee@gmail.com> SVN-Revision: 47306owl
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…
Reference in New Issue