Changeset 41123 in vbox
- Timestamp:
- May 2, 2012 5:05:45 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DevE1000.cpp
r41046 r41123 943 943 944 944 945 #ifdef E1K_WITH_TXD_CACHE 946 /** The current Saved state version. */ 947 #define E1K_SAVEDSTATE_VERSION 4 948 /** Saved state version for VirtualBox 4.2 with VLAN tag fields. */ 949 #define E1K_SAVEDSTATE_VERSION_VBOX_42_VTAG 3 950 #else /* !E1K_WITH_TXD_CACHE */ 945 951 /** The current Saved state version. */ 946 952 #define E1K_SAVEDSTATE_VERSION 3 953 #endif /* !E1K_WITH_TXD_CACHE */ 947 954 /** Saved state version for VirtualBox 4.1 and earlier. 948 955 * These did not include VLAN tag fields. */ … … 6092 6099 6093 6100 if ( uVersion != E1K_SAVEDSTATE_VERSION 6101 #ifdef E1K_WITH_TXD_CACHE 6102 && uVersion != E1K_SAVEDSTATE_VERSION_VBOX_42_VTAG 6103 #endif /* E1K_WITH_TXD_CACHE */ 6094 6104 && uVersion != E1K_SAVEDSTATE_VERSION_VBOX_41 6095 6105 && uVersion != E1K_SAVEDSTATE_VERSION_VBOX_30) … … 6146 6156 rc = SSMR3GetU16(pSSM, &pState->u16VTagTCI); 6147 6157 AssertRCReturn(rc, rc); 6158 } 6159 else 6160 { 6161 pState->fVTag = false; 6162 pState->u16VTagTCI = 0; 6163 } 6148 6164 #ifdef E1K_WITH_TXD_CACHE 6165 if (uVersion > E1K_SAVEDSTATE_VERSION_VBOX_42_VTAG) 6166 { 6149 6167 rc = SSMR3GetU8(pSSM, &pState->nTxDFetched); 6150 6168 AssertRCReturn(rc, rc); 6151 6169 SSMR3GetMem(pSSM, pState->aTxDescriptors, 6152 6170 pState->nTxDFetched * sizeof(pState->aTxDescriptors[0])); 6153 #endif /* E1K_WITH_TXD_CACHE */6154 6171 } 6155 6172 else 6156 {6157 pState->fVTag = false;6158 pState->u16VTagTCI = 0;6159 #ifdef E1K_WITH_TXD_CACHE6160 6173 pState->nTxDFetched = 0; 6161 6174 #endif /* E1K_WITH_TXD_CACHE */ 6162 }6163 6175 /* derived state */ 6164 6176 e1kSetupGsoCtx(&pState->GsoCtx, &pState->contextTSE);
Note:
See TracChangeset
for help on using the changeset viewer.