Changeset 56592 in vbox for trunk/src/VBox
- Timestamp:
- Jun 23, 2015 8:37:03 AM (9 years ago)
- Location:
- trunk/src/VBox/HostDrivers
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxNetAdp/win/VBoxNetAdp-win.cpp
r56293 r56592 173 173 PVBOXNETADP_ADAPTER pAdapter = NULL; 174 174 175 LogFlow(("==> "__FUNCTION__": adapter handle=%p\n", hAdapter));175 LogFlow(("==>vboxNetAdpWinAllocAdapter: adapter handle=%p\n", hAdapter)); 176 176 177 177 *ppAdapter = NULL; … … 184 184 { 185 185 Status = NDIS_STATUS_RESOURCES; 186 Log(( __FUNCTION__": Out of memory while allocating adapter context (size=%d)\n", sizeof(VBOXNETADP_ADAPTER)));186 Log(("vboxNetAdpWinAllocAdapter: Out of memory while allocating adapter context (size=%d)\n", sizeof(VBOXNETADP_ADAPTER))); 187 187 } 188 188 else … … 205 205 *ppAdapter = pAdapter; 206 206 } 207 LogFlow(("<== "__FUNCTION__": status=0x%x\n", Status));207 LogFlow(("<==vboxNetAdpWinAllocAdapter: status=0x%x\n", Status)); 208 208 return Status; 209 209 } … … 227 227 NDIS_STATUS Status = NDIS_STATUS_SUCCESS; 228 228 229 LogFlow(("==> "__FUNCTION__": miniport=0x%x\n", NdisMiniportHandle));229 LogFlow(("==>vboxNetAdpWinInitializeEx: miniport=0x%x\n", NdisMiniportHandle)); 230 230 231 231 do … … 237 237 if (Status != NDIS_STATUS_SUCCESS) 238 238 { 239 Log(( __FUNCTION__": Failed to allocate the adapter context with 0x%x\n", Status));239 Log(("vboxNetAdpWinInitializeEx: Failed to allocate the adapter context with 0x%x\n", Status)); 240 240 break; 241 241 } … … 253 253 if (Status != NDIS_STATUS_SUCCESS) 254 254 { 255 Log(( __FUNCTION__": NdisMSetMiniportAttributes(registration) failed with 0x%x\n", Status));255 Log(("vboxNetAdpWinInitializeEx: NdisMSetMiniportAttributes(registration) failed with 0x%x\n", Status)); 256 256 break; 257 257 } … … 305 305 if (Status != NDIS_STATUS_SUCCESS) 306 306 { 307 Log(( __FUNCTION__": NdisMSetMiniportAttributes(general) failed with 0x%x\n", Status));307 Log(("vboxNetAdpWinInitializeEx: NdisMSetMiniportAttributes(general) failed with 0x%x\n", Status)); 308 308 break; 309 309 } … … 316 316 } 317 317 318 LogFlow(("<== "__FUNCTION__": status=0x%x\n", Status));318 LogFlow(("<==vboxNetAdpWinInitializeEx: status=0x%x\n", Status)); 319 319 return Status; 320 320 } … … 324 324 { 325 325 PVBOXNETADP_ADAPTER pAdapter = (PVBOXNETADP_ADAPTER)MiniportAdapterContext; 326 LogFlow(("==> "__FUNCTION__"\n"));326 LogFlow(("==>vboxNetAdpWinHaltEx\n")); 327 327 // TODO: Stop something? 328 LogFlow(("<== "__FUNCTION__"\n"));328 LogFlow(("<==vboxNetAdpWinHaltEx\n")); 329 329 } 330 330 … … 333 333 { 334 334 NDIS_STATUS Status = NDIS_STATUS_SUCCESS; 335 LogFlow(("==> "__FUNCTION__"\n"));336 LogFlow(("<== "__FUNCTION__": status=0x%x\n", Status));335 LogFlow(("==>vboxNetAdpWinPause\n")); 336 LogFlow(("<==vboxNetAdpWinPause: status=0x%x\n", Status)); 337 337 return Status; 338 338 } … … 342 342 { 343 343 NDIS_STATUS Status = NDIS_STATUS_SUCCESS; 344 LogFlow(("==> "__FUNCTION__"\n"));345 LogFlow(("<== "__FUNCTION__": status=0x%x\n", Status));344 LogFlow(("==>vboxNetAdpWinRestart\n")); 345 LogFlow(("<==vboxNetAdpWinRestart: status=0x%x\n", Status)); 346 346 return Status; 347 347 } … … 353 353 struct _NDIS_OID_REQUEST::_REQUEST_DATA::_QUERY *pQuery = &pRequest->DATA.QUERY_INFORMATION; 354 354 355 LogFlow(("==> "__FUNCTION__"\n"));355 LogFlow(("==>vboxNetAdpWinOidRqQuery\n")); 356 356 357 357 uint64_t u64Tmp = 0; … … 455 455 } 456 456 457 LogFlow(("<== "__FUNCTION__": status=0x%x\n", Status));457 LogFlow(("<==vboxNetAdpWinOidRqQuery: status=0x%x\n", Status)); 458 458 return Status; 459 459 } … … 465 465 struct _NDIS_OID_REQUEST::_REQUEST_DATA::_SET *pSet = &pRequest->DATA.SET_INFORMATION; 466 466 467 LogFlow(("==> "__FUNCTION__"\n"));467 LogFlow(("==>vboxNetAdpWinOidRqSet\n")); 468 468 469 469 switch (pSet->Oid) … … 514 514 } 515 515 516 LogFlow(("<== "__FUNCTION__": status=0x%x\n", Status));516 LogFlow(("<==vboxNetAdpWinOidRqSet: status=0x%x\n", Status)); 517 517 return Status; 518 518 } … … 523 523 NDIS_STATUS Status = NDIS_STATUS_SUCCESS; 524 524 PVBOXNETADP_ADAPTER pAdapter = (PVBOXNETADP_ADAPTER)MiniportAdapterContext; 525 LogFlow(("==> "__FUNCTION__"\n"));525 LogFlow(("==>vboxNetAdpWinOidRequest\n")); 526 526 vboxNetCmnWinDumpOidRequest(__FUNCTION__, NdisRequest); 527 527 … … 547 547 break; 548 548 } 549 LogFlow(("<== "__FUNCTION__": status=0x%x\n", Status));549 LogFlow(("<==vboxNetAdpWinOidRequest: status=0x%x\n", Status)); 550 550 return Status; 551 551 } … … 557 557 { 558 558 PVBOXNETADP_ADAPTER pAdapter = (PVBOXNETADP_ADAPTER)MiniportAdapterContext; 559 LogFlow(("==> "__FUNCTION__"\n"));559 LogFlow(("==>vboxNetAdpWinSendNetBufferLists\n")); 560 560 PNET_BUFFER_LIST pNbl = NetBufferLists; 561 561 for (pNbl = NetBufferLists; pNbl; pNbl = NET_BUFFER_LIST_NEXT_NBL(pNbl)) … … 564 564 (SendFlags & NDIS_SEND_FLAGS_DISPATCH_LEVEL) ? 565 565 NDIS_SEND_COMPLETE_FLAGS_DISPATCH_LEVEL : 0); 566 LogFlow(("<== "__FUNCTION__"\n"));566 LogFlow(("<==vboxNetAdpWinSendNetBufferLists\n")); 567 567 } 568 568 … … 572 572 { 573 573 PVBOXNETADP_ADAPTER pAdapter = (PVBOXNETADP_ADAPTER)MiniportAdapterContext; 574 LogFlow(("==> "__FUNCTION__"\n"));575 Log(( __FUNCTION__": We should not be here!\n"));576 LogFlow(("<== "__FUNCTION__"\n"));574 LogFlow(("==>vboxNetAdpWinReturnNetBufferLists\n")); 575 Log(("vboxNetAdpWinReturnNetBufferLists: We should not be here!\n")); 576 LogFlow(("<==vboxNetAdpWinReturnNetBufferLists\n")); 577 577 } 578 578 … … 581 581 { 582 582 PVBOXNETADP_ADAPTER pAdapter = (PVBOXNETADP_ADAPTER)MiniportAdapterContext; 583 LogFlow(("==> "__FUNCTION__"\n"));584 Log(( __FUNCTION__": We should not be here!\n"));585 LogFlow(("<== "__FUNCTION__"\n"));583 LogFlow(("==>vboxNetAdpWinCancelSend\n")); 584 Log(("vboxNetAdpWinCancelSend: We should not be here!\n")); 585 LogFlow(("<==vboxNetAdpWinCancelSend\n")); 586 586 } 587 587 … … 590 590 { 591 591 PVBOXNETADP_ADAPTER pAdapter = (PVBOXNETADP_ADAPTER)MiniportAdapterContext; 592 LogFlow(("==> "__FUNCTION__"\n"));593 LogFlow(("<== "__FUNCTION__"return false\n"));592 LogFlow(("==>vboxNetAdpWinCheckForHangEx\n")); 593 LogFlow(("<==vboxNetAdpWinCheckForHangEx return false\n")); 594 594 return FALSE; 595 595 } … … 599 599 { 600 600 NDIS_STATUS Status = NDIS_STATUS_SUCCESS; 601 LogFlow(("==> "__FUNCTION__"\n"));602 LogFlow(("<== "__FUNCTION__": status=0x%x\n", Status));601 LogFlow(("==>vboxNetAdpWinResetEx\n")); 602 LogFlow(("<==vboxNetAdpWinResetEx: status=0x%x\n", Status)); 603 603 return Status; 604 604 } … … 608 608 { 609 609 PVBOXNETADP_ADAPTER pAdapter = (PVBOXNETADP_ADAPTER)MiniportAdapterContext; 610 LogFlow(("==> "__FUNCTION__"\n"));611 Log(( __FUNCTION__": PnP event=%d\n", NetDevicePnPEvent->DevicePnPEvent));612 LogFlow(("<== "__FUNCTION__"\n"));610 LogFlow(("==>vboxNetAdpWinDevicePnPEventNotify\n")); 611 Log(("vboxNetAdpWinDevicePnPEventNotify: PnP event=%d\n", NetDevicePnPEvent->DevicePnPEvent)); 612 LogFlow(("<==vboxNetAdpWinDevicePnPEventNotify\n")); 613 613 } 614 614 … … 618 618 { 619 619 PVBOXNETADP_ADAPTER pAdapter = (PVBOXNETADP_ADAPTER)MiniportAdapterContext; 620 LogFlow(("==> "__FUNCTION__"\n"));621 Log(( __FUNCTION__": action=%d\n", ShutdownAction));622 LogFlow(("<== "__FUNCTION__"\n"));620 LogFlow(("==>vboxNetAdpWinShutdownEx\n")); 621 Log(("vboxNetAdpWinShutdownEx: action=%d\n", ShutdownAction)); 622 LogFlow(("<==vboxNetAdpWinShutdownEx\n")); 623 623 } 624 624 … … 627 627 { 628 628 PVBOXNETADP_ADAPTER pAdapter = (PVBOXNETADP_ADAPTER)MiniportAdapterContext; 629 LogFlow(("==> "__FUNCTION__"\n"));630 Log(( __FUNCTION__": req id=%p\n", RequestId));631 LogFlow(("<== "__FUNCTION__"\n"));629 LogFlow(("==>vboxNetAdpWinCancelOidRequest\n")); 630 Log(("vboxNetAdpWinCancelOidRequest: req id=%p\n", RequestId)); 631 LogFlow(("<==vboxNetAdpWinCancelOidRequest\n")); 632 632 } 633 633 … … 636 636 DECLHIDDEN(VOID) vboxNetAdpWinUnload(IN PDRIVER_OBJECT DriverObject) 637 637 { 638 LogFlow(("==> "__FUNCTION__"\n"));638 LogFlow(("==>vboxNetAdpWinUnload\n")); 639 639 //vboxNetAdpWinDevDestroy(&g_VBoxNetAdpGlobals); 640 640 if (g_VBoxNetAdpGlobals.hMiniportDriver) 641 641 NdisMDeregisterMiniportDriver(g_VBoxNetAdpGlobals.hMiniportDriver); 642 642 //NdisFreeSpinLock(&g_VBoxNetAdpGlobals.Lock); 643 LogFlow(("<== "__FUNCTION__"\n"));643 LogFlow(("<==vboxNetAdpWinUnload\n")); 644 644 RTR0Term(); 645 645 } -
trunk/src/VBox/HostDrivers/VBoxNetFlt/win/drv/VBoxNetLwf-win.cpp
r56591 r56592 1474 1474 if (pPassHead) 1475 1475 { 1476 vboxNetLwfWinDumpPackets( __FUNCTION__": passing down", pPassHead);1476 vboxNetLwfWinDumpPackets("vboxNetLwfWinSendNetBufferLists: passing down", pPassHead); 1477 1477 NdisFSendNetBufferLists(pModule->hFilter, pBufLists, nPort, fFlags); 1478 1478 } 1479 1479 if (pDropHead) 1480 1480 { 1481 vboxNetLwfWinDumpPackets( __FUNCTION__": consumed", pDropHead);1481 vboxNetLwfWinDumpPackets("vboxNetLwfWinSendNetBufferLists: consumed", pDropHead); 1482 1482 NdisFSendNetBufferListsComplete(pModule->hFilter, pDropHead, 1483 1483 fFlags & NDIS_SEND_FLAGS_DISPATCH_LEVEL ? NDIS_SEND_COMPLETE_FLAGS_DISPATCH_LEVEL : 0); … … 1490 1490 NET_BUFFER_LIST_STATUS(pList) = NDIS_STATUS_PAUSED; 1491 1491 } 1492 vboxNetLwfWinDumpPackets( __FUNCTION__": consumed", pBufLists);1492 vboxNetLwfWinDumpPackets("vboxNetLwfWinSendNetBufferLists: consumed", pBufLists); 1493 1493 NdisFSendNetBufferListsComplete(pModule->hFilter, pBufLists, 1494 1494 fFlags & NDIS_SEND_FLAGS_DISPATCH_LEVEL ? NDIS_SEND_COMPLETE_FLAGS_DISPATCH_LEVEL : 0); … … 1596 1596 PNET_BUFFER_LIST pNext = NET_BUFFER_LIST_NEXT_NBL(pList); 1597 1597 NET_BUFFER_LIST_NEXT_NBL(pList) = NULL; /* Unlink temporarily */ 1598 vboxNetLwfWinDumpPackets( __FUNCTION__": passing up", pList);1598 vboxNetLwfWinDumpPackets("vboxNetLwfWinReceiveNetBufferLists: passing up", pList); 1599 1599 NdisFIndicateReceiveNetBufferLists(pModule->hFilter, pList, nPort, nBufLists, fFlags); 1600 1600 NET_BUFFER_LIST_NEXT_NBL(pList) = pNext; /* Restore the link */ … … 1604 1604 { 1605 1605 /* All NBLs must be indicated, do it in bulk. */ 1606 vboxNetLwfWinDumpPackets( __FUNCTION__": passing up", pBufLists);1606 vboxNetLwfWinDumpPackets("vboxNetLwfWinReceiveNetBufferLists: passing up", pBufLists); 1607 1607 NdisFIndicateReceiveNetBufferLists(pModule->hFilter, pBufLists, nPort, nBufLists, fFlags); 1608 1608 } … … 1646 1646 if (pPassHead) 1647 1647 { 1648 vboxNetLwfWinDumpPackets( __FUNCTION__": passing up", pPassHead);1648 vboxNetLwfWinDumpPackets("vboxNetLwfWinReceiveNetBufferLists: passing up", pPassHead); 1649 1649 NdisFIndicateReceiveNetBufferLists(pModule->hFilter, pPassHead, nPort, nPass, fFlags); 1650 1650 } 1651 1651 if (pDropHead) 1652 1652 { 1653 vboxNetLwfWinDumpPackets( __FUNCTION__": consumed", pDropHead);1653 vboxNetLwfWinDumpPackets("vboxNetLwfWinReceiveNetBufferLists: consumed", pDropHead); 1654 1654 NdisFReturnNetBufferLists(pModule->hFilter, pDropHead, 1655 1655 fFlags & NDIS_RECEIVE_FLAGS_DISPATCH_LEVEL ? NDIS_RETURN_FLAGS_DISPATCH_LEVEL : 0); … … 1660 1660 else 1661 1661 { 1662 vboxNetLwfWinDumpPackets( __FUNCTION__": consumed", pBufLists);1662 vboxNetLwfWinDumpPackets("vboxNetLwfWinReceiveNetBufferLists: consumed", pBufLists); 1663 1663 if ((fFlags & NDIS_RECEIVE_FLAGS_RESOURCES) == 0) 1664 1664 NdisFReturnNetBufferLists(pModule->hFilter, pBufLists, … … 2339 2339 RTListForEach(&g_VBoxNetLwfGlobals.listModules, pModuleCtx, VBOXNETLWF_MODULE, node) 2340 2340 { 2341 DbgPrint( __FUNCTION__": evaluating module, name=%Z\n", pModuleCtx->strMiniportName);2341 DbgPrint("vboxNetFltOsInitInstance: evaluating module, name=%Z\n", pModuleCtx->strMiniportName); 2342 2342 if (RtlEqualString(&strInst, &pModuleCtx->strMiniportName, TRUE)) 2343 2343 {
Note:
See TracChangeset
for help on using the changeset viewer.