Re: [PATCH net-next] packet: add a generic drop reason for receive

From: Yan Zhai
Date: Fri Nov 10 2023 - 13:27:31 EST


On Fri, Nov 10, 2023 at 3:31 AM Eric Dumazet <edumazet@xxxxxxxxxx> wrote:
> it is time we replace the various constructs which do not help readability:
>
> if (something)
> consume_skb(skb);
> else
> kfree_skb_reason(skb, drop_reason);
>
> By:
>
> kfree_skb_reason(skb, drop_reason);
>
> (By using drop_reason == SKB_CONSUMED when appropriate)
Will send a V2 when net-next reopens