VirtualBox

Changeset 8300 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Apr 22, 2008 3:18:45 PM (17 years ago)
Author:
vboxsync
Message:

fixed internal networking after last network notification update

File:
1 edited

Legend:

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

    r8155 r8300  
    317317 * @returns VBox status code on other errors.
    318318 * @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 */
     320static int drvIntNetAsyncIoWaitForSpace(PDRVINTNET pThis)
     321{
     322    LogFlow(("drvIntNetAsyncIoWaitForSpace:\n"));
    324323    STAM_PROFILE_ADV_STOP(&pThis->StatReceive, a);
    325324    int rc = pThis->pPort->pfnWaitReceiveAvail(pThis->pPort, RT_INDEFINITE_WAIT);
     
    374373                 */
    375374                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)
    378377                {
    379378#ifdef LOG_ENABLED
     
    397396                     * Wait for sufficient space to become available and then retry.
    398397                     */
    399                     int rc = drvIntNetAsyncIoWaitForSpace(pThis, cbFrame);
     398                    rc = drvIntNetAsyncIoWaitForSpace(pThis);
    400399                    if (VBOX_FAILURE(rc))
    401400                    {
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