net: ipv6: add skb drop reasons to ip6_protocol_deliver_rcu()
authorMenglong Dong <imagedong@tencent.com>
Wed, 13 Apr 2022 08:16:00 +0000 (16:16 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Apr 2022 12:09:57 +0000 (13:09 +0100)
commiteeab7e7ff43eb216e4e89482e03fe95a7e4c915e
treec5d27f25d03a1d7d275b1fadabf192dc1432770e
parent4daf841a2ef3b2e987894c8107d309ce2b67c202
net: ipv6: add skb drop reasons to ip6_protocol_deliver_rcu()

Replace kfree_skb() used in ip6_protocol_deliver_rcu() with
kfree_skb_reason().

No new reasons are added.

Some paths are ignored, as they are not common, such as encapsulation
on non-final protocol.

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