summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2026-03-14 18:38:08 +0300
committerJakub Kicinski <kuba@kernel.org>2026-03-14 18:38:08 +0300
commitbfeb2c029e7b6839928f5167b5c44ba41836d402 (patch)
treed6a54821ca92fa539c8f1bf1113fe9b3f341abb5 /include
parentb58e3a2d014567a9092eb026fe677ff4bed5af38 (diff)
parent045f977dd4ebdd3ad8e96cf684917adfc5805adb (diff)
downloadlinux-bfeb2c029e7b6839928f5167b5c44ba41836d402.tar.xz
Merge branch 'net-add-skb_drop_reason_recursion_limit'
Eric Dumazet says: ==================== net: add SKB_DROP_REASON_RECURSION_LIMIT Add a new drop reason : SKB_DROP_REASON_RECURSION_LIMIT Used for packets dropped in a too deep virtual device chain, from tunnels and __dev_queue_xmit() __dev_queue_xmit() can also return SKB_DROP_REASON_DEV_READY ==================== Link: https://patch.msgid.link/20260312201824.203093-1-edumazet@google.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include')
-rw-r--r--include/net/dropreason-core.h3
-rw-r--r--include/net/ip6_tunnel.h2
2 files changed, 4 insertions, 1 deletions
diff --git a/include/net/dropreason-core.h b/include/net/dropreason-core.h
index 5c8c2eb3d2c5..de61dd5dbfd9 100644
--- a/include/net/dropreason-core.h
+++ b/include/net/dropreason-core.h
@@ -123,6 +123,7 @@
FN(PFMEMALLOC) \
FN(PSP_INPUT) \
FN(PSP_OUTPUT) \
+ FN(RECURSION_LIMIT) \
FNe(MAX)
/**
@@ -582,6 +583,8 @@ enum skb_drop_reason {
SKB_DROP_REASON_PSP_INPUT,
/** @SKB_DROP_REASON_PSP_OUTPUT: PSP output checks failed */
SKB_DROP_REASON_PSP_OUTPUT,
+ /** @SKB_DROP_REASON_RECURSION_LIMIT: Dead loop on virtual device. */
+ SKB_DROP_REASON_RECURSION_LIMIT,
/**
* @SKB_DROP_REASON_MAX: the maximum of core drop reasons, which
* shouldn't be used as a real 'reason' - only for tracing code gen
diff --git a/include/net/ip6_tunnel.h b/include/net/ip6_tunnel.h
index 359b595f1df9..b99805ee2fd1 100644
--- a/include/net/ip6_tunnel.h
+++ b/include/net/ip6_tunnel.h
@@ -162,7 +162,7 @@ static inline void ip6tunnel_xmit(struct sock *sk, struct sk_buff *skb,
dev->name);
DEV_STATS_INC(dev, tx_errors);
}
- kfree_skb(skb);
+ kfree_skb_reason(skb, SKB_DROP_REASON_RECURSION_LIMIT);
return;
}