summaryrefslogtreecommitdiff
path: root/include/trace/events/skb.h
diff options
context:
space:
mode:
authorMenglong Dong <imagedong@tencent.com>2022-01-09 09:36:28 +0300
committerJakub Kicinski <kuba@kernel.org>2022-01-10 03:30:35 +0300
commit1c7fab70df085d866a3765955f397ca2b4025b15 (patch)
treeec88a6b4b61d85f1dd7eb8706f5b609a7970a116 /include/trace/events/skb.h
parent85125597419aec3aa7b8f3b8713e415f997796f2 (diff)
downloadlinux-1c7fab70df085d866a3765955f397ca2b4025b15.tar.xz
net: skb: use kfree_skb_reason() in __udp4_lib_rcv()
Replace kfree_skb() with kfree_skb_reason() in __udp4_lib_rcv. New drop reason 'SKB_DROP_REASON_UDP_CSUM' is added for udp csum error. Signed-off-by: Menglong Dong <imagedong@tencent.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/trace/events/skb.h')
-rw-r--r--include/trace/events/skb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/trace/events/skb.h b/include/trace/events/skb.h
index faa7d068a7bc..3e042ca2cedb 100644
--- a/include/trace/events/skb.h
+++ b/include/trace/events/skb.h
@@ -15,6 +15,7 @@
EM(SKB_DROP_REASON_PKT_TOO_SMALL, PKT_TOO_SMALL) \
EM(SKB_DROP_REASON_TCP_CSUM, TCP_CSUM) \
EM(SKB_DROP_REASON_TCP_FILTER, TCP_FILTER) \
+ EM(SKB_DROP_REASON_UDP_CSUM, UDP_CSUM) \
EMe(SKB_DROP_REASON_MAX, MAX)
#undef EM