what about 5000 .. 10000 VLANs in one system?

John Polstra jdp at polstra.com
Fri Nov 14 10:53:57 PST 2003


On 14-Nov-2003 Brooks Davis wrote:
> 
> I think is should work, but performance may be poor.  Currently,
> vlan_input() finds the correct vlan by searching the list of all vlans
> until it finds the correct one.  For that many vlans, it might be
> necessicary to modify the code to use some form of balanced tree instead
> of a simple list.  This should be fairly straight forward to fix.

Why not simply index directly into an array of 4096 pointers?  Anybody
running that many VLANs can afford the extra 16 kB per physical
interface.

John


More information about the freebsd-net mailing list