[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAO3-PbqSXjMrYKovoUJK5FhfD=zpkKosVbK2UtAARa0VEFzuGQ@mail.gmail.com>
Date: Fri, 10 Nov 2023 08:48:34 -0600
From: Yan Zhai <yan@...udflare.com>
To: Eric Dumazet <edumazet@...gle.com>
Cc: netdev@...r.kernel.org, "David S. Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>,
Willem de Bruijn <willemdebruijn.kernel@...il.com>, Weongyo Jeong <weongyo.linux@...il.com>,
Ivan Babrou <ivan@...udflare.com>, David Ahern <dsahern@...nel.org>,
Jesper Brouer <jesper@...udflare.com>, linux-kernel@...r.kernel.org,
kernel-team@...udflare.com
Subject: Re: [PATCH net-next] packet: add a generic drop reason for receive
On Fri, Nov 10, 2023 at 3:31 AM Eric Dumazet <edumazet@...gle.com> 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
Powered by blists - more mailing lists