From: David S. Miller Date: Mon, 25 Oct 2010 19:51:55 +0000 (-0700) Subject: net: Increase xmit RECURSION_LIMIT to 10. X-Git-Tag: v2.6.37-rc1~88^2~47 X-Git-Url: https://bbs.cooldavid.org/git/?p=net-next-2.6.git;a=commitdiff_plain;h=11a766ce915fc9f8663714eac6d59239388534ea net: Increase xmit RECURSION_LIMIT to 10. Three is definitely too low, and we know from reports that GRE tunnels stacked as deeply as 37 levels cause stack overflows, so pick some reasonable value between those two. Signed-off-by: David S. Miller --- diff --git a/net/core/dev.c b/net/core/dev.c index 78b5a89b0f4..2c7da3ab468 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -2213,7 +2213,7 @@ static inline int __dev_xmit_skb(struct sk_buff *skb, struct Qdisc *q, } static DEFINE_PER_CPU(int, xmit_recursion); -#define RECURSION_LIMIT 3 +#define RECURSION_LIMIT 10 /** * dev_queue_xmit - transmit a buffer