VirtualBox

Changeset 28042 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Apr 7, 2010 11:09:17 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
59749
Message:

NAT: BSD mbufs: before migration of slice from master to slave zone remove
it from the master's used_list first.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/slirp/misc.c

    r28034 r28042  
    190190    zone->max_items ++;
    191191    it = &((struct item *)sub_area)[-1];
     192    /* it's chunk descriptor of master zone we should remove it
     193     *  from the master list first
     194     */
     195    Assert((it->zone && it->zone->magic == ZONE_MAGIC));
     196    RTCritSectEnter(&it->zone->csZone);
     197    /*@todo should we alter count of master counters ?*/
     198    LIST_REMOVE(it, list);
     199    RTCritSectLeave(&it->zone->csZone);
    192200    /*@todo '+ zone->size' should be depend on flag */
    193201    memset(it, 0, sizeof(struct item));
Note: See TracChangeset for help on using the changeset viewer.

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