Changeset 22250 in vbox
- Timestamp:
- Aug 14, 2009 2:08:14 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DrvNAT.cpp
r22219 r22250 167 167 STAMCOUNTER StatQueuePktSent; /**< counting packet sent via PDM queue */ 168 168 STAMCOUNTER StatQueuePktDropped; /**< counting packet drops by PDM queue */ 169 STAMCOUNTER StatConsumerFalse; 169 170 #ifdef SLIRP_SPLIT_CAN_OUTPUT 170 171 PPDMTHREAD thrNATRx; … … 660 661 #ifndef SLIRP_SPLIT_CAN_OUTPUT 661 662 if (RT_FAILURE(pThis->pPort->pfnWaitReceiveAvail(pThis->pPort, 0))) 663 { 664 STAM_COUNTER_INC(&pThis->StatConsumerFalse); 662 665 return false; 666 } 663 667 #endif 664 668 rc = pThis->pPort->pfnReceive(pThis->pPort, pItem->pu8Buf, pItem->cb); … … 827 831 PDMDrvHlpSTAMDeregister(pDrvIns, &pThis->StatQueuePktSent); 828 832 PDMDrvHlpSTAMDeregister(pDrvIns, &pThis->StatQueuePktDropped); 833 PDMDrvHlpSTAMDeregister(pDrvIns, &pThis->StatConsumerFalse); 829 834 #endif 830 835 } … … 962 967 PDMDrvHlpSTAMRegisterF(pDrvIns, &pThis->StatQueuePktDropped, STAMTYPE_COUNTER, 963 968 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" 964 972 " queue", "/Drivers/NAT%u/QueuePacketDropped", pDrvIns->iInstance); 965 973 #endif
Note:
See TracChangeset
for help on using the changeset viewer.