summaryrefslogtreecommitdiff
path: root/include/net/dropreason.h
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2022-10-29 15:45:20 +0000
committerJakub Kicinski <kuba@kernel.org>2022-10-31 20:14:27 -0700
commit3bdfb04f13ebdd4ae50fc5dc595663874781e48c (patch)
tree042e3e6a4c27c96c782f403bd60b1eec3780b3bb /include/net/dropreason.h
parent77adfd3a1d44c4730fd2af99b497e04ddc2b5837 (diff)
net: dropreason: add SKB_DROP_REASON_FRAG_TOO_FAR
IPv4 reassembly unit can decide to drop frags based on /proc/sys/net/ipv4/ipfrag_max_dist sysctl. Add a specific drop reason to track this specific and weird case. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/net/dropreason.h')
-rw-r--r--include/net/dropreason.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/net/dropreason.h b/include/net/dropreason.h
index 1d45a74148c3..70539288f995 100644
--- a/include/net/dropreason.h
+++ b/include/net/dropreason.h
@@ -70,6 +70,7 @@
FN(PKT_TOO_BIG) \
FN(DUP_FRAG) \
FN(FRAG_REASM_TIMEOUT) \
+ FN(FRAG_TOO_FAR) \
FNe(MAX)
/**
@@ -307,6 +308,11 @@ enum skb_drop_reason {
/** @SKB_DROP_REASON_FRAG_REASM_TIMEOUT: fragment reassembly timeout */
SKB_DROP_REASON_FRAG_REASM_TIMEOUT,
/**
+ * @SKB_DROP_REASON_FRAG_TOO_FAR: ipv4 fragment too far.
+ * (/proc/sys/net/ipv4/ipfrag_max_dist)
+ */
+ SKB_DROP_REASON_FRAG_TOO_FAR,
+ /**
* @SKB_DROP_REASON_MAX: the maximum of drop reason, which shouldn't be
* used as a real 'reason'
*/