summaryrefslogtreecommitdiff
path: root/include/trace
diff options
context:
space:
mode:
authorMenglong Dong <imagedong@tencent.com>2022-04-13 11:15:55 +0300
committerDavid S. Miller <davem@davemloft.net>2022-04-13 15:09:57 +0300
commit2edc1a383fda8d2f580216292dfd9daeae691e47 (patch)
tree0a844bee77cd715bb3d816c086b1c9ac5d7a84c5 /include/trace
parent3ae42cc8092be3201093f277ac3b3d62c97a3767 (diff)
downloadlinux-2edc1a383fda8d2f580216292dfd9daeae691e47.tar.xz
net: ip: add skb drop reasons to ip forwarding
Replace kfree_skb() which is used in ip6_forward() and ip_forward() with kfree_skb_reason(). The new drop reason 'SKB_DROP_REASON_PKT_TOO_BIG' is introduced for the case that the length of the packet exceeds MTU and can't fragment. 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>
Diffstat (limited to 'include/trace')
-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 0acac7e5a019..2da72a9a5764 100644
--- a/include/trace/events/skb.h
+++ b/include/trace/events/skb.h
@@ -65,6 +65,7 @@
EM(SKB_DROP_REASON_INVALID_PROTO, INVALID_PROTO) \
EM(SKB_DROP_REASON_IP_INADDRERRORS, IP_INADDRERRORS) \
EM(SKB_DROP_REASON_IP_INNOROUTES, IP_INNOROUTES) \
+ EM(SKB_DROP_REASON_PKT_TOO_BIG, PKT_TOO_BIG) \
EMe(SKB_DROP_REASON_MAX, MAX)
#undef EM