Mihai Maruseac f04565ddf5 dev: use name hash for dev_seq_ops
Instead of using the dev->next chain and trying to resync at each call to
dev_seq_start, use the name hash, keeping the bucket and the offset in
seq->private field.

Tests revealed the following results for ifconfig > /dev/null
	* 1000 interfaces:
		* 0.114s without patch
		* 0.089s with patch
	* 3000 interfaces:
		* 0.489s without patch
		* 0.110s with patch
	* 5000 interfaces:
		* 1.363s without patch
		* 0.250s with patch
	* 128000 interfaces (other setup):
		* ~100s without patch
		* ~30s with patch

Signed-off-by: Mihai Maruseac <mmaruseac@ixiacom.com>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2011-10-21 02:54:38 -04:00
..
2011-10-19 03:10:46 -04:00
2011-10-21 02:54:38 -04:00
2011-10-17 19:18:42 -04:00
2010-07-12 12:57:55 -07:00
2010-11-28 18:24:14 -08:00
2010-07-12 12:57:55 -07:00
2011-10-20 17:00:21 -04:00
2011-10-13 16:05:07 -04:00
2011-10-19 03:10:46 -04:00