VirtualBox

Changeset 8599 in vbox for trunk/src


Ignore:
Timestamp:
May 5, 2008 2:33:41 PM (17 years ago)
Author:
vboxsync
Message:

PCNet: fix for broken hostif for with certain guests

File:
1 edited

Legend:

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

    r8314 r8599  
    15811581    pData->aCSR[0] &= ~0x0004;       /* clear STOP bit */
    15821582    pData->aCSR[0] |=  0x0002;       /* STRT */
     1583    pcnetPollTimer(pData);           /* start timer if it was stopped */
    15831584}
    15841585
     
    25652566    pcnetUpdateIrq(pData);
    25662567
    2567     if (RT_LIKELY(!CSR_STOP(pData) && !CSR_SPND(pData) && !CSR_DPOLL(pData)))
     2568    /* If the receive thread is waiting for new descriptors, poll TX/RX even if polling
     2569     * disabled. We wouldn't need to poll for new TX descriptors in that case but it will
     2570     * not hurt as waiting for RX descriptors should occur very seldom */
     2571    if (   RT_UNLIKELY(pData->fMaybeOutOfSpace)
     2572        || RT_LIKELY(!CSR_STOP(pData) && !CSR_SPND(pData) && !CSR_DPOLL(pData)))
    25682573    {
    25692574        /* We ensure that we poll at least every 2ms (500Hz) but not more often than
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