VirtualBox

Changeset 10845 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Jul 23, 2008 9:53:40 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
33632
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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    {
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