diff options
| author | Yang You (UU) <[email protected]> | 2025-12-04 15:03:24 -0800 |
|---|---|---|
| committer | Yang You (UU) <[email protected]> | 2025-12-04 15:03:24 -0800 |
| commit | 977cb2461482a898f96ee08f9cb24eb7f421da03 (patch) | |
| tree | 071ef1691d00aaee8679603a1059d3eb71442b77 /network/netadaptercx/netvadapterlibrary/code/rxqueue.cpp | |
| parent | 83019ae0c63454b2835f8fc245c7505351cee677 (diff) | |
intergrate the netvadapterlibrary with wificxsampledriver, cleanup the memory related header -KNEW.H
Diffstat (limited to 'network/netadaptercx/netvadapterlibrary/code/rxqueue.cpp')
| -rw-r--r-- | network/netadaptercx/netvadapterlibrary/code/rxqueue.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/network/netadaptercx/netvadapterlibrary/code/rxqueue.cpp b/network/netadaptercx/netvadapterlibrary/code/rxqueue.cpp index 61c12ca3..d0b87f9e 100644 --- a/network/netadaptercx/netvadapterlibrary/code/rxqueue.cpp +++ b/network/netadaptercx/netvadapterlibrary/code/rxqueue.cpp @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved #include "pch.hpp" -#include "adapter.h" +#include "netvadapter.h" #include "rxqueue.h" #include "memory.h" @@ -68,7 +68,7 @@ NetvRxQueue::NetvRxQueue( NetExtensionTypePacket); NetRxQueueGetExtension(m_handle, &extension, &RxXSumExtension); - +#if ((NETADAPTER_VERSION_MAJOR == 2) && (NETADAPTER_VERSION_MINOR >= 6)) if (Adapter.PreallocatedRxBuffers) { NET_EXTENSION_QUERY_INIT( @@ -87,7 +87,7 @@ NetvRxQueue::NetvRxQueue( NetRxQueueGetExtension(m_handle, &extension, &NetMemoryReturnContextExtensionIn); } - +#endif //NETCX 2.6 only EnlQueueHandle = EnlCreateQueue(Handle, RX); } @@ -150,7 +150,7 @@ NetvRxQueue::Advance( break; } } - +#if ((NETADAPTER_VERSION_MAJOR == 2) && (NETADAPTER_VERSION_MINOR >= 6)) if (m_adapter.PreallocatedRxBuffers) { NET_RING* dataBufferRing = GetNetMemoryReturnRing(); @@ -166,7 +166,7 @@ NetvRxQueue::Advance( dataBufferRing->BeginIndex = NetRingIncrementIndex(dataBufferRing, dataBufferRing->BeginIndex); } } - +#endif //NETCX 2.6 only NetFragmentIteratorSet(&fi); NetPacketIteratorSet(&pi); EnlRingDoorBell(EnlQueueHandle, fr->EndIndex); |
