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

- From: Yan Zhai \<hidden\>
- Date: 2023-11-10 18:27:31 
- List: netdev
- Page: https://ratatoskr.run/netdev/2023/11/2395920
- Thread: https://ratatoskr.run/netdev/2023/11/2396141/t.md

```text
On Fri, Nov 10, 2023 at 3:31 AM Eric Dumazet [ref] 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
```
