Re: [PATCH] hashed device lookup (Does NOT meet Linus' sumission policy!)

Chris Wedgwood
2001-01-07T03:29:33Z

On Sat, Jan 06, 2001 at 02:33:27PM -0700, Ben Greear wrote:

I'm hoping that I can get a few comments on this code. It was
added to (significantly) speed up things like 'ifconfig -a' when
running with 4000 or so VLAN devices. It should also help other
instances with lots of (virtual) devices, like FrameRelay, ATM,
and possibly virtual IP interfaces. It probably won't help
'normal' users much, and in it's final form, should probably be a
selectable option in the config process.

Virtual IP interfaces in the form of ifname:<number> (e.g. eth:1) IMO
should be deprecated and removed completely in 2.5.x. It's an ugly
external wart that should be removed.

That said, if this was done -- how would things like routing daemons
and bind cope? Actually, when I think about it they can't cope with
situating like this now:

tapu:~# ip addr show lo
1: lo: <LOOPBACK,UP> mtu 3904 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet 10.0.0.1/32 scope global lo

--cw