net: netfilter: use kfree_drop_reason() for NF_DROP
authorMenglong Dong <imagedong@tencent.com>
Sat, 5 Feb 2022 07:47:34 +0000 (15:47 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 Jul 2022 15:25:16 +0000 (17:25 +0200)
commit82cda99184736367a8768782f28cc1d13c9794ed
tree4ccd00a21ae1aaede8395b080da2147ab6f83421
parentf3ed670ef8500b41d58805792a5a10d4adb3563b
net: netfilter: use kfree_drop_reason() for NF_DROP

[ Upstream commit 2df3041ba3be950376e8c25a8f6da22f7fcc765c ]

Replace kfree_skb() with kfree_skb_reason() in nf_hook_slow() when
skb is dropped by reason of NF_DROP. Following new drop reasons
are introduced:

SKB_DROP_REASON_NETFILTER_DROP

Signed-off-by: Menglong Dong <imagedong@tencent.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/linux/skbuff.h
include/trace/events/skb.h
net/netfilter/core.c