VirtualBox

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


Ignore:
Timestamp:
Nov 2, 2016 9:25:09 AM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
111663
Message:

Dev/E1000: (bugref:8624) Shorter (100ms) delay for bringing up the link during init, which fixes Linux guests

File:
1 edited

Legend:

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

    r64514 r64515  
    6666 */
    6767#define E1K_LSC_ON_SLU
     68/** @def E1K_INIT_LINKUP_DELAY
     69 * E1K_INIT_LINKUP_DELAY prevents the link going up while the driver is still
     70 * in init (see @bugref{8624}).
     71 */
     72#define E1K_INIT_LINKUP_DELAY (100 * 1000)
    6873/** @def E1K_TX_DELAY
    6974 * E1K_TX_DELAY aims to improve guest-host transfer rate for TCP streams by
     
    26682673            && !(STATUS & STATUS_LU))
    26692674        {
    2670             /* The driver indicates that we should bring up the link */
    2671             /* Do so in 5 seconds (by default). */
    2672             e1kBringLinkUpDelayed(pThis);
     2675            /*
     2676             * The driver indicates that we should bring up the link. Our default 5-second delay is too long,
     2677             * as Linux guests detect Tx hang after 2 seconds. Let's use 100 ms delay instead. */
     2678            e1kArmTimer(pThis, pThis->CTX_SUFF(pLUTimer), E1K_INIT_LINKUP_DELAY);
    26732679        }
    26742680        if (value & CTRL_VME)
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette