Skip to content

Commit 77facb3

Browse files
argeskuba-moo
authored andcommitted
net: increase IP_TUNNEL_RECURSION_LIMIT to 5
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: 6f1a914 ("net: add xmit recursion limit to tunnel xmit functions") Link: https://lore.kernel.org/netdev/[email protected]/ Signed-off-by: Chris J Arges <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent fde29fd commit 77facb3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/net/ip_tunnels.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
* recursion involves route lookups and full IP output, consuming much
3333
* more stack per level, so a lower limit is needed.
3434
*/
35-
#define IP_TUNNEL_RECURSION_LIMIT 4
35+
#define IP_TUNNEL_RECURSION_LIMIT 5
3636

3737
/* Keep error state on tunnel for 30 sec */
3838
#define IPTUNNEL_ERR_TIMEO (30*HZ)

0 commit comments

Comments
 (0)