PERFORCE change 161793 for review

Brooks Davis brooks at freebsd.org
Sat May 9 19:43:58 UTC 2009


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 at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/p4-projects/attachments/20090509/e68d0d3c/attachment.pgp


More information about the p4-projects mailing list