On Sun, 2016-11-20 at 09:24 -0800, Eric Dumazet wrote:

>               /* Current cpu is not according to smp_irq_affinity -
> -              * probably affinity changed. need to stop this NAPI
> -              * poll, and restart it on the right CPU
> +              * probably affinity changed. Need to stop this NAPI
> +              * poll, and restart it on the right CPU.
> +              * Try to avoid returning a too small value (like 0),
> +              * to not fool net_rx_action() and its netdev_budget
>                */
> -             done = 0;
> +             if (done)
> +                     done--;


Note : This could have been a net candidate, but bug is minor and I
prefer to avoid a merge conflict, since net-next has the additional if
around the napi_complete_done() call.


>       }
>       /* Done for now */
>       if (napi_complete_done(napi, done))
> 



Reply via email to