VirtualBox

Ignore:
Timestamp:
Apr 7, 2010 8:38:00 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
59741
Message:

NAT: BSD mbufs zones allocated at the moment when the number of elements is known.
sub-zones don't allocate but borrow slices from master zones.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/slirp/bsd/kern/kern_mbuf.c

    r27869 r28034  
    313313            NULL, NULL,
    314314            MSIZE - 1, UMA_ZONE_MAXBUCKET);
     315        if (nmbclusters > 0)
     316                uma_zone_set_max(zone_mbuf, nmbclusters);
    315317
    316318        zone_clust = uma_zcreate(MBUF_CLUSTER_MEM_NAME, MCLBYTES,
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette