* [PATCH] net: increase IP_TUNNEL_RECURSION_LIMIT to 5
@ 2026-04-02 22:23 Chris J Arges
2026-04-03 23:10 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: Chris J Arges @ 2026-04-02 22:23 UTC (permalink / raw)
To: pabeni, bestswngs
Cc: kernel-team, Chris J Arges, David S. Miller, David Ahern,
Eric Dumazet, Jakub Kicinski, Simon Horman, netdev, linux-kernel
In configurations with multiple tunnel layers and MPLS lwtunnel routing, a
single tunnel hop can increment the counter beyond this limit. This causes
packets to be dropped with the "Dead loop on virtual device" message even
when a routing loop doesn't exist.
Increase IP_TUNNEL_RECURSION_LIMIT from 4 to 5 to handle this use-case.
Fixes: 6f1a9140ecda ("net: add xmit recursion limit to tunnel xmit functions")
Link: https://lore.kernel.org/netdev/88deb91b-ef1b-403c-8eeb-0f971f27e34f@redhat.com/
Signed-off-by: Chris J Arges <carges@cloudflare.com>
---
include/net/ip_tunnels.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/net/ip_tunnels.h b/include/net/ip_tunnels.h
index 1f577a4f8ce9..d708b66e55cd 100644
--- a/include/net/ip_tunnels.h
+++ b/include/net/ip_tunnels.h
@@ -32,7 +32,7 @@
* recursion involves route lookups and full IP output, consuming much
* more stack per level, so a lower limit is needed.
*/
-#define IP_TUNNEL_RECURSION_LIMIT 4
+#define IP_TUNNEL_RECURSION_LIMIT 5
/* Keep error state on tunnel for 30 sec */
#define IPTUNNEL_ERR_TIMEO (30*HZ)
--
2.43.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] net: increase IP_TUNNEL_RECURSION_LIMIT to 5
2026-04-02 22:23 [PATCH] net: increase IP_TUNNEL_RECURSION_LIMIT to 5 Chris J Arges
@ 2026-04-03 23:10 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2026-04-03 23:10 UTC (permalink / raw)
To: Chris J Arges
Cc: pabeni, bestswngs, kernel-team, davem, dsahern, edumazet, kuba,
horms, netdev, linux-kernel
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Thu, 2 Apr 2026 17:23:16 -0500 you wrote:
> In configurations with multiple tunnel layers and MPLS lwtunnel routing, a
> single tunnel hop can increment the counter beyond this limit. This causes
> packets to be dropped with the "Dead loop on virtual device" message even
> when a routing loop doesn't exist.
>
> Increase IP_TUNNEL_RECURSION_LIMIT from 4 to 5 to handle this use-case.
>
> [...]
Here is the summary with links:
- net: increase IP_TUNNEL_RECURSION_LIMIT to 5
https://git.kernel.org/netdev/net/c/77facb35227c
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-04-03 23:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-02 22:23 [PATCH] net: increase IP_TUNNEL_RECURSION_LIMIT to 5 Chris J Arges
2026-04-03 23:10 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox