VirtualBox

Changeset 64740 in vbox for trunk/src/VBox/Devices/Network


Ignore:
Timestamp:
Nov 24, 2016 9:45:14 AM (8 years ago)
Author:
vboxsync
Message:

Dev/E1000: (bugref:8624) Removed link-up delay

File:
1 edited

Legend:

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

    r64684 r64740  
    7070 * in init (see @bugref{8624}).
    7171 */
    72 #define E1K_INIT_LINKUP_DELAY (500 * 1000)
     72//#define E1K_INIT_LINKUP_DELAY (500 * 1000)
    7373/** @def E1K_IMS_INT_DELAY_NS
    7474 * E1K_IMS_INT_DELAY_NS prevents interrupt storms in Windows guests on enabling
     
    26782678            && !(STATUS & STATUS_LU))
    26792679        {
     2680#ifdef E1K_INIT_LINKUP_DELAY
    26802681            /*
    26812682             * The driver indicates that we should bring up the link. Our default 5-second delay is too long,
    26822683             * as Linux guests detect Tx hang after 2 seconds. Let's use 500 ms delay instead. */
    26832684            e1kArmTimer(pThis, pThis->CTX_SUFF(pLUTimer), E1K_INIT_LINKUP_DELAY);
     2685#else /* !E1K_INIT_LINKUP_DELAY */
     2686            /* Bring up the link immediately, no need for an interrupt though. */
     2687            STATUS |= STATUS_LU;
     2688            Phy::setLinkStatus(&pThis->phy, true);
     2689#endif /* !E1K_INIT_LINKUP_DELAY */
    26842690        }
    26852691        if (value & CTRL_VME)
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