Changeset 8300 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Apr 22, 2008 3:18:45 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DrvIntNet.cpp
r8155 r8300 317 317 * @returns VBox status code on other errors. 318 318 * @param pThis Pointer to the instance data. 319 * @param cbFrame The frame size. 320 */ 321 static int drvIntNetAsyncIoWaitForSpace(PDRVINTNET pThis, size_t cbFrame) 322 { 323 LogFlow(("drvIntNetAsyncIoWaitForSpace: cbFrame=%zu\n", cbFrame)); 319 */ 320 static int drvIntNetAsyncIoWaitForSpace(PDRVINTNET pThis) 321 { 322 LogFlow(("drvIntNetAsyncIoWaitForSpace:\n")); 324 323 STAM_PROFILE_ADV_STOP(&pThis->StatReceive, a); 325 324 int rc = pThis->pPort->pfnWaitReceiveAvail(pThis->pPort, RT_INDEFINITE_WAIT); … … 374 373 */ 375 374 size_t cbFrame = pHdr->cbFrame; 376 size_t cbMax= pThis->pPort->pfnWaitReceiveAvail(pThis->pPort, 0);377 if ( cbMax >= cbFrame)375 int rc = pThis->pPort->pfnWaitReceiveAvail(pThis->pPort, 0); 376 if (rc == VINF_SUCCESS) 378 377 { 379 378 #ifdef LOG_ENABLED … … 397 396 * Wait for sufficient space to become available and then retry. 398 397 */ 399 int rc = drvIntNetAsyncIoWaitForSpace(pThis, cbFrame);398 rc = drvIntNetAsyncIoWaitForSpace(pThis); 400 399 if (VBOX_FAILURE(rc)) 401 400 {
Note:
See TracChangeset
for help on using the changeset viewer.