RE: [PATCH net v2 3/4] r8152: re-schedule napi for tx

From: Hayes Wang
Date: Wed Jan 25 2017 - 20:22:43 EST


Eric Dumazet [mailto:eric.dumazet@xxxxxxxxx]
> Sent: Wednesday, January 25, 2017 9:57 PM
[...]
> > napi_complete(napi);
> > if (!list_empty(&tp->rx_done))
> > napi_schedule(napi);
> > + else if (!skb_queue_empty(&tp->tx_queue) &&
> > + !list_empty(&tp->tx_free))
> > + napi_schedule(&tp->napi);
>
> Why using &tp->napi instead of napi here, as done 3 lines above ?

Oops. I would fix it. Thanks.

Best Regards,
Hayes