VirtualBox

Changeset 10845

Show
Ignore:
Timestamp:
07/23/08 23:53:40 (2 months ago)
Author:
vboxsync
Message:

intnet: Don't yield on overflow if the interface is inactive.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/VBox/Devices/Network/SrvIntNetR0.cpp

    r10843 r10845  
    481481     * But don't let a unresponsive VM harm performance, so give up after a couple of tries. 
    482482     */ 
    483     if (pIf->cYields < 100) 
     483    if (    pIf->fActive 
     484        &&  pIf->cYields < 100) 
    484485    { 
    485486        unsigned cYields = 10; 
     
    488489     * Scheduling hack, for unicore machines primarily. 
    489490     */ 
    490     if (    pIf->cYields < 4 /* just twice */ 
     491    if (    pIf->fActive 
     492        &&  pIf->cYields < 4 /* just twice */ 
    491493        &&  pIfSender /* but not if it's from the trunk */) 
    492494    { 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy