net: remove enum skb_free_reason
authorEric Dumazet <edumazet@google.com>
Mon, 6 Mar 2023 20:43:13 +0000 (20:43 +0000)
committerJakub Kicinski <kuba@kernel.org>
Wed, 8 Mar 2023 07:57:19 +0000 (23:57 -0800)
commit40bbae583ec38ea31e728bf42a4ea72bded22ab6
tree91ac3678a5b39fe1e0c57dfdf90d2f2c1a404dca
parent0194b64578e905dc8f112e641a71c306bd58ddde
net: remove enum skb_free_reason

enum skb_drop_reason is more generic, we can adopt it instead.

Provide dev_kfree_skb_irq_reason() and dev_kfree_skb_any_reason().

This means drivers can use more precise drop reasons if they want to.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Reviewed-by: Yunsheng Lin <linyunsheng@huawei.com>
Link: https://lore.kernel.org/r/20230306204313.10492-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/netdevice.h
net/core/dev.c