> On Sep 24, 2018, at 8:30 AM, Eric Dumazet <eduma...@google.com> wrote:
>
> On Sun, Sep 23, 2018 at 10:04 PM David Miller <da...@davemloft.net> wrote:
>>
>> Series applied, thanks Eric.
>
> Thanks David.
>
> Song, would you please this additional patch ?
>
> diff --git a/net/core/netpoll.c b/net/core/netpoll.c
> index
> 3219a2932463096566ce8ff336ecdf699422dd65..2ad45babe621b2c979ad5496b7df4342e4efbaa6
> 100644
> --- a/net/core/netpoll.c
> +++ b/net/core/netpoll.c
> @@ -150,13 +150,6 @@ static void poll_one_napi(struct napi_struct *napi)
> {
> int work = 0;
>
> - /* net_rx_action's ->poll() invocations and our's are
> - * synchronized by this test which is only made while
> - * holding the napi->poll_lock.
> - */
> - if (!test_bit(NAPI_STATE_SCHED, &napi->state))
> - return;
> -
> /* If we set this bit but see that it has already been set,
> * that indicates that napi has been disabled and we need
> * to abort this operation
This triggers dev_watchdog() on a simple netperf TCP_RR on bnxt (I haven't
tested other drivers yet).
I guess this is because NAPI_STATE_SCHED is set when poll_one_napi() calls
napi->poll(). And then cleared by napi->poll(). So a packet is missed by
napi (set NAPI_STATE_SCHED, but didn't got handled).
Song