aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2010-10-25 15:51:55 -0400
committerDavid S. Miller <davem@davemloft.net>2010-10-25 15:51:55 -0400
commit11a766ce915fc9f8663714eac6d59239388534ea (patch)
treea796626038d96d9e1fdf53d94a7aecd5acc14803 /net
parent0926f91083f34d047abc74f1ca4fa6a9c161f7db (diff)
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 <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/core/dev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/dev.c b/net/core/dev.c
index 78b5a89b0f40..2c7da3ab4684 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,
2213} 2213}
2214 2214
2215static DEFINE_PER_CPU(int, xmit_recursion); 2215static DEFINE_PER_CPU(int, xmit_recursion);
2216#define RECURSION_LIMIT 3 2216#define RECURSION_LIMIT 10
2217 2217
2218/** 2218/**
2219 * dev_queue_xmit - transmit a buffer 2219 * dev_queue_xmit - transmit a buffer