From: Jesse Gross Date: Tue, 12 Mar 2013 19:36:03 +0000 (-0700) Subject: datapath: Reduce loop limit by one to 4. X-Git-Tag: sliver-openvswitch-1.10.90-1~10^2~74 X-Git-Url: http://git.onelab.eu/?p=sliver-openvswitch.git;a=commitdiff_plain;h=09dc041596bd953a59c00d8032b1b3c8c28e695d datapath: Reduce loop limit by one to 4. We currently allow five trips through the kernel datapath before dropping the packet to protect the stack. However, there have been a few reports recently involving tunneling that this is still too much. Although it's not a complete solution, this reduces the limit by one to balance safety in common situations with flexibility. Bug #15477 Reported-by: Paul Ingram Reported-by: 謝秉融 Signed-off-by: Jesse Gross Acked-by: Pravin B Shelar --- diff --git a/datapath/actions.c b/datapath/actions.c index bc126a7f5..0dac65860 100644 --- a/datapath/actions.c +++ b/datapath/actions.c @@ -532,7 +532,7 @@ static int do_execute_actions(struct datapath *dp, struct sk_buff *skb, /* We limit the number of times that we pass into execute_actions() * to avoid blowing out the stack in the event that we have a loop. */ -#define MAX_LOOPS 5 +#define MAX_LOOPS 4 struct loop_counter { u8 count; /* Count. */