]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
net: Increase xmit RECURSION_LIMIT to 10.
authorDavid S. Miller <davem@davemloft.net>
Mon, 25 Oct 2010 19:51:55 +0000 (12:51 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Oct 2010 19:51:55 +0000 (12:51 -0700)
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 <davem@davemloft.net>
net/core/dev.c

index 78b5a89b0f40a455e4229fb04b291e87877b491b..2c7da3ab4684e26decc34afdbf883fbf96237461 100644 (file)
@@ -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