Re: vlan patch
From: Andrew Thompson (thompsa_at_freebsd.org)
Date: 10/19/05
- Previous message: Holm Tiffe: "urgent: RELENG_5 ipfw/nat/IPSEC Problem.."
- Maybe in reply to: Andrew Thompson: "vlan patch"
- Next in thread: Gleb Smirnoff: "Re: vlan patch"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 20 Oct 2005 10:20:57 +1300 To: Andre Oppermann <andre@freebsd.org>
On Wed, Oct 19, 2005 at 01:19:27PM +0200, Andre Oppermann wrote:
> Andrew Thompson wrote:
> >
> > Hi,
> >
> > It has always bugged me how the vlan code traverses the linked-list for
> > each incoming packet to find the right ifvlan, I have this patch which
> > attempts to fix this.
> >
>
> I like the concept. You may want to switch to direct indexing only
> when the number of vlan exceeds 10 or so.
>
Thanks for the feedback (and others too),
I have updated the patch to switch between array and linked-list
searching depending on the number of vlans.
cheers,
Andrew
_______________________________________________
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"
- text/plain attachment: if_vlan12.diff
- Previous message: Holm Tiffe: "urgent: RELENG_5 ipfw/nat/IPSEC Problem.."
- Maybe in reply to: Andrew Thompson: "vlan patch"
- Next in thread: Gleb Smirnoff: "Re: vlan patch"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|