]> git.baikalelectronics.ru Git - kernel.git/commit
net: skb: rename SKB_DROP_REASON_PTYPE_ABSENT
authorMenglong Dong <imagedong@tencent.com>
Thu, 7 Apr 2022 06:20:50 +0000 (14:20 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Apr 2022 09:38:37 +0000 (10:38 +0100)
commitefb84c26361a5901f73bf3e5258d28dac3de6bd8
treeebd538fe93d4771296598cd60a4eb9a3c46d1138
parenta5fd03ba4003adcd368417dd8eab23c6a1e3cb2d
net: skb: rename SKB_DROP_REASON_PTYPE_ABSENT

As David Ahern suggested, the reasons for skb drops should be more
general and not be code based.

Therefore, rename SKB_DROP_REASON_PTYPE_ABSENT to
SKB_DROP_REASON_UNHANDLED_PROTO, which is used for the cases of no
L3 protocol handler, no L4 protocol handler, version extensions, etc.

From previous discussion, now we have the aim to make these reasons
more abstract and users based, avoiding code based.

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/core/dev.c