[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20230224114124.66f65713@kernel.org>
Date: Fri, 24 Feb 2023 11:41:24 -0800
From: Jakub Kicinski <kuba@...nel.org>
To: Eric Dumazet <edumazet@...gle.com>
Cc: "David S . Miller" <davem@...emloft.net>,
Paolo Abeni <pabeni@...hat.com>, netdev@...r.kernel.org,
eric.dumazet@...il.com, Yunsheng Lin <linyunsheng@...wei.com>
Subject: Re: [PATCH v2 net] net: fix __dev_kfree_skb_any() vs drop monitor
On Thu, 23 Feb 2023 08:38:45 +0000 Eric Dumazet wrote:
> dev_kfree_skb() is aliased to consume_skb().
>
> When a driver is dropping a packet by calling dev_kfree_skb_any()
> we should propagate the drop reason instead of pretending
> the packet was consumed.
>
> Note: Now we have enum skb_drop_reason we could remove
> enum skb_free_reason (for linux-6.4)
>
> v2: added an unlikely(), suggested by Yunsheng Lin.
Applied, thanks!
Powered by blists - more mailing lists