Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 May 2009 14:15:41 -0500
From:      Brooks Davis <brooks@freebsd.org>
To:        Marko Zec <zec@freebsd.org>
Cc:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   Re: PERFORCE change 161793 for review
Message-ID:  <20090509191540.GA85588@lor.one-eyed-alien.net>
In-Reply-To: <200905082144.n48LiKYP021818@repoman.freebsd.org>
References:  <200905082144.n48LiKYP021818@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
On Fri, May 08, 2009 at 09:44:20PM +0000, Marko Zec wrote:
> http://perforce.freebsd.org/chv.cgi?CH=161793
> 
> Change 161793 by zec@zec_tpx32 on 2009/05/08 21:43:51
> 
> 	A controversial hack: when allocating if_unit numbers for
> 	cloning ifnets, do NOT resort to bitmap mappings, but
> 	iterate through all existing ifnets in a particular vnet
> 	as long as a free unit number is found.
> 	
> 	The problem here is that we are switchng from a O(n) to
> 	a O(n**2) search method with more work being done in each
> 	iteration.  So this should be revisited RSN.

IMO the best solution for now is to retain the global namespace and
thus not worry about virtualizing this any more than we do for em0.
This must not make it in to current since if it did, users with tunnel
brokers would be very unhappy.

-- Brooks

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (FreeBSD)

iD8DBQFKBdZcXY6L6fI4GtQRAizkAJ4pulghZcsPrlPiNMfhCTF/RYS+KwCg4IL7
t5qAy6ouRY+8PURbcf9UjZE=
=HTfW
-----END PGP SIGNATURE-----

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