VirtualBox

Changeset 498 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Feb 1, 2007 10:15:07 AM (18 years ago)
Author:
vboxsync
Message:

Another update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/DevPCNet.cpp

    r497 r498  
    10551055    if (PDMCritSectIsOwner(&pData->CritSect) == false)
    10561056    {
    1057         int rc = PDMCritSectEnter(&pData->CritSect, VERR_SEM_BUSY);
    1058         AssertReleaseRC(rc);
    1059         /* Check if we can do something now */
    1060         pcnetPollRxTx(pData);
    1061         pcnetUpdateIrq(pData);
    1062         PDMCritSectLeave(&pData->CritSect);
     1057        if (    (GCPhys >= pData->GCTDRA && GCPhys + cbBuf < pcnetTdraAddr(pData, 0))
     1058#ifdef PCNET_MONITOR_RECEIVE_RING
     1059            ||  (GCPhys >= pData->GCRDRA && GCPhys + cbBuf < pcnetRdraAddr(pData, 0))
     1060#endif
     1061           )
     1062        {
     1063            int rc = PDMCritSectEnter(&pData->CritSect, VERR_SEM_BUSY);
     1064            AssertReleaseRC(rc);
     1065            /* Check if we can do something now */
     1066            pcnetPollRxTx(pData);
     1067            pcnetUpdateIrq(pData);
     1068            PDMCritSectLeave(&pData->CritSect);
     1069        }
    10631070    }
    10641071    return VINF_SUCCESS;
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