From: Eric Dumazet Date: Thu, 12 Nov 2009 04:11:50 +0000 (+0000) Subject: ipv6: speedup inet6_dump_addr() X-Git-Tag: v2.6.33-rc1~388^2~377 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=234b27c3fd58fc0e15c04dd0fbf4337fac9c2a06;p=pandora-kernel.git ipv6: speedup inet6_dump_addr() When handling large number of netdevices, inet6_dump_addr() is very slow because it has O(N^2) complexity. Instead of scanning one single list, we can use the NETDEV_HASHENTRIES sub lists of the dev_index hash table, and RCU lookups. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed