Changeset 10533 in vbox for trunk/src/VBox
- Timestamp:
- Jul 11, 2008 2:50:25 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/SrvIntNetR0.cpp
r10530 r10533 472 472 LogFlow(("intnetIfSend: pIf=%p:{.hIf=%RX32}\n", pIf, pIf->hIf)); 473 473 int rc = intnetRingWriteFrame(pIf->pIntBuf, &pIf->pIntBuf->Recv, pvFrame, cbFrame); 474 if ( VBOX_SUCCESS(rc))474 if (RT_SUCCESS(rc)) 475 475 { 476 476 pIf->cYields = 0; … … 493 493 RTThreadYield(); 494 494 rc = intnetRingWriteFrame(pIf->pIntBuf, &pIf->pIntBuf->Recv, pvFrame, cbFrame); 495 if ( VBOX_SUCCESS(rc))495 if (RT_SUCCESS(rc)) 496 496 { 497 497 STAM_REL_COUNTER_INC(&pIf->pIntBuf->cStatYieldsOk); … … 627 627 628 628 int rc = RTSemFastMutexRequest(pIf->pNetwork->FastMutex); 629 if ( VBOX_FAILURE(rc))629 if (RT_FAILURE(rc)) 630 630 return rc; 631 631 … … 701 701 */ 702 702 int rc = RTSemFastMutexRequest(pIf->pNetwork->FastMutex); 703 if ( VBOX_FAILURE(rc))703 if (RT_FAILURE(rc)) 704 704 return rc; 705 705 … … 752 752 */ 753 753 int rc = RTSemFastMutexRequest(pIf->pNetwork->FastMutex); 754 if ( VBOX_FAILURE(rc))754 if (RT_FAILURE(rc)) 755 755 return rc; 756 756 … … 789 789 */ 790 790 int rc = RTSemFastMutexRequest(pIf->pNetwork->FastMutex); 791 if ( VBOX_FAILURE(rc))791 if (RT_FAILURE(rc)) 792 792 return rc; 793 793 … … 1113 1113 //pIf->fMacSet = 0; 1114 1114 int rc = RTSemEventCreate(&pIf->Event); 1115 if ( VBOX_SUCCESS(rc))1115 if (RT_SUCCESS(rc)) 1116 1116 { 1117 1117 pIf->pSession = pSession; … … 1125 1125 const unsigned cbBuf = RT_ALIGN(sizeof(*pIf->pIntBuf), sizeof(INTNETHDR)) + cbRecv + cbSend; 1126 1126 rc = SUPR0MemAlloc(pIf->pSession, cbBuf, (PRTR0PTR)&pIf->pIntBufDefault, (PRTR3PTR)&pIf->pIntBufDefaultR3); 1127 if ( VBOX_SUCCESS(rc))1127 if (RT_SUCCESS(rc)) 1128 1128 { 1129 1129 pIf->pIntBuf = pIf->pIntBufDefault; … … 1147 1147 */ 1148 1148 rc = RTSemFastMutexRequest(pNetwork->FastMutex); 1149 if ( VBOX_SUCCESS(rc))1149 if (RT_SUCCESS(rc)) 1150 1150 { 1151 1151 pIf->pNext = pNetwork->pIFs; … … 1335 1335 RTSpinlockRelease(pIntNet->Spinlock, &Tmp); 1336 1336 1337 if ( VBOX_SUCCESS(rc))1337 if (RT_SUCCESS(rc)) 1338 1338 { 1339 1339 if (!(pCur->fFlags & INTNET_OPEN_FLAGS_PUBLIC)) 1340 1340 rc = SUPR0ObjVerifyAccess(pCur->pvObj, pSession, pCur->szName); 1341 if ( VBOX_SUCCESS(rc))1341 if (RT_SUCCESS(rc)) 1342 1342 *ppNetwork = pCur; 1343 1343 else … … 1422 1422 return VERR_NO_MEMORY; 1423 1423 int rc = RTSemFastMutexCreate(&pNew->FastMutex); 1424 if ( VBOX_SUCCESS(rc))1424 if (RT_SUCCESS(rc)) 1425 1425 { 1426 1426 //pNew->pIFs = NULL; … … 1461 1461 */ 1462 1462 rc = SUPR0ObjVerifyAccess(pNew->pvObj, pSession, pNew->szName); 1463 if ( VBOX_SUCCESS(rc))1463 if (RT_SUCCESS(rc)) 1464 1464 { 1465 1465 *ppNetwork = pNew; … … 1551 1551 */ 1552 1552 int rc = RTSemFastMutexRequest(pIntNet->FastMutex); 1553 if ( VBOX_FAILURE(rc))1553 if (RT_FAILURE(rc)) 1554 1554 return rc; 1555 1555 … … 1561 1561 if (rc == VERR_NOT_FOUND) 1562 1562 rc = intnetCreateNetwork(pIntNet, pSession, pszNetwork, enmTrunkType, pszTrunk, fFlags, &pNetwork); 1563 if ( VBOX_SUCCESS(rc))1563 if (RT_SUCCESS(rc)) 1564 1564 { 1565 1565 /* … … 1569 1569 */ 1570 1570 rc = intnetNetworkCreateIf(pNetwork, pSession, cbSend, cbRecv, phIf); 1571 if ( VBOX_FAILURE(rc))1571 if (RT_FAILURE(rc)) 1572 1572 intnetNetworkClose(pNetwork, pSession); 1573 1573 } … … 1651 1651 1652 1652 rc = RTSemFastMutexCreate(&pIntNet->FastMutex); 1653 if ( VBOX_SUCCESS(rc))1653 if (RT_SUCCESS(rc)) 1654 1654 { 1655 1655 rc = RTSpinlockCreate(&pIntNet->Spinlock); 1656 if ( VBOX_SUCCESS(rc))1656 if (RT_SUCCESS(rc)) 1657 1657 { 1658 1658 *ppIntNet = pIntNet;
Note:
See TracChangeset
for help on using the changeset viewer.