- Timestamp:
- Nov 16, 2010 12:02:12 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 67812
- Location:
- trunk/src/VBox/HostDrivers/VBoxNetFlt/win
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxNetFlt/win/VBoxNetFltCommon-win.h
r34102 r34109 333 333 VBOXADAPTSTATE enmState; 334 334 #ifndef VBOXNETADP 335 /** true if we should indicate the receive complete used by the ProtocolReceeive mechanism */ 335 /** true if we should indicate the receive complete used by the ProtocolReceive mechanism. 336 * We need to indicate it only with the ProtocolReceive + NdisMEthIndicateReceive path. 337 * There is no guarantee in the docs that the ProtocolReceive & ProtocolReceiveComplete 338 * for one transfer are called on one same CPU, however this is how the latest passthru 339 * sample handles this 340 * Note: we're using KeGetCurrentProcessorNumber, which is not entirely correct in case 341 * we're running on 64bit win7+, which can handle > 64 CPUs, however since KeGetCurrentProcessorNumber 342 * always returns the number < than the number of CPUs in the first group, we're guaranteed to have CPU index < 64 343 * @todo: use KeGetCurrentProcessorNumberEx for Win7+ 64 and dynamically extended array */ 336 344 bool abIndicateRcvComplete[64]; 337 345 -
trunk/src/VBox/HostDrivers/VBoxNetFlt/win/VBoxNetFltPt-win.c
r34102 r34109 1800 1800 1801 1801 { 1802 /* Note: we're using KeGetCurrentProcessorNumber, which is not entirely correct in case 1803 * we're running on 64bit win7+, which can handle > 64 CPUs, however since KeGetCurrentProcessorNumber 1804 * always returns the number < than the number of CPUs in the first group, we're guaranteed to have CPU index < 64 1805 * @todo: use KeGetCurrentProcessorNumberEx for Win7+ 64 and dynamically extended array */ 1802 1806 ULONG Proc = KeGetCurrentProcessorNumber(); 1807 Assert(Proc < RT_ELEMENTS(pAdapt->abIndicateRcvComplete)); 1803 1808 pAdapt->abIndicateRcvComplete[Proc] = TRUE; 1804 1809 switch (pAdapt->Medium) … … 1864 1869 bool bNetFltActive; 1865 1870 bool fAdaptActive = vboxNetFltWinReferenceAdaptNetFlt(pNetFlt, pAdapt, &bNetFltActive); 1871 /* Note: we're using KeGetCurrentProcessorNumber, which is not entirely correct in case 1872 * we're running on 64bit win7+, which can handle > 64 CPUs, however since KeGetCurrentProcessorNumber 1873 * always returns the number < than the number of CPUs in the first group, we're guaranteed to have CPU index < 64 1874 * @todo: use KeGetCurrentProcessorNumberEx for Win7+ 64 and dynamically extended array */ 1866 1875 ULONG Proc = KeGetCurrentProcessorNumber(); 1876 Assert(Proc < RT_ELEMENTS(pAdapt->abIndicateRcvComplete)); 1867 1877 1868 1878 vboxNetFltWinPtFlushReceiveQueue(pAdapt, false);
Note:
See TracChangeset
for help on using the changeset viewer.