net: ipv6: add skb drop reasons to ip6_rcv_core()
authorMenglong Dong <imagedong@tencent.com>
Wed, 13 Apr 2022 08:15:59 +0000 (16:15 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Apr 2022 12:09:57 +0000 (13:09 +0100)
commit4daf841a2ef3b2e987894c8107d309ce2b67c202
tree79427ac742a6b97f046b42a58304d723461c5863
parent7d9dbdfbfdc5e52131bea94a7318ee35b15a5f19
net: ipv6: add skb drop reasons to ip6_rcv_core()

Replace kfree_skb() used in ip6_rcv_core() with kfree_skb_reason().
No new drop reasons are added.

Seems now we use 'SKB_DROP_REASON_IP_INHDR' for too many case during
ipv6 header parse or check, just like what 'IPSTATS_MIB_INHDRERRORS'
do. Will it be too general and hard to know what happened?

Signed-off-by: Menglong Dong <imagedong@tencent.com>
Reviewed-by: Jiang Biao <benbjiang@tencent.com>
Reviewed-by: Hao Peng <flyingpeng@tencent.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_input.c