VirtualBox

Changeset 497 in vbox


Ignore:
Timestamp:
Feb 1, 2007 10:11:00 AM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
18102
Message:

Update. Rather useless to monitor the receive ring descriptors.

File:
1 edited

Legend:

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

    r496 r497  
    989989    {
    990990        if (    (GCPhysFault >= pData->GCTDRA && GCPhysFault + cb < pcnetTdraAddr(pData, 0))
    991             ||  (GCPhysFault >= pData->GCRDRA && GCPhysFault + cb < pcnetRdraAddr(pData, 0)))
     991#ifdef PCNET_MONITOR_RECEIVE_RING
     992            ||  (GCPhysFault >= pData->GCRDRA && GCPhysFault + cb < pcnetRdraAddr(pData, 0))
     993#endif
     994           )
    992995        {
    993996            int rc = PDMCritSectEnter(&pData->CritSect, VERR_SEM_BUSY);
     
    12061209    /** @todo unregister order not correct! */
    12071210
     1211#ifdef PCNET_MONITOR_RECEIVE_RING
    12081212    if (pData->GCRDRA != pData->RDRAPhysOld || CSR_RCVRL(pData) != pData->cbRDRAOld)
    12091213    {
     
    12271231        pData->cbRDRAOld   = pcnetRdraAddr(pData, 0);
    12281232    }
    1229 
     1233#endif
     1234
     1235#ifdef PCNET_MONITOR_RECEIVE_RING
    12301236    /* 3 possibilities:
    12311237     * 1) TDRA on different physical page as RDRA
     
    12411247        ||  TDRAPageStart > RDRAPageEnd)
    12421248    {
     1249#endif
    12431250        /* 1) */
    12441251        if (pData->GCTDRA != pData->TDRAPhysOld || CSR_XMTRL(pData) != pData->cbTDRAOld)
     
    12631270            pData->cbTDRAOld   = pcnetTdraAddr(pData, 0);
    12641271        }
     1272#ifdef PCNET_MONITOR_RECEIVE_RING
    12651273    }
    12661274    else
     
    12751283    }
    12761284    /* else 2) */
     1285#endif
    12771286}
    12781287#endif /* PCNET_NO_POLLING */
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