From: Ben Pfaff Date: Fri, 4 Oct 2013 15:47:16 +0000 (-0700) Subject: ofproto-dpif-xlate: Limit memory and time that translation can consume. X-Git-Tag: sliver-openvswitch-2.0.90-1~11^2~4 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;ds=sidebyside;h=98b07853dfd6046938c41937d60ce693437c1f25;hp=98b07853dfd6046938c41937d60ce693437c1f25;p=sliver-openvswitch.git ofproto-dpif-xlate: Limit memory and time that translation can consume. The resubmit depth has been limited to MAX_RESUBMIT_RECURSION, currently 64, for a long time. But the flow "actions=resubmit:1, resubmit:2, output:1" generates about 2**MAX_RESUBMIT_RECURSION output actions, exhausting memory. This commit fixes the problem. Such a flow also requires 2**MAX_RESUBMIT_RECURSION time for translation. This commit fixes that problem too. Bug #19277. Reported-by: Paul Ingram Signed-off-by: Ben Pfaff Acked-by: Justin Pettit ---