VirtualBox

Changeset 22250 in vbox


Ignore:
Timestamp:
Aug 14, 2009 2:08:14 AM (15 years ago)
Author:
vboxsync
Message:

NAT: counter consumer false

File:
1 edited

Legend:

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

    r22219 r22250  
    167167    STAMCOUNTER             StatQueuePktSent;       /**< counting packet sent via PDM queue */
    168168    STAMCOUNTER             StatQueuePktDropped;    /**< counting packet drops by PDM queue */
     169    STAMCOUNTER             StatConsumerFalse;
    169170#ifdef SLIRP_SPLIT_CAN_OUTPUT
    170171    PPDMTHREAD              thrNATRx;
     
    660661#ifndef SLIRP_SPLIT_CAN_OUTPUT
    661662    if (RT_FAILURE(pThis->pPort->pfnWaitReceiveAvail(pThis->pPort, 0)))
     663    {
     664        STAM_COUNTER_INC(&pThis->StatConsumerFalse);
    662665        return false;
     666    }
    663667#endif
    664668    rc = pThis->pPort->pfnReceive(pThis->pPort, pItem->pu8Buf, pItem->cb);
     
    827831    PDMDrvHlpSTAMDeregister(pDrvIns, &pThis->StatQueuePktSent);
    828832    PDMDrvHlpSTAMDeregister(pDrvIns, &pThis->StatQueuePktDropped);
     833    PDMDrvHlpSTAMDeregister(pDrvIns, &pThis->StatConsumerFalse);
    829834#endif
    830835}
     
    962967        PDMDrvHlpSTAMRegisterF(pDrvIns, &pThis->StatQueuePktDropped, STAMTYPE_COUNTER,
    963968                              STAMVISIBILITY_ALWAYS, STAMUNIT_COUNT, "counting packet sent via PDM"
     969                              " queue", "/Drivers/NAT%u/QueuePacketDropped", pDrvIns->iInstance);
     970        PDMDrvHlpSTAMRegisterF(pDrvIns, &pThis->StatConsumerFalse, STAMTYPE_COUNTER,
     971                              STAMVISIBILITY_ALWAYS, STAMUNIT_COUNT, "counting PDM consumer false"
    964972                              " queue", "/Drivers/NAT%u/QueuePacketDropped", pDrvIns->iInstance);
    965973#endif
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