Changeset 21363 in vbox for trunk/src/VBox/Devices/Network
- Timestamp:
- Jul 7, 2009 5:10:52 PM (16 years ago)
- Location:
- trunk/src/VBox/Devices/Network
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DevE1000.cpp
r21188 r21363 4809 4809 /* Create transmit queue */ 4810 4810 rc = PDMDevHlpPDMQueueCreate(pDevIns, sizeof(PDMQUEUEITEMCORE), 1, 0, 4811 e1kTxQueueConsumer, true, &pState->pTxQueueR3);4811 e1kTxQueueConsumer, true, "E1000-Xmit", &pState->pTxQueueR3); 4812 4812 if (RT_FAILURE(rc)) 4813 4813 return rc; … … 4817 4817 /* Create the RX notifier signaller. */ 4818 4818 rc = PDMDevHlpPDMQueueCreate(pDevIns, sizeof(PDMQUEUEITEMCORE), 1, 0, 4819 e1kCanRxQueueConsumer, true, &pState->pCanRxQueueR3);4819 e1kCanRxQueueConsumer, true, "E1000-Rcv", &pState->pCanRxQueueR3); 4820 4820 if (RT_FAILURE(rc)) 4821 4821 return rc; -
trunk/src/VBox/Devices/Network/DevPCNet.cpp
r21188 r21363 5084 5084 */ 5085 5085 rc = PDMDevHlpPDMQueueCreate(pDevIns, sizeof(PDMQUEUEITEMCORE), 1, 0, 5086 pcnetXmitQueueConsumer, true, &pThis->pXmitQueueR3);5086 pcnetXmitQueueConsumer, true, "PCNet-Xmit", &pThis->pXmitQueueR3); 5087 5087 if (RT_FAILURE(rc)) 5088 5088 return rc; … … 5094 5094 */ 5095 5095 rc = PDMDevHlpPDMQueueCreate(pDevIns, sizeof(PDMQUEUEITEMCORE), 1, 0, 5096 pcnetCanRxQueueConsumer, true, &pThis->pCanRxQueueR3);5096 pcnetCanRxQueueConsumer, true, "PCNet-Rcv", &pThis->pCanRxQueueR3); 5097 5097 if (RT_FAILURE(rc)) 5098 5098 return rc; -
trunk/src/VBox/Devices/Network/DrvNAT.cpp
r21112 r21363 716 716 fUDP = true; 717 717 else 718 return PDMDrvHlpVMSetError(pThis->pDrvIns, VERR_INVALID_PARAMETER, RT_SRC_POS, 719 N_("NAT#%d: Invalid configuration value for \"Protocol\": \"%s\""), 718 return PDMDrvHlpVMSetError(pThis->pDrvIns, VERR_INVALID_PARAMETER, RT_SRC_POS, 719 N_("NAT#%d: Invalid configuration value for \"Protocol\": \"%s\""), 720 720 iInstance, szProtocol); 721 721 } … … 742 742 N_("NAT#%d: configuration error: failed to set up " 743 743 "redirection of %d to %d. Probably a conflict with " 744 "existing services or other rules"), iInstance, iHostPort, 744 "existing services or other rules"), iInstance, iHostPort, 745 745 iGuestPort); 746 746 } /* for each redir rule */ … … 822 822 bool fPassDomain = true; 823 823 GET_BOOL(rc, pThis, pCfgHandle, "PassDomain", fPassDomain); 824 824 825 825 GET_STRING_ALLOC(rc, pThis, pCfgHandle, "TFTPPrefix", pThis->pszTFTPPrefix); 826 826 GET_STRING_ALLOC(rc, pThis, pCfgHandle, "BootFile", pThis->pszBootFile); … … 833 833 * Query the network port interface. 834 834 */ 835 pThis->pPort = 836 (PPDMINETWORKPORT)pDrvIns->pUpBase->pfnQueryInterface(pDrvIns->pUpBase, 835 pThis->pPort = 836 (PPDMINETWORKPORT)pDrvIns->pUpBase->pfnQueryInterface(pDrvIns->pUpBase, 837 837 PDMINTERFACE_NETWORK_PORT); 838 838 if (!pThis->pPort) … … 840 840 N_("Configuration error: the above device/driver didn't " 841 841 "export the network port interface")); 842 pThis->pConfig = 843 (PPDMINETWORKCONFIG)pDrvIns->pUpBase->pfnQueryInterface(pDrvIns->pUpBase, 842 pThis->pConfig = 843 (PPDMINETWORKCONFIG)pDrvIns->pUpBase->pfnQueryInterface(pDrvIns->pUpBase, 844 844 PDMINTERFACE_NETWORK_CONFIG); 845 845 if (!pThis->pConfig) … … 858 858 if (RT_FAILURE(rc)) 859 859 return PDMDrvHlpVMSetError(pDrvIns, rc, RT_SRC_POS, N_("NAT#%d: Configuration error: " 860 "network '%s' describes not a valid IPv4 network"), 860 "network '%s' describes not a valid IPv4 network"), 861 861 pDrvIns->iInstance, szNetwork); 862 862 863 863 RTStrPrintf(szNetAddr, sizeof(szNetAddr), "%d.%d.%d.%d", 864 (Network & 0xFF000000) >> 24, (Network & 0xFF0000) >> 16, 864 (Network & 0xFF000000) >> 24, (Network & 0xFF0000) >> 16, 865 865 (Network & 0xFF00) >> 8, Network & 0xFF); 866 866 … … 899 899 slirp_register_statistics(pThis->pNATState, pDrvIns); 900 900 #ifdef VBOX_WITH_STATISTICS 901 PDMDrvHlpSTAMRegisterF(pDrvIns, &pThis->StatQueuePktSent, STAMTYPE_COUNTER, 901 PDMDrvHlpSTAMRegisterF(pDrvIns, &pThis->StatQueuePktSent, STAMTYPE_COUNTER, 902 902 STAMVISIBILITY_ALWAYS, STAMUNIT_COUNT, "counting packet sent viai " 903 903 "PDM queue", "/Drivers/NAT%u/QueuePacketSent", pDrvIns->iInstance); 904 PDMDrvHlpSTAMRegisterF(pDrvIns, &pThis->StatQueuePktDropped, STAMTYPE_COUNTER, 905 STAMVISIBILITY_ALWAYS, STAMUNIT_COUNT, "counting packet sent via PDM" 904 PDMDrvHlpSTAMRegisterF(pDrvIns, &pThis->StatQueuePktDropped, STAMTYPE_COUNTER, 905 STAMVISIBILITY_ALWAYS, STAMUNIT_COUNT, "counting packet sent via PDM" 906 906 " queue", "/Drivers/NAT%u/QueuePacketDropped", pDrvIns->iInstance); 907 907 #endif … … 925 925 } 926 926 927 rc = PDMDrvHlpPDMQueueCreate(pDrvIns, sizeof(DRVNATQUEUITEM), 50, 0, 928 drvNATQueueConsumer, &pThis->pSendQueue);927 rc = PDMDrvHlpPDMQueueCreate(pDrvIns, sizeof(DRVNATQUEUITEM), 50, 0, 928 drvNATQueueConsumer, "NAT", &pThis->pSendQueue); 929 929 if (RT_FAILURE(rc)) 930 930 { … … 948 948 #else 949 949 pThis->hWakeupEvent = CreateEvent(NULL, FALSE, FALSE, NULL); /* auto-reset event */ 950 slirp_register_external_event(pThis->pNATState, pThis->hWakeupEvent, 950 slirp_register_external_event(pThis->pNATState, pThis->hWakeupEvent, 951 951 VBOX_WAKEUP_EVENT_INDEX); 952 952 #endif 953 953 954 rc = PDMDrvHlpPDMThreadCreate(pDrvIns, &pThis->pThread, pThis, drvNATAsyncIoThread, 954 rc = PDMDrvHlpPDMThreadCreate(pDrvIns, &pThis->pThread, pThis, drvNATAsyncIoThread, 955 955 drvNATAsyncIoWakeup, 128 * _1K, RTTHREADTYPE_IO, "NAT"); 956 956 AssertReleaseRC(rc); 957 957 958 958 #ifdef VBOX_WITH_SLIRP_MT 959 rc = PDMDrvHlpPDMThreadCreate(pDrvIns, &pThis->pGuestThread, pThis, drvNATAsyncIoGuest, 959 rc = PDMDrvHlpPDMThreadCreate(pDrvIns, &pThis->pGuestThread, pThis, drvNATAsyncIoGuest, 960 960 drvNATAsyncIoGuestWakeup, 128 * _1K, RTTHREADTYPE_IO, "NATGUEST"); 961 961 AssertReleaseRC(rc);
Note:
See TracChangeset
for help on using the changeset viewer.