Changeset 9594 in vbox for trunk/src/VBox
- Timestamp:
- Jun 11, 2008 9:45:26 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DrvIntNet.cpp
r8300 r9594 85 85 * When the link is down all incoming packets will be dropped. */ 86 86 bool volatile fLinkDown; 87 /** Set if data transmission should start immediately. */ 88 bool fActivateEarly; 87 /** Set if data transmission should start immediately and deactivate 88 * as late as possible. */ 89 bool fActivateEarlyDeactivateLate; 89 90 90 91 #ifdef VBOX_WITH_STATISTICS … … 533 534 LogFlow(("drvIntNetPowerOff\n")); 534 535 PDRVINTNET pThis = PDMINS2DATA(pDrvIns, PDRVINTNET); 535 ASMAtomicXchgSize(&pThis->enmState, ASYNCSTATE_SUSPENDED); 536 if (!pThis->fActivateEarlyDeactivateLate) 537 ASMAtomicXchgSize(&pThis->enmState, ASYNCSTATE_SUSPENDED); 536 538 } 537 539 … … 546 548 LogFlow(("drvIntNetPowerResume\n")); 547 549 PDRVINTNET pThis = PDMINS2DATA(pDrvIns, PDRVINTNET); 548 ASMAtomicXchgSize(&pThis->enmState, ASYNCSTATE_RUNNING); 549 RTSemEventSignal(pThis->EventSuspended); 550 if (!pThis->fActivateEarlyDeactivateLate) 551 { 552 ASMAtomicXchgSize(&pThis->enmState, ASYNCSTATE_RUNNING); 553 RTSemEventSignal(pThis->EventSuspended); 554 } 550 555 } 551 556 … … 560 565 LogFlow(("drvIntNetPowerSuspend\n")); 561 566 PDRVINTNET pThis = PDMINS2DATA(pDrvIns, PDRVINTNET); 562 ASMAtomicXchgSize(&pThis->enmState, ASYNCSTATE_SUSPENDED); 567 if (!pThis->fActivateEarlyDeactivateLate) 568 ASMAtomicXchgSize(&pThis->enmState, ASYNCSTATE_SUSPENDED); 563 569 } 564 570 … … 573 579 LogFlow(("drvIntNetPowerOn\n")); 574 580 PDRVINTNET pThis = PDMINS2DATA(pDrvIns, PDRVINTNET); 575 if (!pThis->fActivateEarly )581 if (!pThis->fActivateEarlyDeactivateLate) 576 582 { 577 583 ASMAtomicXchgSize(&pThis->enmState, ASYNCSTATE_RUNNING); … … 658 664 pThis->EventSuspended = NIL_RTSEMEVENT; 659 665 pThis->enmState = ASYNCSTATE_SUSPENDED; 660 pThis->fActivateEarly 666 pThis->fActivateEarlyDeactivateLate = false; 661 667 /* IBase */ 662 668 pDrvIns->IBase.pfnQueryInterface = drvIntNetQueryInterface; … … 732 738 N_("Configuration error: Failed to get the \"RestrictAccess\" value")); 733 739 734 rc = CFGMR3QueryBool(pCfgHandle, "IsService", &pThis->fActivateEarly );740 rc = CFGMR3QueryBool(pCfgHandle, "IsService", &pThis->fActivateEarlyDeactivateLate); 735 741 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 736 pThis->fActivateEarly = false;742 pThis->fActivateEarlyDeactivateLate = false; 737 743 else if (VBOX_FAILURE(rc)) 738 744 return PDMDRV_SET_ERROR(pDrvIns, rc, … … 809 815 * Activate data transmission as early as possible 810 816 */ 811 if (pThis->fActivateEarly )817 if (pThis->fActivateEarlyDeactivateLate) 812 818 { 813 819 ASMAtomicXchgSize(&pThis->enmState, ASYNCSTATE_RUNNING);
Note:
See TracChangeset
for help on using the changeset viewer.