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

From
Yan Zhai <hidden>
Date
2023-11-10 18:27:31
Also in
lkml
Reply to
Eric Dumazet, 2023-11-10
On Fri, Nov 10, 2023 at 3:31 AM Eric Dumazet [off-list 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
Thread (5 messages) 5 messages, 3 authors, last reply 2023-11-10
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help