net: ipv4: use kfree_skb_reason() in ip_protocol_deliver_rcu()
authorMenglong Dong <imagedong@tencent.com>
Sat, 5 Feb 2022 07:47:37 +0000 (15:47 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Feb 2022 11:18:49 +0000 (11:18 +0000)
commit10580c4791902571777603cb980414892dd5f149
tree8b30cc3181e1bc1a10e59d055479a844584e8dd1
parentc1f166d1f7eef212096a98b22f5acf92f9af353d
net: ipv4: use kfree_skb_reason() in ip_protocol_deliver_rcu()

Replace kfree_skb() with kfree_skb_reason() in ip_protocol_deliver_rcu().
Following new drop reasons are introduced:

SKB_DROP_REASON_XFRM_POLICY
SKB_DROP_REASON_IP_NOPROTO

Signed-off-by: Menglong Dong <imagedong@tencent.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/skbuff.h
include/trace/events/skb.h
net/ipv4/ip_input.c