From: Al Viro Date: Tue, 12 Dec 2006 08:29:52 +0000 (-0800) Subject: [NETFILTER]: {ip,ip6,arp}_tables: fix exponential worst-case search for loops X-Git-Tag: v2.6.20-rc1~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1b4b9f3986b80d5785d91dbd8d72cfaf9fd1117;p=pandora-kernel.git [NETFILTER]: {ip,ip6,arp}_tables: fix exponential worst-case search for loops If we come to node we'd already marked as seen and it's not a part of path (i.e. we don't have a loop right there), we already know that it isn't a part of any loop, so we don't need to revisit it. That speeds the things up if some chain is refered to from several places and kills O(exp(table size)) worst-case behaviour (without sleeping, at that, so if you manage to self-LART that way, you are SOL for a long time)... Signed-off-by: Al Viro Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller --- Reading git-diff-tree failed