Al Viro e1b4b9f398 [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 <viro@zeniv.linux.org.uk>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
2006-12-13 16:48:23 -08:00
..
2006-12-08 08:28:44 -08:00
2006-12-12 08:37:51 -08:00
2006-12-11 14:35:00 -08:00
2006-11-05 14:11:25 -08:00
2006-12-06 20:14:22 -08:00
2006-08-05 21:15:58 -07:00
2006-12-02 21:21:23 -08:00
2006-12-02 21:24:02 -08:00
2006-12-07 00:11:33 -08:00
2006-12-07 08:39:25 -08:00
2006-12-08 08:28:50 -08:00
2006-09-22 14:53:34 -07:00
2006-12-08 08:28:48 -08:00