From: Eric Dumazet Date: Sat, 24 Oct 2009 13:13:17 +0000 (-0700) Subject: rtnetlink: speedup rtnl_dump_ifinfo() X-Git-Tag: v2.6.33-rc1~388^2~705 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c28bd0b8ec4d128bd7660671d1b626b0abc471f;p=pandora-kernel.git rtnetlink: speedup rtnl_dump_ifinfo() When handling large number of netdevice, rtnl_dump_ifinfo() is very slow because it has O(N^2) complexity. Instead of scanning one single list, we can use the 256 sub lists of the dev_index hash table. This considerably speedups "ip link" operations Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed