diff options
author | Menglong Dong <imagedong@tencent.com> | 2022-02-05 15:47:37 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-02-07 11:18:49 +0000 |
commit | 10580c4791902571777603cb980414892dd5f149 (patch) | |
tree | 8b30cc3181e1bc1a10e59d055479a844584e8dd1 /include/linux/skbuff.h | |
parent | net: ipv4: use kfree_skb_reason() in ip_rcv_finish_core() (diff) | |
download | linux-10580c4791902571777603cb980414892dd5f149.tar.gz linux-10580c4791902571777603cb980414892dd5f149.tar.bz2 linux-10580c4791902571777603cb980414892dd5f149.zip |
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>
Diffstat (limited to 'include/linux/skbuff.h')
-rw-r--r-- | include/linux/skbuff.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index 4baba45f223d..2a64afa97910 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h @@ -339,6 +339,8 @@ enum skb_drop_reason { * is multicast, but L3 is * unicast. */ + SKB_DROP_REASON_XFRM_POLICY, /* xfrm policy check failed */ + SKB_DROP_REASON_IP_NOPROTO, /* no support for IP protocol */ SKB_DROP_REASON_MAX, }; |