netdev
[Top] [All Lists]

Re: PATCH 2.2.14 net/core/dev.c

To: dlr@xxxxxxxxxx
Subject: Re: PATCH 2.2.14 net/core/dev.c
From: kuznet@xxxxxxxxxxxxx
Date: Mon, 1 May 2000 22:37:58 +0400 (MSK DST)
Cc: netdev@xxxxxxxxxxx
In-reply-to: <390C998A.42873E21@xxxxxxxxxxxxxxxxxx> from "Daniel L. Rall" at May 1, 0 01:13:12 am
Sender: owner-netdev@xxxxxxxxxxx
Hello!

> I rewrote the dev_alloc_name() function in the 2.2.14 Linux kernel's
> net/core/dev.c module.  It had an apparently artificial limitation on
> number of network devices of the same type allowed (100),

It is not artificial limitation but absolutely required fool-proof
protection. Before creating more devices, you have to think about
accesses to device list (which cannot be list after this, certainly).

To be honest, for now any attempt to make a module potentially
creating large number of devices is pure bug, because their designers
_know_ that accesses to device list are poorly programmed in core
and _can_ organize code more friendly to existing infrastructure.
VLAN is the best example of wrong approach, all these innumerous
pseudo-devices do nothing useful but eating resources,
one multipoint device is more than enough as rule.

Alexey

<Prev in Thread] Current Thread [Next in Thread>