VirtualBox

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


Ignore:
Timestamp:
May 2, 2012 5:05:45 PM (13 years ago)
Author:
vboxsync
Message:

e1000: bumped SSM version for changes made in r77543

File:
1 edited

Legend:

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

    r41046 r41123  
    943943
    944944
     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 */
    945951/** The current Saved state version. */
    946952#define E1K_SAVEDSTATE_VERSION          3
     953#endif /* !E1K_WITH_TXD_CACHE */
    947954/** Saved state version for VirtualBox 4.1 and earlier.
    948955 * These did not include VLAN tag fields.  */
     
    60926099
    60936100    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 */
    60946104        &&  uVersion != E1K_SAVEDSTATE_VERSION_VBOX_41
    60956105        &&  uVersion != E1K_SAVEDSTATE_VERSION_VBOX_30)
     
    61466156            rc = SSMR3GetU16(pSSM, &pState->u16VTagTCI);
    61476157            AssertRCReturn(rc, rc);
     6158        }
     6159        else
     6160        {
     6161            pState->fVTag      = false;
     6162            pState->u16VTagTCI = 0;
     6163        }
    61486164#ifdef E1K_WITH_TXD_CACHE
     6165        if (uVersion > E1K_SAVEDSTATE_VERSION_VBOX_42_VTAG)
     6166        {
    61496167            rc = SSMR3GetU8(pSSM, &pState->nTxDFetched);
    61506168            AssertRCReturn(rc, rc);
    61516169            SSMR3GetMem(pSSM, pState->aTxDescriptors,
    61526170                        pState->nTxDFetched * sizeof(pState->aTxDescriptors[0]));
    6153 #endif /* E1K_WITH_TXD_CACHE */
    61546171        }
    61556172        else
    6156         {
    6157             pState->fVTag      = false;
    6158             pState->u16VTagTCI = 0;
    6159 #ifdef E1K_WITH_TXD_CACHE
    61606173            pState->nTxDFetched = 0;
    61616174#endif /* E1K_WITH_TXD_CACHE */
    6162         }
    61636175        /* derived state  */
    61646176        e1kSetupGsoCtx(&pState->GsoCtx, &pState->contextTSE);
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