Changeset 41891 in vbox for trunk/src/VBox
- Timestamp:
- Jun 22, 2012 4:56:48 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/PDMNetShaper.cpp
r41882 r41891 65 65 char *pszName; 66 66 /** Maximum number of bytes filters are allowed to transfer. */ 67 volatile uint 32_t cbTransferPerSecMax;67 volatile uint64_t cbTransferPerSecMax; 68 68 /** Number of bytes we are allowed to transfer in one burst. */ 69 69 volatile uint32_t cbBucketSize; … … 152 152 #endif 153 153 154 static void pdmNsBwGroupSetLimit(PPDMNSBWGROUP pBwGroup, uint 32_t cbTransferPerSecMax)154 static void pdmNsBwGroupSetLimit(PPDMNSBWGROUP pBwGroup, uint64_t cbTransferPerSecMax) 155 155 { 156 156 pBwGroup->cbTransferPerSecMax = cbTransferPerSecMax; … … 161 161 } 162 162 163 static int pdmNsBwGroupCreate(PPDMNETSHAPER pShaper, const char *pcszBwGroup, uint 32_t cbTransferPerSecMax)163 static int pdmNsBwGroupCreate(PPDMNETSHAPER pShaper, const char *pcszBwGroup, uint64_t cbTransferPerSecMax) 164 164 { 165 165 LogFlowFunc(("pShaper=%#p pcszBwGroup=%#p{%s} cbTransferPerSecMax=%u\n", … … 402 402 } 403 403 404 VMMR3DECL(int) PDMR3NsBwGroupSetLimit(PVM pVM, const char *pcszBwGroup, uint 32_t cbTransferPerSecMax)404 VMMR3DECL(int) PDMR3NsBwGroupSetLimit(PVM pVM, const char *pcszBwGroup, uint64_t cbTransferPerSecMax) 405 405 { 406 406 PUVM pUVM = pVM->pUVM; … … 475 475 { 476 476 PUVM pUVM = pVM->pUVM; 477 AssertPtrReturn(pUVM, VERR_INVALID_POINTER); 477 478 PPDMNETSHAPER pShaper = pUVM->pdm.s.pNetShaper; 479 AssertPtrReturn(pShaper, VERR_INVALID_POINTER); 478 480 479 481 /* Destroy the bandwidth managers. */ … … 524 526 for (PCFGMNODE pCur = CFGMR3GetFirstChild(pCfgBwGrp); pCur; pCur = CFGMR3GetNextChild(pCur)) 525 527 { 526 uint 32_t cbMax;528 uint64_t cbMax; 527 529 size_t cchName = CFGMR3GetNameLen(pCur) + 1; 528 530 char *pszBwGrpId = (char *)RTMemAllocZ(cchName); … … 538 540 539 541 if (RT_SUCCESS(rc)) 540 rc = CFGMR3QueryU 32(pCur, "Max", &cbMax);542 rc = CFGMR3QueryU64(pCur, "Max", &cbMax); 541 543 if (RT_SUCCESS(rc)) 542 544 rc = pdmNsBwGroupCreate(pNetShaper, pszBwGrpId, cbMax);
Note:
See TracChangeset
for help on using the changeset viewer.