Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Nov 2003 10:53:55 -0800 (PST)
From:      John Polstra <jdp@polstra.com>
To:        Brooks Davis <brooks@one-eyed-alien.net>
Cc:        freebsd-net@freebsd.org
Subject:   Re: what about 5000 .. 10000 VLANs in one system?
Message-ID:  <XFMail.20031114105355.jdp@polstra.com>
In-Reply-To: <20031114184700.GC28455@Odin.AC.HMC.Edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.20031114105355.jdp>