Re: [PATCH net v2] net: sched: do not requeue a NULL skb
From: Cong Wang
Date: Mon Apr 11 2016 - 19:19:42 EST
On Mon, Apr 11, 2016 at 11:30 AM, Eric Dumazet <eric.dumazet@xxxxxxxxx> wrote:
> On Mon, 2016-04-11 at 11:26 -0700, Eric Dumazet wrote:
>> On Mon, 2016-04-11 at 11:02 -0700, Cong Wang wrote:
>>
>> > I am fine with either way as long as the loop stops on failure.
>
>
> Note that skb that could not be validated is already freed.
>
> So I do not see any value from stopping the loop, since
> we need to schedule the queue to avoid tx hang.
>
> Just process following skb if there is one, fact that skb is sent or
> dropped does not matter.
My point is, for example, in OOM case, we don't know processing
more SKB would make it better or worse. Maybe we really need to
check the error code to decide to continue to exit?