summaryrefslogtreecommitdiffstats
path: root/net/ipv4
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2022-10-29 17:45:20 +0200
committerJakub Kicinski <kuba@kernel.org>2022-11-01 04:14:27 +0100
commit3bdfb04f13ebdd4ae50fc5dc595663874781e48c (patch)
tree042e3e6a4c27c96c782f403bd60b1eec3780b3bb /net/ipv4
parentnet: dropreason: add SKB_DROP_REASON_FRAG_REASM_TIMEOUT (diff)
downloadlinux-3bdfb04f13ebdd4ae50fc5dc595663874781e48c.tar.xz
linux-3bdfb04f13ebdd4ae50fc5dc595663874781e48c.zip
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 'net/ipv4')
-rw-r--r--net/ipv4/ip_fragment.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/ip_fragment.c b/net/ipv4/ip_fragment.c
index 85e8113259c3..69c00ffdcf3e 100644
--- a/net/ipv4/ip_fragment.c
+++ b/net/ipv4/ip_fragment.c
@@ -256,7 +256,7 @@ static int ip_frag_reinit(struct ipq *qp)
}
sum_truesize = inet_frag_rbtree_purge(&qp->q.rb_fragments,
- SKB_DROP_REASON_NOT_SPECIFIED);
+ SKB_DROP_REASON_FRAG_TOO_FAR);
sub_frag_mem_limit(qp->q.fqdir, sum_truesize);
qp->q.flags = 0;