Searched hist:"84 d2697d9649339215675551eae28ba04068dea1" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/net/ipv6/ |
H A D | addrconf.c | diff 434a8a58d75faa7170807a7ac2fcf7f3d85a0dc3 Wed Nov 11 20:53:00 CST 2009 David S. Miller <davem@davemloft.net> ipv6: Remove unused var in inet6_dump_ifinfo()
Reported by Stephen Rothwell:
-------------------- Today's linux-next build (x86_64 allmodconfig) produced this warning:
net/ipv6/addrconf.c: In function 'inet6_dump_ifinfo': net/ipv6/addrconf.c:3833: warning: unused variable 'err'
Introduced by commit 84d2697d9649339215675551eae28ba04068dea1 ("ipv6: speedup inet6_dump_ifinfo()"). --------------------
Signed-off-by: David S. Miller <davem@davemloft.net> diff 84d2697d9649339215675551eae28ba04068dea1 Mon Nov 09 06:11:28 CST 2009 Eric Dumazet <eric.dumazet@gmail.com> ipv6: speedup inet6_dump_ifinfo()
When handling large number of netdevice, inet6_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, and RCU lookups.
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
|