Changeset 805 in vbox
- Timestamp:
- Feb 9, 2007 11:17:17 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DevPCNet.cpp
r801 r805 119 119 #define MII_MAX_REG 32 120 120 #define CSR_MAX_REG 128 121 122 /* Maximum number of times we report a link down to the guest (failure to send frame) */ 123 #define PCNET_MAX_LINKDOWN_REPORTED 3 121 124 122 125 /* Frame cache */ … … 1993 1996 break; 1994 1997 1998 /* Don't continue sending packets when the link is down. */ 1999 if (RT_UNLIKELY( !pcnetIsLinkUp(pData) 2000 && pData->cLinkDownReported > PCNET_MAX_LINKDOWN_REPORTED) 2001 ) 2002 break; 2003 1995 2004 #ifdef PCNET_DEBUG_TMD 1996 2005 Log2(("#%d TMDLOAD 0x%08x\n", PCNETSTATE_2_DEVINS(pData)->iInstance, PHYSADDR(pData, CSR_CXDA(pData)))); … … 2184 2193 AssertReleaseRC(rc); 2185 2194 2186 if (RT_LIKELY(pcnetIsLinkUp(pData))) 2187 rc = pcnetAsyncTransmit(pData); 2195 rc = pcnetAsyncTransmit(pData); 2188 2196 PDMCritSectLeave(&pData->CritSect); 2189 2197 } … … 3231 3239 3232 3240 rc = VERR_GENERAL_FAILURE; 3233 if (pData->cLinkDownReported <= 3)3241 if (pData->cLinkDownReported <= PCNET_MAX_LINKDOWN_REPORTED) 3234 3242 rc = TMTimerSetMillies(pData->pTimerRestore, 1500); 3235 3243 if (VBOX_FAILURE(rc))
Note:
See TracChangeset
for help on using the changeset viewer.