Re: routable interfaces WAS( Re: [PATCH] hashed device lookup (DoesNOT meet Linus' sumission policy!)

jamal
2001-01-07T19:07:04Z

On Sun, 7 Jan 2001, Gleb Natapov wrote:

> And what about bonding device? What major number should they use?

Would that include several ifindeces?
use standards. 802.3ad(?). Didnt Intel release some code on this or
are they still playing the big bad corporation? Normaly standards will
take care of things like MIBs etc.

> Ifindexes not reusable so in your scheme we should have separate minor
> counter for each major interface, what for?

Still each "interface" has its own ifindex, so counters will be
per-interface.
Here's what i mean:

netdevice (major part of ifindex, proto unaware link layer)
|
|
--> protocol level (IPV4, V6 etc)
| ..........|
| |--> interface 2^16
|
-->interface 1

The interface could be looked as something on top of a device (struct
ifa) and is distinguishable on the device by its minor number. EG
ifindex 1002 is eth0:2.
I could write a whole lengthy RFC if it is of interest and we could
use that as a starting point for discussion.
Note, i dont think this would affect the core code other than the setup
part.

cheers,
jamal