VirtualBox

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


Ignore:
Timestamp:
Jun 24, 2011 12:04:55 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
72473
Message:

Devices/E1000: in the link up timer, don't automatically set the link state to "up" if the cable was disconnected since arming the timer

File:
1 edited

Legend:

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

    r37324 r37627  
    28562856    E1KSTATE *pState = (E1KSTATE *)pvUser;
    28572857
     2858    /*
     2859     * This can happen if we set the link status to down when the Link up timer was
     2860     * already armed (shortly after e1kLoadDone() or when the cable was disconnected
     2861     * and connect+disconnect the cable very quick.
     2862     */
     2863    if (!pState->fCableConnected)
     2864        return;
     2865
    28582866    if (RT_LIKELY(e1kMutexAcquire(pState, VERR_SEM_BUSY, RT_SRC_POS) == VINF_SUCCESS))
    28592867    {
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