Skip to content

Commit

Permalink
net: Increase xmit RECURSION_LIMIT to 10.
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
davem330 committed Oct 25, 2010
1 parent 0926f91 commit 11a766c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/core/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 11a766c

Please sign in to comment.