summaryrefslogtreecommitdiff
path: root/network/ndis/netvmini
diff options
context:
space:
mode:
authorAndre Muezerie <[email protected]>2026-05-21 21:11:19 -0400
committerAndre Muezerie <[email protected]>2026-05-21 21:11:19 -0400
commite70dbdfb56391f23306bf8a03fbf8ef89a1ebb92 (patch)
tree81d9eac3c9661e7da2c325ae619e9d9864826098 /network/ndis/netvmini
parentc7ad9e81acd5d28f339c7f007d6bc9d7ff24f7aa (diff)
ndis: Removed trailing spaces
This PR performs a whitespace-only cleanup by removing trailing spaces/tabs from source files under network\ndis. This is to reduce noise when making changes using AI so that future reviews are easier to be done by humans. No functional logic changes were introduced. What Changed 1. Removed end-of-line trailing whitespace in text files. 2. Kept file encoding and line endings intact by applying byte-preserving edits. Risk / Impact 1. Low risk: formatting-only change. 2. No API, behavior, or build configuration changes intended.
Diffstat (limited to 'network/ndis/netvmini')
-rw-r--r--network/ndis/netvmini/6x/ctrlpath.c162
-rw-r--r--network/ndis/netvmini/6x/hardware.h14
-rw-r--r--network/ndis/netvmini/6x/miniport.c2
-rw-r--r--network/ndis/netvmini/6x/mphal.c42
-rw-r--r--network/ndis/netvmini/6x/mphal.h2
-rw-r--r--network/ndis/netvmini/6x/qos.c2
-rw-r--r--network/ndis/netvmini/6x/rssv2.c208
-rw-r--r--network/ndis/netvmini/6x/rssv2lib.c58
-rw-r--r--network/ndis/netvmini/6x/rssv2lib.h14
-rw-r--r--network/ndis/netvmini/6x/tcbrcb.c8
-rw-r--r--network/ndis/netvmini/6x/tcbrcb.h2
-rw-r--r--network/ndis/netvmini/6x/vmq.c2
-rw-r--r--network/ndis/netvmini/6x/vmq.h58
13 files changed, 287 insertions, 287 deletions
diff --git a/network/ndis/netvmini/6x/ctrlpath.c b/network/ndis/netvmini/6x/ctrlpath.c
index f6131196..3864420a 100644
--- a/network/ndis/netvmini/6x/ctrlpath.c
+++ b/network/ndis/netvmini/6x/ctrlpath.c
@@ -224,7 +224,7 @@ MPSynchronousOidRequest(
Routine Description:
- Entry point called by NDIS to get or set the value of a specified
+ Entry point called by NDIS to get or set the value of a specified
synchronous OID.
Arguments:
@@ -517,7 +517,7 @@ Return Value:
#if (NDIS_SUPPORT_NDIS61 && !NDIS_SUPPORT_NDIS620)
case OID_PNP_CAPABILITIES:
//
- // This OID is obsolete for NDIS 6.20 drivers
+ // This OID is obsolete for NDIS 6.20 drivers
//
// Return the wake-up capabilities of its NIC. If you return
// NDIS_STATUS_NOT_SUPPORTED, NDIS considers the miniport driver
@@ -774,7 +774,7 @@ Return Value:
case OID_GEN_INTERRUPT_MODERATION:
{
PNDIS_INTERRUPT_MODERATION_PARAMETERS Moderation = (PNDIS_INTERRUPT_MODERATION_PARAMETERS)Query->InformationBuffer;
- Moderation->Header.Type = NDIS_OBJECT_TYPE_DEFAULT;
+ Moderation->Header.Type = NDIS_OBJECT_TYPE_DEFAULT;
Moderation->Header.Revision = NDIS_INTERRUPT_MODERATION_PARAMETERS_REVISION_1;
Moderation->Header.Size = NDIS_SIZEOF_INTERRUPT_MODERATION_PARAMETERS_REVISION_1;
Moderation->Flags = 0;
@@ -907,10 +907,10 @@ Return Value:
case OID_RECEIVE_FILTER_FREE_QUEUE:
//
- // Free the requested receive queue.
+ // Free the requested receive queue.
//
Status = NICFreeRxQueue(
- Adapter,
+ Adapter,
NdisSetRequest);
break;
@@ -929,17 +929,17 @@ Return Value:
//
Status = NICUpdateRxQueue(
Adapter,
- NdisSetRequest);
+ NdisSetRequest);
break;
#endif
case OID_PNP_SET_POWER:
//
- // Update power state
+ // Update power state
//
Status = MPSetPower(
Adapter,
- NdisSetRequest);
+ NdisSetRequest);
break;
#if (NDIS_SUPPORT_NDIS680)
@@ -963,7 +963,7 @@ Return Value:
case OID_PNP_REMOVE_WAKE_UP_PATTERN:
case OID_PNP_ENABLE_WAKE_UP:
#endif
- ASSERT(!"NIC does not support wake on LAN OIDs");
+ ASSERT(!"NIC does not support wake on LAN OIDs");
default:
Status = NDIS_STATUS_NOT_SUPPORTED;
break;
@@ -1016,24 +1016,24 @@ Return Value:
switch (Oid)
{
-
+
#if (NDIS_SUPPORT_NDIS620)
case OID_RECEIVE_FILTER_ALLOCATE_QUEUE:
//
// Allocate the requested receive queue.
//
Status = NICAllocateRxQueue(
- Adapter,
+ Adapter,
NdisRequest);
break;
case OID_RECEIVE_FILTER_QUEUE_ALLOCATION_COMPLETE:
//
- // Complete any remaining allocation for receive queues.
+ // Complete any remaining allocation for receive queues.
//
Status = NICCompleteAllocationRxQueue(
- Adapter,
+ Adapter,
NdisRequest);
break;
@@ -1306,7 +1306,7 @@ NICAllocateRxQueue(
Routine Description:
This routine will allocate a receive queue according to the passed in allocation request. It verifies that the request
- is well formed, then passes the request to underlying queue management code.
+ is well formed, then passes the request to underlying queue management code.
Arguments:
@@ -1322,22 +1322,22 @@ Return Value:
NDIS_STATUS Status = NDIS_STATUS_SUCCESS;
struct _METHOD *Method = &NdisMethodRequest->DATA.METHOD_INFORMATION;
PNDIS_RECEIVE_QUEUE_PARAMETERS QueueParams = (PNDIS_RECEIVE_QUEUE_PARAMETERS)Method->InformationBuffer;
-
+
PAGED_CODE();
DEBUGP(MP_TRACE, "[%p] ---> NICAllocateRxQueue\n", Adapter);
-
+
do
{
//
// Verify that the request matches our requirements
//
- VERIFY_OID_METHOD(NdisMethodRequest,
- NDIS_RECEIVE_QUEUE_PARAMETERS_REVISION_1,
+ VERIFY_OID_METHOD(NdisMethodRequest,
+ NDIS_RECEIVE_QUEUE_PARAMETERS_REVISION_1,
NDIS_SIZEOF_RECEIVE_QUEUE_PARAMETERS_REVISION_1);
//
- // Request is well formed, set bytes read
+ // Request is well formed, set bytes read
//
Method->BytesRead = NDIS_SIZEOF_RECEIVE_QUEUE_PARAMETERS_REVISION_1;
@@ -1374,7 +1374,7 @@ NICCompleteAllocationRxQueue(
Routine Description:
This routine will complete any remaining queue allocation, including shared memory. It verifies that the request
- is well formed, then passes the request to underlying queue management code.
+ is well formed, then passes the request to underlying queue management code.
Arguments:
@@ -1385,7 +1385,7 @@ Return Value:
NDIS_STATUS
---*/
+--*/
{
NDIS_STATUS Status = NDIS_STATUS_SUCCESS;
@@ -1395,21 +1395,21 @@ Return Value:
PAGED_CODE();
DEBUGP(MP_TRACE, "[%p] ---> NICCompleteAllocationRxQueue\n", Adapter);
-
+
do
{
//
// Verify that the request matches our requirements
//
- VERIFY_OID_METHOD(NdisMethodRequest,
- NDIS_RECEIVE_QUEUE_ALLOCATION_COMPLETE_ARRAY_REVISION_1,
+ VERIFY_OID_METHOD(NdisMethodRequest,
+ NDIS_RECEIVE_QUEUE_ALLOCATION_COMPLETE_ARRAY_REVISION_1,
NDIS_SIZEOF_RECEIVE_QUEUE_ALLOCATION_COMPLETE_ARRAY_REVISION_1);
//
- // Request is well formed, set bytes read
+ // Request is well formed, set bytes read
//
- Method->BytesRead = NDIS_SIZEOF_RECEIVE_QUEUE_ALLOCATION_COMPLETE_ARRAY_REVISION_1+
+ Method->BytesRead = NDIS_SIZEOF_RECEIVE_QUEUE_ALLOCATION_COMPLETE_ARRAY_REVISION_1+
(CompleteArray->NumElements * CompleteArray->ElementSize);
//
@@ -1418,9 +1418,9 @@ Return Value:
Status = CompleteAllocationRxQueue(Adapter, CompleteArray);
}while(FALSE);
-
+
DEBUGP(MP_TRACE, "[%p] <--- NICCompleteAllocationRxQueue Status 0x%08x\n", Adapter, Status);
-
+
return Status;
}
@@ -1433,7 +1433,7 @@ NICFreeRxQueue(
Routine Description:
This routine will handle the passed in queue free request. It verifies that the request
- is well formed, then passes the request to underlying queue management code.
+ is well formed, then passes the request to underlying queue management code.
Arguments:
@@ -1453,21 +1453,21 @@ Return Value:
PAGED_CODE();
DEBUGP(MP_TRACE, "[%p] ---> NICFreeRxQueue\n", Adapter);
-
+
do
{
//
// Verify that the request matches our requirements
//
- VERIFY_OID_SET(NdisSetRequest,
- NDIS_RECEIVE_QUEUE_FREE_PARAMETERS_REVISION_1,
+ VERIFY_OID_SET(NdisSetRequest,
+ NDIS_RECEIVE_QUEUE_FREE_PARAMETERS_REVISION_1,
NDIS_SIZEOF_RECEIVE_QUEUE_FREE_PARAMETERS_REVISION_1);
//
- // Request is well formed, set bytes read
+ // Request is well formed, set bytes read
//
Set->BytesRead = NDIS_SIZEOF_RECEIVE_QUEUE_FREE_PARAMETERS_REVISION_1;
-
+
//
// Default queue cannot be freed
//
@@ -1479,14 +1479,14 @@ Return Value:
}
//
- // Ready to attempt a free.
+ // Ready to attempt a free.
//
Status = FreeRxQueue(Adapter, QueueFreeParams, NdisSetRequest);
}while(FALSE);
-
+
DEBUGP(MP_TRACE, "[%p] <--- NICFreeRxQueuee Status 0x%08x\n", Adapter, Status);
-
+
return Status;
}
@@ -1499,7 +1499,7 @@ NICSetRxFilter(
Routine Description:
This routine will handle the passed filter set request. It verifies that the request
- is well formed, then passes the request to underlying filter management code.
+ is well formed, then passes the request to underlying filter management code.
Arguments:
@@ -1510,7 +1510,7 @@ Return Value:
NDIS_STATUS
---*/
+--*/
{
NDIS_STATUS Status = NDIS_STATUS_SUCCESS;
@@ -1524,12 +1524,12 @@ Return Value:
//
// Verify that the request matches our requirements
//
- VERIFY_OID_METHOD(NdisMethodRequest,
- NDIS_RECEIVE_FILTER_PARAMETERS_REVISION_1,
+ VERIFY_OID_METHOD(NdisMethodRequest,
+ NDIS_RECEIVE_FILTER_PARAMETERS_REVISION_1,
NDIS_SIZEOF_RECEIVE_FILTER_PARAMETERS_REVISION_1);
//
- // Request is well formed, set bytes read
+ // Request is well formed, set bytes read
//
Method->BytesRead = NDIS_SIZEOF_RECEIVE_FILTER_PARAMETERS_REVISION_1;
@@ -1537,7 +1537,7 @@ Return Value:
// Ready to set Filter
//
Status = SetRxFilter(Adapter, FilterParams);
-
+
}while(FALSE);
return Status;
@@ -1552,7 +1552,7 @@ NICClearRxFilter(
Routine Description:
This routine will handle the passed filter clear request. It verifies that the request
- is well formed, then passes the request to underlying filter management code.
+ is well formed, then passes the request to underlying filter management code.
Arguments:
@@ -1563,7 +1563,7 @@ Return Value:
NDIS_STATUS
---*/
+--*/
{
NDIS_STATUS Status = NDIS_STATUS_SUCCESS;
struct _SET *Set = &NdisSetRequest->DATA.SET_INFORMATION;
@@ -1577,15 +1577,15 @@ Return Value:
//
// Verify that the request matches our requirements
//
- VERIFY_OID_SET(NdisSetRequest,
- NDIS_RECEIVE_FILTER_CLEAR_PARAMETERS_REVISION_1,
+ VERIFY_OID_SET(NdisSetRequest,
+ NDIS_RECEIVE_FILTER_CLEAR_PARAMETERS_REVISION_1,
NDIS_SIZEOF_RECEIVE_FILTER_CLEAR_PARAMETERS_REVISION_1);
//
- // Request is well formed, set bytes read
+ // Request is well formed, set bytes read
//
Set->BytesRead = NDIS_SIZEOF_RECEIVE_FILTER_CLEAR_PARAMETERS_REVISION_1;
-
+
//
// Ready to clear the filter
//
@@ -1614,15 +1614,15 @@ NICUpdateRxQueue(
//
// Verify that the request matches our requirements
//
- VERIFY_OID_SET(NdisSetRequest,
- NDIS_RECEIVE_QUEUE_PARAMETERS_REVISION_1,
+ VERIFY_OID_SET(NdisSetRequest,
+ NDIS_RECEIVE_QUEUE_PARAMETERS_REVISION_1,
NDIS_SIZEOF_RECEIVE_QUEUE_PARAMETERS_REVISION_1);
//
- // Request is well formed, set bytes read
+ // Request is well formed, set bytes read
//
Set->BytesRead = NDIS_SIZEOF_RECEIVE_FILTER_CLEAR_PARAMETERS_REVISION_1;
-
+
//
// Ready to clear the filter
//
@@ -1725,7 +1725,7 @@ MPSetPower(
/*++
Routine Description:
- This routine handles OID_PNP_SET_POWER request.
+ This routine handles OID_PNP_SET_POWER request.
Arguments:
@@ -1734,9 +1734,9 @@ Arguments:
Return Value:
- NDIS_STATUS
+ NDIS_STATUS
---*/
+--*/
{
NDIS_STATUS Status = NDIS_STATUS_SUCCESS;
struct _SET *Set = &NdisSetRequest->DATA.SET_INFORMATION;
@@ -1789,9 +1789,9 @@ Arguments:
Return Value:
- NDIS_STATUS
+ NDIS_STATUS
---*/
+--*/
{
NDIS_STATUS Status = NDIS_STATUS_SUCCESS;
@@ -1813,19 +1813,19 @@ MPSetPowerLow(
/*++
Routine Description:
- The NIC is about to be transitioned to a low power state.
+ The NIC is about to be transitioned to a low power state.
Prepare the NIC for the sleeping state:
- - Disable interrupts and the NIC's DMA engine, cancel timers.
- - Save any hardware context that the NIC cannot preserve in
- a sleeping state (packet filters, multicast addresses,
+ - Disable interrupts and the NIC's DMA engine, cancel timers.
+ - Save any hardware context that the NIC cannot preserve in
+ a sleeping state (packet filters, multicast addresses,
the current MAC address, etc.)
- A miniport driver cannot access the NIC hardware after
+ A miniport driver cannot access the NIC hardware after
the NIC has been set to the D3 state by the bus driver.
- Miniport drivers NDIS v6.30 and above
- Do NOT wait for NDIS to return the ownership of all
+ Miniport drivers NDIS v6.30 and above
+ Do NOT wait for NDIS to return the ownership of all
NBLs from outstanding receive indications
- Retain ownership of all the receive descriptors and
+ Retain ownership of all the receive descriptors and
packet buffers previously owned by the hardware.
Arguments:
@@ -1835,9 +1835,9 @@ Arguments:
Return Value:
- NDIS_STATUS
+ NDIS_STATUS
---*/
+--*/
{
NDIS_STATUS Status = NDIS_STATUS_SUCCESS;
LONG nSendWaitCount = 0;
@@ -1851,8 +1851,8 @@ Return Value:
#if (NDIS_SUPPORT_NDIS630)
//
- // Miniport drivers NDIS v6.30 and above are not
- // necessarily paused prior the low power transition
+ // Miniport drivers NDIS v6.30 and above are not
+ // necessarily paused prior the low power transition
//
//
@@ -1862,7 +1862,7 @@ Return Value:
//
// Wait for outstanding sends
- // Do NOT wait for outstanding receives
+ // Do NOT wait for outstanding receives
//
while(Adapter->nBusySend)
{
@@ -1881,8 +1881,8 @@ Return Value:
UNREFERENCED_PARAMETER(nSendWaitCount);
//
- // Miniport drivers NDIS v6.20 and below are
- // paused prior the low power transition
+ // Miniport drivers NDIS v6.20 and below are
+ // paused prior the low power transition
//
ASSERT(MP_TEST_FLAG(Adapter, fMP_ADAPTER_PAUSED));
ASSERT(!NICIsBusy(Adapter));
@@ -1902,7 +1902,7 @@ MPSetRSSv2Parameters(
/*++
Routine Description:
- This routine handles OID_GEN_RECEIVE_SCALE_PARAMETERS_V2 set request.
+ This routine handles OID_GEN_RECEIVE_SCALE_PARAMETERS_V2 set request.
Arguments:
@@ -1911,9 +1911,9 @@ Arguments:
Return Value:
- NDIS_STATUS
+ NDIS_STATUS
---*/
+--*/
{
struct _SET *Set;
@@ -1922,7 +1922,7 @@ Return Value:
//
// Validate the request
//
- if (Set->InformationBufferLength <
+ if (Set->InformationBufferLength <
NDIS_SIZEOF_RECEIVE_SCALE_PARAMETERS_V2_REVISION_1)
{
DEBUGP(MP_ERROR, "OID_GEN_RECEIVE_SCALE_PARAMETERS_V2: Invalid InformationBufferLength\n");
@@ -1942,7 +1942,7 @@ MPSetRSSv2IndirectionTableEntries(
/*++
Routine Description:
- This routine handles OID_GEN_RSS_SET_INDIRECTION_TABLE_ENTRIES method request.
+ This routine handles OID_GEN_RSS_SET_INDIRECTION_TABLE_ENTRIES method request.
Arguments:
@@ -1951,9 +1951,9 @@ Arguments:
Return Value:
- NDIS_STATUS
+ NDIS_STATUS
---*/
+--*/
{
struct _METHOD *Method;
@@ -1964,7 +1964,7 @@ Return Value:
//
// Validate the request
//
- if (Method->InputBufferLength <
+ if (Method->InputBufferLength <
NDIS_SIZEOF_RSS_SET_INDIRECTION_ENTRIES_REVISION_1)
{
DEBUGP(MP_ERROR, "OID_GEN_RSS_SET_INDIRECTION_TABLE_ENTRIES: Invalid InformationBufferLength\n");
diff --git a/network/ndis/netvmini/6x/hardware.h b/network/ndis/netvmini/6x/hardware.h
index ddc4c4a3..3b0731b0 100644
--- a/network/ndis/netvmini/6x/hardware.h
+++ b/network/ndis/netvmini/6x/hardware.h
@@ -130,7 +130,7 @@ C_ASSERT(sizeof(NIC_FRAME_HEADER) == HW_FRAME_HEADER_SIZE);
//
// Maximum number of receives that will be processed per DPC.
-// This constraints the amount of time spent for a single receive DPC.
+// This constraints the amount of time spent for a single receive DPC.
//
#define NIC_MAX_RECVS_PER_DPC 64
@@ -179,9 +179,9 @@ C_ASSERT(sizeof(NIC_FRAME_HEADER) == HW_FRAME_HEADER_SIZE);
// and suspend. Ensure the correct flags are set for your hardware.
//
// If your hardware supports busmaster DMA, you must specify
-// NDIS_MINIPORT_ATTRIBUTES_BUS_MASTER. Our virtual miniport will
-// not be allocating hardware resources such as interrupts, so we set the
-// WDM attribute.
+// NDIS_MINIPORT_ATTRIBUTES_BUS_MASTER. Our virtual miniport will
+// not be allocating hardware resources such as interrupts, so we set the
+// WDM attribute.
//
#define NIC_ADAPTER_ATTRIBUTES_FLAGS (\
NDIS_MINIPORT_ATTRIBUTES_SURPRISE_REMOVE_OK | NDIS_MINIPORT_ATTRIBUTES_NDIS_WDM)
@@ -239,21 +239,21 @@ C_ASSERT(sizeof(NIC_FRAME_HEADER) == HW_FRAME_HEADER_SIZE);
//
// The NIC must reserve at least one filter available HW queue. More filters allows
// the VMQ queues to be assigned asymmetrically. For this sample we chose to allow
-// twice as many filters as queues.
+// twice as many filters as queues.
//
#define NIC_SUPPORTED_NUM_QUEUES 8
#define NIC_MAX_HEADER_FILTERS (NIC_SUPPORTED_NUM_QUEUES*2)
//
// Determines the minimum and maximum amount of lookahead split that we can do. Real hardware
-// might have tighter constraints on the range depending on the HW design.
+// might have tighter constraints on the range depending on the HW design.
//
#define NIC_MIN_LOOKAHEAD_SPLIT 64
#define NIC_MAX_LOOKAHEAD_SPLIT 128
//
// Determines the minimum amount of receive blocks we will attempt to allocate if the full allocations fail and
-// we retry with a reduced count. If we fail with this amount we fail the allocation.
+// we retry with a reduced count. If we fail with this amount we fail the allocation.
//
#define NIC_MIN_BUSY_RECVS 64
diff --git a/network/ndis/netvmini/6x/miniport.c b/network/ndis/netvmini/6x/miniport.c
index 9ec793af..5526789f 100644
--- a/network/ndis/netvmini/6x/miniport.c
+++ b/network/ndis/netvmini/6x/miniport.c
@@ -344,7 +344,7 @@ VOID
MPAttachAdapter(
_In_ PMP_ADAPTER Adapter)
{
- MP_LOCK_STATE LockState;
+ MP_LOCK_STATE LockState;
DEBUGP(MP_TRACE, "[%p] ---> MPAttachAdapter\n", Adapter);
diff --git a/network/ndis/netvmini/6x/mphal.c b/network/ndis/netvmini/6x/mphal.c
index e363f613..63aff834 100644
--- a/network/ndis/netvmini/6x/mphal.c
+++ b/network/ndis/netvmini/6x/mphal.c
@@ -90,7 +90,7 @@ Return Value:
case CmResourceTypePort:
DEBUGP(MP_INFO, "[%p] IoBaseAddress = 0x%x\n", Adapter,
NdisGetPhysicalAddressLow(pResDesc->u.Port.Start));
- DEBUGP(MP_INFO, "[%p] IoRange = x%x\n", Adapter,
+ DEBUGP(MP_INFO, "[%p] IoRange = x%x\n", Adapter,
pResDesc->u.Port.Length);
break;
@@ -173,7 +173,7 @@ Return Value:
NDIS_STATUS Status;
PNDIS_CONFIGURATION_PARAMETER Parameter = NULL;
NDIS_STRING PermanentAddressKey = RTL_CONSTANT_STRING(NETVMINI_MAC_ADDRESS_KEY);
-
+
UNREFERENCED_PARAMETER(Adapter);
PAGED_CODE();
@@ -234,7 +234,7 @@ Return Value:
PermanentMacAddress[2] = 0xF2;
//
- // Generated value based on the current tick count value.
+ // Generated value based on the current tick count value.
//
KeQueryTickCount(&TickCountValue);
do
@@ -455,9 +455,9 @@ HWCopyBytesFromNetBuffer(
Routine Description:
- Copies the first cbDest bytes from a NET_BUFFER. In order to show how the various data structures fit together, this
+ Copies the first cbDest bytes from a NET_BUFFER. In order to show how the various data structures fit together, this
implementation copies the data by iterating through the MDLs for the NET_BUFFER. The NdisGetDataBuffer API also allows you
- to copy a contiguous block of data from a NET_BUFFER.
+ to copy a contiguous block of data from a NET_BUFFER.
Runs at IRQL <= DISPATCH_LEVEL.
@@ -496,8 +496,8 @@ Notes:
while (DestOffset < *cbDest && CurrentMdl)
{
//
- // Map MDL memory to System Address Space. LowPagePriority means mapping may fail if
- // system is low on memory resources.
+ // Map MDL memory to System Address Space. LowPagePriority means mapping may fail if
+ // system is low on memory resources.
//
PUCHAR SrcMemory = MmGetSystemAddressForMdlSafe(CurrentMdl, LowPagePriority | MdlMappingNoExecute);
ULONG Length = MmGetMdlByteCount(CurrentMdl);
@@ -526,7 +526,7 @@ Notes:
DestOffset += Length;
//
- // Get next MDL (if any available)
+ // Get next MDL (if any available)
//
CurrentMdl = NDIS_MDL_LINKAGE(CurrentMdl);
}
@@ -837,12 +837,12 @@ Return Value:
//
- // For simplicity in the sample in order to support VLAN we extract the information from the NBL or frame and pass the
+ // For simplicity in the sample in order to support VLAN we extract the information from the NBL or frame and pass the
// NDIS_NET_BUFFER_LIST_8021Q_INFO structure to the code that simulates the send/receive. The code does nothing to convert
- // modify the frame format.
+ // modify the frame format.
// In real HW, on send the code should extract the information from the NBL and covert it to 802.1Q format for transmission, and
// on receive the adapter should detect if the packet is in 802.1Q format and if so convert it back to 802.3 before indicating it up to NDIS
- // (populating the 8021Q info in the NBL being indicated).
+ // (populating the 8021Q info in the NBL being indicated).
//
Nbl = NBL_FROM_SEND_NB(NetBuffer);
Nbl1QInfo.Value = NET_BUFFER_LIST_INFO(Nbl, Ieee8021QNetBufferListInfo);
@@ -854,7 +854,7 @@ Return Value:
else
{
DEBUGP(MP_TRACE, "[%p] Send NBL (%p) has no OOB VLAN tag, checking frame header.\n", Adapter, Nbl);
- if(IS_FRAME_8021Q(Frame))
+ if(IS_FRAME_8021Q(Frame))
{
//
// The frame has type of 802.1Q. Retrieve the VLAN information
@@ -864,9 +864,9 @@ Return Value:
}
else
{
- DEBUGP(MP_TRACE, "[%p] Send NBL (%p) has no VLAN information in its frame header.\n", Adapter, Nbl);
+ DEBUGP(MP_TRACE, "[%p] Send NBL (%p) has no VLAN information in its frame header.\n", Adapter, Nbl);
}
- }
+ }
RXDeliverFrameToEveryAdapter(Adapter, &Nbl1QInfo, Frame, fAtDispatch);
@@ -923,8 +923,8 @@ HWBeginReceiveDma(
Routine Description:
- Simulate the hardware deciding to receive a FRAME into one of its RCBs. In VMQ enabled scenarios, it will
- find the matching queue and if matched retrieve the shared memory for the queue for the NBL. Otherwise, it
+ Simulate the hardware deciding to receive a FRAME into one of its RCBs. In VMQ enabled scenarios, it will
+ find the matching queue and if matched retrieve the shared memory for the queue for the NBL. Otherwise, it
uses the existing Frame for the NBL.
Arguments:
@@ -949,7 +949,7 @@ Return Value:
DEBUGP(MP_TRACE, "[%p] ---> HWBeginReceiveDma. Frame: 0x%p\n", Adapter, Frame);
//
- // Preserve 802.1Q information, if specified.
+ // Preserve 802.1Q information, if specified.
//
if(Nbl1QInfo->Value)
{
@@ -963,7 +963,7 @@ Return Value:
}
//
- // If VMQ is enabled, and we're not using the default queue,
+ // If VMQ is enabled, and we're not using the default queue,
// we need to copy the FRAME to the NBL's shared memory area
//
if(VMQ_ENABLED(Adapter))
@@ -991,12 +991,12 @@ Return Value:
NET_BUFFER_DATA_OFFSET(NetBuffer) = 0;
NET_BUFFER_CURRENT_MDL(NetBuffer) = NET_BUFFER_FIRST_MDL(NetBuffer);
NET_BUFFER_CURRENT_MDL_OFFSET(NetBuffer) = 0;
-
+
}
while(FALSE);
-
+
DEBUGP(MP_TRACE, "[%p] <--- HWBeginReceiveDma Status 0x%08x\n", Adapter, Status);
return Status;
}
-
+
diff --git a/network/ndis/netvmini/6x/mphal.h b/network/ndis/netvmini/6x/mphal.h
index 5348545b..0bcd11e6 100644
--- a/network/ndis/netvmini/6x/mphal.h
+++ b/network/ndis/netvmini/6x/mphal.h
@@ -51,7 +51,7 @@ struct _RCB;
typedef struct _VLAN_TAG_HEADER
{
- UCHAR TagInfo[2];
+ UCHAR TagInfo[2];
} VLAN_TAG_HEADER, *PVLAN_TAG_HEADER;
#define GET_FRAME_VLAN_TAG_HEADER(_Frame)\
diff --git a/network/ndis/netvmini/6x/qos.c b/network/ndis/netvmini/6x/qos.c
index a7b2e530..fe455b1b 100644
--- a/network/ndis/netvmini/6x/qos.c
+++ b/network/ndis/netvmini/6x/qos.c
@@ -637,7 +637,7 @@ Return Value:
IndicateParameters(Adapter, NDIS_STATUS_QOS_OPERATIONAL_PARAMETERS_CHANGE, OperationalParams);
-
+
NdisFreeMemoryWithTagPriority(NdisDriverHandle, OperationalParams, NIC_TAG_QOS_PARAMS);
}
else
diff --git a/network/ndis/netvmini/6x/rssv2.c b/network/ndis/netvmini/6x/rssv2.c
index 3f185c8a..481c4f5e 100644
--- a/network/ndis/netvmini/6x/rssv2.c
+++ b/network/ndis/netvmini/6x/rssv2.c
@@ -51,10 +51,10 @@ Arguments:
Vport - Pointer to the VPort
- Command - Move command which identifies the steering
+ Command - Move command which identifies the steering
parameter and the target processor.
- NewLocalCpuIndex - Local index of the target processor the steering
+ NewLocalCpuIndex - Local index of the target processor the steering
parameter is being pointed to.
Return Value:
@@ -74,13 +74,13 @@ MiniportApplyConfigurationToHW(
_Inout_ PMP_ADAPTER Adapter,
_Inout_ PMP_ADAPTER_VPORT VPort,
_In_ BOOLEAN IsRssEnabled,
- _In_ USHORT NewITCount,
+ _In_ USHORT NewITCount,
_In_ ULONG NewNumberOfQueues
)
/*++
Routine Description:
- This routine propagates changes as specified by the configuration OID to
+ This routine propagates changes as specified by the configuration OID to
the HW.
All failures cases are already handled and before calling this function.
@@ -109,7 +109,7 @@ Return Value:
UNREFERENCED_PARAMETER(NewITCount);
UNREFERENCED_PARAMETER(NewNumberOfQueues);
}
-
+
_IRQL_requires_(PASSIVE_LEVEL)
NDIS_STATUS
@@ -152,8 +152,8 @@ Return Value:
//
// Allocate the neccessary memory for reading the available processors
//
- Adapter->RSSData.RssProcessorInfo =
- (PNDIS_RSS_PROCESSOR_INFO)ExAllocatePool2(POOL_FLAG_NON_PAGED,
+ Adapter->RSSData.RssProcessorInfo =
+ (PNDIS_RSS_PROCESSOR_INFO)ExAllocatePool2(POOL_FLAG_NON_PAGED,
RssInfoSize,
'IRMT');
if (Adapter->RSSData.RssProcessorInfo == NULL)
@@ -166,7 +166,7 @@ Return Value:
Status = NdisGetRssProcessorInformation(Adapter->AdapterHandle,
Adapter->RSSData.RssProcessorInfo,
&RssInfoSize);
-
+
if (Status != NDIS_STATUS_SUCCESS)
{
DEBUGP(MP_ERROR, "%s: Unabled to get rss information\n", __FUNCTION__);
@@ -174,7 +174,7 @@ Return Value:
}
Adapter->RSSData.RssProcessorArray = (PNDIS_RSS_PROCESSOR)
- ((PUCHAR)Adapter->RSSData.RssProcessorInfo +
+ ((PUCHAR)Adapter->RSSData.RssProcessorInfo +
Adapter->RSSData.RssProcessorInfo->RssProcessorArrayOffset);
Status = NDIS_STATUS_SUCCESS;
@@ -213,13 +213,13 @@ Return Value:
ULONG index;
PNDIS_RSS_PROCESSOR processor;
- for (index = 0;
- index < Adapter->RSSData.RssProcessorInfo->RssProcessorCount;
+ for (index = 0;
+ index < Adapter->RSSData.RssProcessorInfo->RssProcessorCount;
index++)
{
processor = &Adapter->RSSData.RssProcessorArray[index];
- if ((processor->ProcNum.Group == ProcessorNumber.Group) &&
+ if ((processor->ProcNum.Group == ProcessorNumber.Group) &&
(processor->ProcNum.Number == ProcessorNumber.Number))
{
return (UINT8)index;
@@ -274,7 +274,7 @@ NICSetRSSv2ValidateRssProcessor(
/*++
Routine Description:
- This routine validates processor against minport's RSS settings, and if it
+ This routine validates processor against minport's RSS settings, and if it
is valid, returns local index.
Arguments:
@@ -322,7 +322,7 @@ Return Value:
if ((ProcessorNumber.Group == (USHORT)RssProcessorInfo->RssMaxProcessor.Group) &&
(ProcessorNumber.Number > (UCHAR)RssProcessorInfo->RssMaxProcessor.Number))
{
- DEBUGP(MP_ERROR, "RssValidateProcessor: Invalid Proc Number %d:%d, above RssMaxProcNumber\n",
+ DEBUGP(MP_ERROR, "RssValidateProcessor: Invalid Proc Number %d:%d, above RssMaxProcNumber\n",
ProcessorNumber.Group, ProcessorNumber.Number);
return FALSE;
}
@@ -373,7 +373,7 @@ Return Value:
VPort->RssEnabled = FALSE;
if (!NICSetRSSv2ValidateRssProcessor(Adapter,
- PrimaryProcessor,
+ PrimaryProcessor,
&PrimaryProcessorIndex))
{
DEBUGP(MP_TRACE, "Primary is not a valid RSS processor.\n");
@@ -393,7 +393,7 @@ Return Value:
goto Cleanup;
}
- RssV2NQEnforcerInitialize(VPort->QueueMap,
+ RssV2NQEnforcerInitialize(VPort->QueueMap,
RSSV2_MAX_NUMBER_OF_PROCESSORS_IN_RSS_TABLE);
RtlFillMemory(&VPort->RssV2IndexTable, sizeof(VPort->RssV2IndexTable), 0xFF);
@@ -430,7 +430,7 @@ NICSetRSSv2SetCurrentProcessor(
/*++
Routine Description:
- This routine updates tracking information for the steering parameter
+ This routine updates tracking information for the steering parameter
(Primary, Default or ITE[n]), as selected by the Command.
Routine is called after the "move command" has fully succeeded.
@@ -474,10 +474,10 @@ Return Value:
VPort->RssV2Table[Command->IndirectionTableIndex] = NewProcessor;
DEBUGP(MP_TRACE, "OID_GEN_RSS_SET_INDIRECTION_TABLE_ENTRIES: OK: ITE[%d] VPortId %d, RssEnabled %d, TargetProc %d:%d\n",
- Command->IndirectionTableIndex,
- Command->VPortId,
- VPort->RssEnabled,
- NewProcessor.Group,
+ Command->IndirectionTableIndex,
+ Command->VPortId,
+ VPort->RssEnabled,
+ NewProcessor.Group,
NewProcessor.Number);
}
}
@@ -495,7 +495,7 @@ NICSetRSSv2ValidateCommandAndGetProcessor (
/*++
Routine Description:
- This routine validates the move command, and returns information about
+ This routine validates the move command, and returns information about
specified steering parameter (Primary, Default or ITE[n] if command is valid.
Arguments:
@@ -504,7 +504,7 @@ Arguments:
Command - Move command used to update steering parameter
- CurrentProcessor - Pointer which receives processor where steering
+ CurrentProcessor - Pointer which receives processor where steering
parameter currenty points to.
CurrentCpuIndex - Corresponding local index
@@ -550,8 +550,8 @@ Return Value:
}
else
{
- DEBUGP(MP_ERROR, "OID_GEN_RSS_SET_INDIRECTION_TABLE_ENTRIES: Invalid IndirectionTableIndex(%d) >= %d\n",
- Command->IndirectionTableIndex,
+ DEBUGP(MP_ERROR, "OID_GEN_RSS_SET_INDIRECTION_TABLE_ENTRIES: Invalid IndirectionTableIndex(%d) >= %d\n",
+ Command->IndirectionTableIndex,
VPort->RssV2Params.NumberOfIndirectionTableEntries);
}
}
@@ -572,7 +572,7 @@ NICSetRSSv2Parameters(
/*++
Routine Description:
- This routine handles OID_GEN_RECEIVE_SCALE_PARAMETERS_V2 set request.
+ This routine handles OID_GEN_RECEIVE_SCALE_PARAMETERS_V2 set request.
Arguments:
@@ -581,9 +581,9 @@ Arguments:
Return Value:
- NDIS_STATUS
+ NDIS_STATUS
---*/
+--*/
{
USHORT EntryIndex;
BOOLEAN IsHashInfoChanged;
@@ -614,14 +614,14 @@ Return Value:
//
// Validate the request
//
- if (RssParams->HashSecretKeySize !=
+ if (RssParams->HashSecretKeySize !=
NDIS_RSS_HASH_SECRET_KEY_MAX_SIZE_REVISION_2)
{
DEBUGP(MP_ERROR, "OID_GEN_RECEIVE_SCALE_PARAMETERS_V2: Invalid HashSecretKeySize\n");
return NDIS_STATUS_INVALID_LENGTH;
}
- if ((Set->InformationBufferLength <
+ if ((Set->InformationBufferLength <
(RssParams->HashSecretKeyOffset + RssParams->HashSecretKeySize))
||
(RssParams->HashSecretKeyOffset <
@@ -633,7 +633,7 @@ Return Value:
if ((NdisRequest->Flags & NDIS_OID_REQUEST_FLAGS_VPORT_ID_VALID) != 0)
{
- DEBUGP(MP_TRACE, "OID_GEN_RECEIVE_SCALE_PARAMETERS_V2: Issued for VPortId=%d, Flags=0x%x \n",
+ DEBUGP(MP_TRACE, "OID_GEN_RECEIVE_SCALE_PARAMETERS_V2: Issued for VPortId=%d, Flags=0x%x \n",
NdisRequest->VPortId, RssParams->Flags);
VPortId = NdisRequest->VPortId;
}
@@ -643,7 +643,7 @@ Return Value:
VPortId = NDIS_INVALID_VPORT_ID;
}
- if ((VPortId != NDIS_INVALID_VPORT_ID) &&
+ if ((VPortId != NDIS_INVALID_VPORT_ID) &&
(VPortId >= MAX_NIC_SWITCH_VPORTS))
{
DEBUGP(MP_ERROR, "OID_GEN_RECEIVE_SCALE_PARAMETERS_V2: Invalid VPortId\n");
@@ -659,23 +659,23 @@ Return Value:
VPort = &Adapter->RSSData.NativeVPort;
}
- IsNumQueuesChanged =
+ IsNumQueuesChanged =
((RssParams->Flags & NDIS_RECEIVE_SCALE_PARAM_NUMBER_OF_QUEUES_CHANGED) != 0) &&
(RssParams->NumberOfQueues != VPort->RssV2Params.NumberOfQueues);
- IsRssEnabled =
+ IsRssEnabled =
((RssParams->Flags & NDIS_RECEIVE_SCALE_PARAM_ENABLE_RSS) != 0);
- IsNumITEsChanged =
+ IsNumITEsChanged =
((RssParams->Flags & NDIS_RECEIVE_SCALE_PARAM_NUMBER_OF_ENTRIES_CHANGED) != 0) &&
- (RssParams->NumberOfIndirectionTableEntries !=
+ (RssParams->NumberOfIndirectionTableEntries !=
VPort->RssV2Params.NumberOfIndirectionTableEntries);
- IsHashInfoChanged =
+ IsHashInfoChanged =
((RssParams->Flags & NDIS_RECEIVE_SCALE_PARAM_HASH_INFO_CHANGED) != 0) &&
(VPort->RssV2Params.HashInformation != RssParams->HashInformation);
- IsHashKeyChanged =
+ IsHashKeyChanged =
((RssParams->Flags & NDIS_RECEIVE_SCALE_PARAM_HASH_KEY_CHANGED) != 0) &&
!RtlEqualMemory(&VPort->RssV2Key,
(PUCHAR)RssParams + RssParams->HashSecretKeyOffset,
@@ -700,7 +700,7 @@ Return Value:
{
DEBUGP(MP_ERROR, "OID_GEN_RECEIVE_SCALE_PARAMETERS_V2: VPortId=%d, NQ-Violation (queue change): NQueues=%d < NProcs=%d\n",
NdisRequest->VPortId,
- NewNumberOfQueues,
+ NewNumberOfQueues,
NumProcs);
Status = NDIS_STATUS_NO_QUEUES;
goto Cleanup;
@@ -730,9 +730,9 @@ Return Value:
if ((ProcessorNumber.Group != VPort->RssV2Table[EntryIndex].Group) ||
(ProcessorNumber.Number != VPort->RssV2Table[EntryIndex].Number))
{
- DEBUGP(MP_ERROR, "OID_GEN_RECEIVE_SCALE_PARAMETERS_V2: VPortId %d, Cannot shrink IT size from %d to %d, mismatch at ITE[%d]\n",
- NdisRequest->VPortId,
- OldITCount,
+ DEBUGP(MP_ERROR, "OID_GEN_RECEIVE_SCALE_PARAMETERS_V2: VPortId %d, Cannot shrink IT size from %d to %d, mismatch at ITE[%d]\n",
+ NdisRequest->VPortId,
+ OldITCount,
NewITCount,
EntryIndex);
Status = NDIS_STATUS_INVALID_DATA;
@@ -755,7 +755,7 @@ Return Value:
&LocalCpuIndex))
{
DEBUGP(MP_ERROR, "OID_GEN_RECEIVE_SCALE_PARAMETERS_V2: Invalid DedfaultProcessorNumebr: %d:%d \n",
- VPort->DefaultProcessorNumber.Group,
+ VPort->DefaultProcessorNumber.Group,
VPort->DefaultProcessorNumber.Number);
Status = NDIS_STATUS_INVALID_DATA;
@@ -772,12 +772,12 @@ Return Value:
ProcessorNumber = VPort->RssV2Table[EntryIndex];
if (!NICSetRSSv2ValidateRssProcessor(Adapter,
- ProcessorNumber,
+ ProcessorNumber,
&LocalCpuIndex))
{
DEBUGP(MP_ERROR, "OID_GEN_RECEIVE_SCALE_PARAMETERS_V2: Invalid ITE[%d]: %d:%d \n",
EntryIndex,
- ProcessorNumber.Group,
+ ProcessorNumber.Group,
ProcessorNumber.Number);
Status = NDIS_STATUS_INVALID_DATA;
@@ -789,7 +789,7 @@ Return Value:
}
//
- // After VPort->QueueMap is built, check for NQ-violation during
+ // After VPort->QueueMap is built, check for NQ-violation during
// RSS enablement.
//
// Get number of queues after RSS enablement.
@@ -798,7 +798,7 @@ Return Value:
if (NumProcs > NewNumberOfQueues)
{
DEBUGP(MP_ERROR, "OID_GEN_RECEIVE_SCALE_PARAMETERS_V2: NQ-Violation: NQueues=%d < NProcs=%d\n",
- NewNumberOfQueues,
+ NewNumberOfQueues,
NumProcs);
Status = NDIS_STATUS_NO_QUEUES;
goto Cleanup;
@@ -813,11 +813,11 @@ Return Value:
PrimaryProcessorNumber = VPort->PrimaryProcessorNumber;
if (!NICSetRSSv2ValidateRssProcessor(Adapter,
- PrimaryProcessorNumber,
+ PrimaryProcessorNumber,
&LocalCpuIndex))
{
DEBUGP(MP_ERROR, "OID_GEN_RECEIVE_SCALE_PARAMETERS_V2: Invalid PrimaryProcessorNumebr: %d:%d \n",
- PrimaryProcessorNumber.Group,
+ PrimaryProcessorNumber.Group,
PrimaryProcessorNumber.Number);
Status = NDIS_STATUS_INVALID_DATA;
@@ -834,7 +834,7 @@ Return Value:
//
if (IsHashKeyChanged)
{
- VPort->RssV2Params.HashSecretKeySize =
+ VPort->RssV2Params.HashSecretKeySize =
RssParams->HashSecretKeySize;
NdisMoveMemory(&VPort->RssV2Key,
@@ -857,7 +857,7 @@ Return Value:
//
// IT expansion
//
- DEBUGP(MP_ERROR, "OID_GEN_RECEIVE_SCALE_PARAMETERS_V2: VPortId %d, Expand IT size from %d to %d\n",
+ DEBUGP(MP_ERROR, "OID_GEN_RECEIVE_SCALE_PARAMETERS_V2: VPortId %d, Expand IT size from %d to %d\n",
NdisRequest->VPortId, OldITCount, NewITCount);
ASSERT((NewITCount % OldITCount) == 0);
@@ -876,7 +876,7 @@ Return Value:
//
// IT contraction
//
- DEBUGP(MP_ERROR, "OID_GEN_RECEIVE_SCALE_PARAMETERS_V2: VPortId %d, Shrink IT size from %d to %d\n",
+ DEBUGP(MP_ERROR, "OID_GEN_RECEIVE_SCALE_PARAMETERS_V2: VPortId %d, Shrink IT size from %d to %d\n",
NdisRequest->VPortId, OldITCount, NewITCount);
ASSERT((OldITCount % NewITCount) == 0);
@@ -893,20 +893,20 @@ Return Value:
}
//
- // Apply new configuration to HW (hash key and information is already in
+ // Apply new configuration to HW (hash key and information is already in
// the VPort object).
//
- MiniportApplyConfigurationToHW(Adapter,
- VPort,
+ MiniportApplyConfigurationToHW(Adapter,
+ VPort,
IsRssEnabled,
- NewITCount,
+ NewITCount,
NewNumberOfQueues);
VPort->RssV2Params.NumberOfIndirectionTableEntries = NewITCount;
VPort->RssV2Params.NumberOfQueues = NewNumberOfQueues;
VPort->RssEnabled = IsRssEnabled;
- DEBUGP(MP_TRACE, "OID_GEN_RECEIVE_SCALE_PARAMETERS_V2: VPortId=%d, RssEnabled=%d, IT.size=%d\n",
+ DEBUGP(MP_TRACE, "OID_GEN_RECEIVE_SCALE_PARAMETERS_V2: VPortId=%d, RssEnabled=%d, IT.size=%d\n",
NdisRequest->VPortId, IsRssEnabled, VPort->RssV2Params.NumberOfIndirectionTableEntries);
Set->BytesNeeded = Set->InformationBufferLength;
@@ -928,7 +928,7 @@ NICSetRSSv2IndirectionTableEntries(
/*++
Routine Description:
- This routine handles OID_GEN_RSS_SET_INDIRECTION_TABLE_ENTRIES method request.
+ This routine handles OID_GEN_RSS_SET_INDIRECTION_TABLE_ENTRIES method request.
Arguments:
@@ -937,9 +937,9 @@ Arguments:
Return Value:
- NDIS_STATUS
+ NDIS_STATUS
---*/
+--*/
{
PROCESSOR_NUMBER ActorProcessorNumber;
PNDIS_RSS_SET_INDIRECTION_ENTRY Command;
@@ -962,10 +962,10 @@ Return Value:
PMP_ADAPTER_VPORT VPort;
//
- // Allocate a local queue map on stack, to hold temporary results during
+ // Allocate a local queue map on stack, to hold temporary results during
// handling of each "move all" group.
//
- DECLARE_RSSV2_QUEUE_MAP_ON_STACK(LocalQueueMap,
+ DECLARE_RSSV2_QUEUE_MAP_ON_STACK(LocalQueueMap,
RSSV2_MAX_NUMBER_OF_PROCESSORS_IN_RSS_TABLE);
DEBUGP(MP_TRACE, "[%p] ---> NICSetRSSv2IndirectionTableEntries\n", Adapter);
@@ -976,12 +976,12 @@ Return Value:
Method->BytesRead = 0;
Method->BytesNeeded = 0;
- Method->BytesWritten = 0;
+ Method->BytesWritten = 0;
//
// Validate the request
//
- if (InputBufferLength <
+ if (InputBufferLength <
(NDIS_SIZEOF_RSS_SET_INDIRECTION_ENTRIES_REVISION_1 +
RssEntries->NumberOfRssEntries * RssEntries->RssEntrySize))
{
@@ -993,7 +993,7 @@ Return Value:
//
// RSSv2 spec requires up to 130 entries to be handled in a single batch.
//
- if (RssEntries->NumberOfRssEntries >
+ if (RssEntries->NumberOfRssEntries >
(2 + MAX_NUMBER_OF_INDIRECTION_TABLE_ENTRIES))
{
DEBUGP(MP_ERROR, "OID_GEN_RSS_SET_INDIRECTION_TABLE_ENTRIES: Invalid NumberOfRssEntries \n");
@@ -1011,8 +1011,8 @@ Return Value:
((PUCHAR)RssEntries + RssEntries->RssEntryTableOffset);
DEBUGP(MP_ERROR, "OID_GEN_RSS_SET_INDIRECTION_TABLE_ENTRIES: Actor %d:%d, NumberOfRssEntries %d \n",
- ActorProcessorNumber.Group,
- ActorProcessorNumber.Number,
+ ActorProcessorNumber.Group,
+ ActorProcessorNumber.Number,
RssEntries->NumberOfRssEntries);
NumCommandsToExecute = 0;
@@ -1034,18 +1034,18 @@ Return Value:
{
if (SwitchId != NDIS_DEFAULT_SWITCH_ID)
{
- DEBUGP(MP_ERROR, "OID_GEN_RSS_SET_INDIRECTION_TABLE_ENTRIES: Invalid SwitchId (%d)\n",
+ DEBUGP(MP_ERROR, "OID_GEN_RSS_SET_INDIRECTION_TABLE_ENTRIES: Invalid SwitchId (%d)\n",
SwitchId);
- RssV2SetCommandRangeStatus(&Context,
+ RssV2SetCommandRangeStatus(&Context,
NDIS_STATUS_INVALID_PARAMETER);
continue; // while (RssV2FindNextCommandRange())
}
if (VPortId > MAX_NIC_SWITCH_VPORTS)
{
- DEBUGP(MP_ERROR, "OID_GEN_RSS_SET_INDIRECTION_TABLE_ENTRIES: Invalid VPortId (%d)\n",
+ DEBUGP(MP_ERROR, "OID_GEN_RSS_SET_INDIRECTION_TABLE_ENTRIES: Invalid VPortId (%d)\n",
VPortId);
- RssV2SetCommandRangeStatus(&Context,
+ RssV2SetCommandRangeStatus(&Context,
NDIS_STATUS_INVALID_PARAMETER);
continue; // while (RssV2FindNextCommandRange())
}
@@ -1053,19 +1053,19 @@ Return Value:
VPort = &Adapter->RSSData.VPort[VPortId];
if (VPort->Created == FALSE)
- {
- DEBUGP(MP_ERROR, "OID_GEN_RSS_SET_INDIRECTION_TABLE_ENTRIES: VPort %d is not created\n",
+ {
+ DEBUGP(MP_ERROR, "OID_GEN_RSS_SET_INDIRECTION_TABLE_ENTRIES: VPort %d is not created\n",
VPortId);
- RssV2SetCommandRangeStatus(&Context,
+ RssV2SetCommandRangeStatus(&Context,
NDIS_STATUS_INVALID_PARAMETER);
continue; // while (RssV2FindNextCommandRange())
}
if (VPort->Active == FALSE)
- {
- DEBUGP(MP_ERROR, "OID_GEN_RSS_SET_INDIRECTION_TABLE_ENTRIES: VPort %d is not active\n",
+ {
+ DEBUGP(MP_ERROR, "OID_GEN_RSS_SET_INDIRECTION_TABLE_ENTRIES: VPort %d is not active\n",
VPortId);
- RssV2SetCommandRangeStatus(&Context,
+ RssV2SetCommandRangeStatus(&Context,
NDIS_STATUS_INVALID_PORT_STATE);
continue; // while (RssV2FindNextCommandRange())
}
@@ -1080,7 +1080,7 @@ Return Value:
while ((Command = RssV2GetNextCommand(&Context, FALSE)) != NULL)
{
if (!NICSetRSSv2ValidateCommandAndGetProcessor(
- VPort,
+ VPort,
Command,
&CurrentProcessorNumber,
&OldCpuIndex,
@@ -1094,12 +1094,12 @@ Return Value:
(ActorProcessorNumber.Number != CurrentProcessorNumber.Number))
{
DEBUGP(MP_ERROR, "OID_GEN_RSS_SET_INDIRECTION_TABLE_ENTRIES: VPortId=%d, Flags=0x%x, EntryIndex=%d: Invalid Actor %d:%d, expected %d:%d\n",
- Command->VPortId,
+ Command->VPortId,
Command->Flags,
- Command->IndirectionTableIndex,
+ Command->IndirectionTableIndex,
ActorProcessorNumber.Group,
ActorProcessorNumber.Number,
- CurrentProcessorNumber.Group,
+ CurrentProcessorNumber.Group,
CurrentProcessorNumber.Number);
Command->EntryStatus = NDIS_STATUS_NOT_ACCEPTED;
@@ -1116,9 +1116,9 @@ Return Value:
(TargetProcessorNumber.Number == CurrentProcessorNumber.Number))
{
DEBUGP(MP_ERROR, "OID_GEN_RSS_SET_INDIRECTION_TABLE_ENTRIES: OK1: VPortId=%d, Flags=0x%x, EntryIndex=%d: TargetProc=%d:%d\n",
- Command->VPortId,
+ Command->VPortId,
Command->Flags,
- Command->IndirectionTableIndex,
+ Command->IndirectionTableIndex,
TargetProcessorNumber.Group,
TargetProcessorNumber.Number);
@@ -1132,16 +1132,16 @@ Return Value:
// INACTIVE steering entities are only tracked and will be
// enforced during RSS transition to ON/OFF.
//
- NICSetRSSv2SetCurrentProcessor(VPort,
- Command,
- TargetProcessorNumber,
+ NICSetRSSv2SetCurrentProcessor(VPort,
+ Command,
+ TargetProcessorNumber,
0xFF);
DEBUGP(MP_ERROR, "NDIS_SET_INDIRECTION_TABLE_ENTRY: OK2: VPortId=%d, Flags=0x%x, EntryIndex=%d, TargetProc=%d:%d\n",
- Command->VPortId,
- Command->Flags,
- Command->IndirectionTableIndex,
- TargetProcessorNumber.Group,
+ Command->VPortId,
+ Command->Flags,
+ Command->IndirectionTableIndex,
+ TargetProcessorNumber.Group,
TargetProcessorNumber.Number);
Command->EntryStatus = NDIS_STATUS_SUCCESS;
@@ -1149,7 +1149,7 @@ Return Value:
}
if (!NICSetRSSv2ValidateRssProcessor(Adapter,
- TargetProcessorNumber,
+ TargetProcessorNumber,
&NewCpuIndex))
{
Command->EntryStatus = NDIS_STATUS_INVALID_DATA;
@@ -1189,7 +1189,7 @@ Return Value:
//
// VPorts are already validated
//
- VPort = IsNativeRss ? &Adapter->RSSData.NativeVPort :
+ VPort = IsNativeRss ? &Adapter->RSSData.NativeVPort :
&Adapter->RSSData.VPort[VPortId];
RssV2NQEnforcerEnter(VPort->QueueMap, LocalQueueMap);
@@ -1201,7 +1201,7 @@ Return Value:
{
TargetProcessorNumber = Command->TargetProcessorNumber;
IsValid = NICSetRSSv2ValidateRssProcessor(Adapter,
- TargetProcessorNumber,
+ TargetProcessorNumber,
&NewCpuIndex);
ASSERT(IsValid);
@@ -1216,12 +1216,12 @@ Return Value:
}
Status = RssV2NQEnforcerLeave(VPort->QueueMap,
- LocalQueueMap,
+ LocalQueueMap,
VPort->RssV2Params.NumberOfQueues);
if (Status != NDIS_STATUS_SUCCESS)
{
DEBUGP(MP_ERROR, "OID_GEN_RSS_SET_INDIRECTION_TABLE_ENTRIES: VPortId=%d: NQ-violation: NQueues=%d < NProcs=%d\n",
- VPortId,
+ VPortId,
VPort->RssV2Params.NumberOfQueues,
RssV2NQEnforcerGetNumberOfProcs(LocalQueueMap));
RssV2SetCommandRangeStatus(&Context, Status);
@@ -1233,7 +1233,7 @@ Return Value:
//
//
- // Iterate over the same Command range to actually update the
+ // Iterate over the same Command range to actually update the
// processor numbers/indices.
//
RssV2RestartCommandIterator(&Context);
@@ -1242,7 +1242,7 @@ Return Value:
{
TargetProcessorNumber = Command->TargetProcessorNumber;
IsValid = NICSetRSSv2ValidateRssProcessor(Adapter,
- TargetProcessorNumber,
+ TargetProcessorNumber,
&NewCpuIndex);
ASSERT(IsValid);
@@ -1254,16 +1254,16 @@ Return Value:
//
// Reflect the change in software structure.
//
- NICSetRSSv2SetCurrentProcessor(VPort,
- Command,
- TargetProcessorNumber,
+ NICSetRSSv2SetCurrentProcessor(VPort,
+ Command,
+ TargetProcessorNumber,
NewCpuIndex);
DEBUGP(MP_ERROR, "NDIS_SET_INDIRECTION_TABLE_ENTRY: OK3: VPortId=%d, Flags=0x%x, EntryIndex=%d, TargetProc=%d:%d\n",
- Command->VPortId,
- Command->Flags,
- Command->IndirectionTableIndex,
- TargetProcessorNumber.Group,
+ Command->VPortId,
+ Command->Flags,
+ Command->IndirectionTableIndex,
+ TargetProcessorNumber.Group,
TargetProcessorNumber.Number);
Command->EntryStatus = NDIS_STATUS_SUCCESS;
diff --git a/network/ndis/netvmini/6x/rssv2lib.c b/network/ndis/netvmini/6x/rssv2lib.c
index a2bc5550..9bee9583 100644
--- a/network/ndis/netvmini/6x/rssv2lib.c
+++ b/network/ndis/netvmini/6x/rssv2lib.c
@@ -23,7 +23,7 @@ Abstract:
#define PRAGMA_STRUCTURE_PADDED 4324
#define PRAGMA_NO_RETTYPE_FOR_FUNC 4508
#pragma warning(disable: PRAGMA_NO_RETTYPE_FOR_FUNC)
-#pragma warning(disable: PRAGMA_ZERO_SIZED_ARRAY)
+#pragma warning(disable: PRAGMA_ZERO_SIZED_ARRAY)
#pragma warning(disable: PRAGMA_NAMELESS_STRUCT_UNION)
#pragma warning(disable: PRAGMA_STRUCTURE_PADDED)
#include <ndis.h>
@@ -63,7 +63,7 @@ Return Value:
Context->IsNativeRss = IsNativeRss;
Context->RssV2Oid = RssV2Oid;
Context->MaxIndex = RssV2Oid->NumberOfRssEntries;
- Context->LimitIndex = 0;
+ Context->LimitIndex = 0;
Context->StartIndex = 0;
Context->LastStartIndex = 0;
}
@@ -182,14 +182,14 @@ RssV2GetNextCommand (
/*++
Routine Description:
- This routine returns next command from the current command group (which
- target the same SwitchId & VPortId).
+ This routine returns next command from the current command group (which
+ target the same SwitchId & VPortId).
Arguments:
Context - parsing context
- SkipProcessedCommands - TRUE, if user wants to commands which already
+ SkipProcessedCommands - TRUE, if user wants to commands which already
have EntryStatus changed from NDIS_STATUS_PENDING.
FALSE, if user wants to iterate over all commands.
@@ -205,14 +205,14 @@ Return Value:
{
if (Context->StartIndex < Context->LimitIndex)
{
- command = RSSV2_GET_COMMAND(Context->RssV2Oid,
+ command = RSSV2_GET_COMMAND(Context->RssV2Oid,
Context->StartIndex++);
}
else
{
command = NULL;
}
- } while (SkipProcessedCommands &&
+ } while (SkipProcessedCommands &&
(command != NULL) &&
(command->EntryStatus != NDIS_STATUS_PENDING));
@@ -289,7 +289,7 @@ RssV2NQEnforcerGetBitfield (
/*++
Routine Description:
- Routine finds a pointer to the bitfield for specified
+ Routine finds a pointer to the bitfield for specified
(RSS-)local processor index.
Arguments:
@@ -306,8 +306,8 @@ Return Value:
{
ASSERT(LocalCpuIndex < QueueMap->MaxProcessors);
- return (PULONG_PTR)((PUINT8)QueueMap +
- sizeof(RSSV2_QUEUE_MAP) +
+ return (PULONG_PTR)((PUINT8)QueueMap +
+ sizeof(RSSV2_QUEUE_MAP) +
RSSV2_BITFIELD_OFFSET(LocalCpuIndex));
}
@@ -320,7 +320,7 @@ RssV2NQEnforceGetReference (
/*++
Routine Description:
- Routine finds a pointer to the reference counter for the specified
+ Routine finds a pointer to the reference counter for the specified
(RSS-)local processor index.
Arguments:
@@ -337,8 +337,8 @@ Return Value:
{
ASSERT(LocalCpuIndex < QueueMap->MaxProcessors);
- return (PUINT8)((PUINT8)QueueMap +
- sizeof(RSSV2_QUEUE_MAP) +
+ return (PUINT8)((PUINT8)QueueMap +
+ sizeof(RSSV2_QUEUE_MAP) +
RSSV2_BITFIELD_SIZE(QueueMap->MaxProcessors) +
RSSV2_REFERENCE_OFFSET(LocalCpuIndex));
}
@@ -387,7 +387,7 @@ Arguments:
QueueMap - Pointer to the queue map
- MaxNumberOfProcessorsInRssTable - Maximum number of processors which
+ MaxNumberOfProcessorsInRssTable - Maximum number of processors which
RSS table can ever contain.
Return Value:
@@ -410,7 +410,7 @@ RssV2NQEnforcerReference (
/*++
Routine Description:
- Routine marks processor as holding a reference. Corresponding bit in
+ Routine marks processor as holding a reference. Corresponding bit in
the bitfiled is set to 1, and reference count is incremented.
Arguments:
@@ -448,7 +448,7 @@ RssV2NQEnforcerDereference (
Routine Description:
Routine removes one reference cause by the processor. Reference count
- is decremented, and if it becomes zero, a corresponding bit in
+ is decremented, and if it becomes zero, a corresponding bit in
the bitfiled is cleared to 0.
Arguments:
@@ -482,7 +482,7 @@ Return Value:
VOID
RssV2NQEnforcerUpdate (
_Inout_ PRSSV2_QUEUE_MAP QueueMap,
- _In_ UINT8 OldCpuIndex,
+ _In_ UINT8 OldCpuIndex,
_In_ UINT8 NewCpuIndex
)
/*++
@@ -540,8 +540,8 @@ Return Value:
numberOfProcessors = 0;
- for (localCpuIndex = 0;
- localCpuIndex < QueueMap->MaxProcessors;
+ for (localCpuIndex = 0;
+ localCpuIndex < QueueMap->MaxProcessors;
localCpuIndex += BITS_PER_WORD)
{
bitfield = RssV2NQEnforcerGetBitfield(QueueMap, localCpuIndex);
@@ -576,9 +576,9 @@ Return Value:
--*/
{
KeAcquireSpinLockAtDpcLevel(&GlobalQueueMap->SpinLock);
-
- RtlMoveMemory(LocalQueueMap,
- GlobalQueueMap,
+
+ RtlMoveMemory(LocalQueueMap,
+ GlobalQueueMap,
RssV2NQEnforcerGetQueueMapSize(GlobalQueueMap->MaxProcessors));
}
@@ -616,9 +616,9 @@ Routine Description:
Arguments:
GlobalQueueMap - Pointer to the global queue map (e.g. VPort's) visible by
- many processors.
+ many processors.
- LocalQueueMap - Pointer to the queue map on stack. If NQ-check succeeds,
+ LocalQueueMap - Pointer to the queue map on stack. If NQ-check succeeds,
the global queue map will be updated from the local copy.
If NQ-check fails, local copy will be discarded and global
copy is unchanged.
@@ -627,10 +627,10 @@ Arguments:
Return Value:
- NDIS_STATUS_SUCCESS - if the accumulated local changes lead to valid
+ NDIS_STATUS_SUCCESS - if the accumulated local changes lead to valid
configuration.
-
- NDIS_STATUS_NO_QUEUES - if the accumulated local configuration exceeds
+
+ NDIS_STATUS_NO_QUEUES - if the accumulated local configuration exceeds
QueueLimit.
--*/
@@ -639,8 +639,8 @@ Return Value:
if (RssV2NQEnforcerGetNumberOfProcs(LocalQueueMap) <= QueueLimit)
{
- RtlMoveMemory(GlobalQueueMap,
- LocalQueueMap,
+ RtlMoveMemory(GlobalQueueMap,
+ LocalQueueMap,
RssV2NQEnforcerGetQueueMapSize(GlobalQueueMap->MaxProcessors));
status = NDIS_STATUS_SUCCESS;
diff --git a/network/ndis/netvmini/6x/rssv2lib.h b/network/ndis/netvmini/6x/rssv2lib.h
index 619624ec..9a867a57 100644
--- a/network/ndis/netvmini/6x/rssv2lib.h
+++ b/network/ndis/netvmini/6x/rssv2lib.h
@@ -26,7 +26,7 @@ Revision History:
//
#if !defined(NDIS_STATUS_NO_QUEUES)
#define NDIS_STATUS_NO_QUEUES 0xC0230031L
-#endif
+#endif
#ifdef __cplusplus
extern "C"
@@ -98,7 +98,7 @@ RssV2SetCommandRangeStatus (
//
// Queue map for VPort (or for adapter's in NativeRSS mode)
-//
+//
#define BITS_PER_WORD (sizeof(ULONG_PTR) * 8)
#define RSSV2_BITFIELD_OFFSET(_PROC_INDEX_) ((_PROC_INDEX_) / BITS_PER_WORD)
#define RSSV2_BITFIELD_SIZE(_MAX_PROC_) \
@@ -112,7 +112,7 @@ typedef struct _RSSV2_QUEUE_MAP
//
// Members to help enforce "NQ-violation" (per-VPort limit on number of queues)
//
- KSPIN_LOCK SpinLock;
+ KSPIN_LOCK SpinLock;
//
// Maximum number of processors in adapter's RSS table.
@@ -124,7 +124,7 @@ typedef struct _RSSV2_QUEUE_MAP
// Two variable-size fields follow this structure:
//
// - Bitmask of referenced processors
- // - Array with reference counts for each RSS processor
+ // - Array with reference counts for each RSS processor
// (indexed by a local CPU index, which is relative to RSS table).
//
//
@@ -140,12 +140,12 @@ typedef struct _RSSV2_QUEUE_MAP
(PRSSV2_QUEUE_MAP)_alloca(RssV2NQEnforcerGetQueueMapSize(_MAX_PROCS_))
FORCEINLINE
-ULONG
+ULONG
RssV2NQEnforcerGetQueueMapSize (
_In_ ULONG MaxNumberOfProcessorsInRssTable
)
{
- return sizeof(RSSV2_QUEUE_MAP) +
+ return sizeof(RSSV2_QUEUE_MAP) +
RSSV2_BITFIELD_SIZE(MaxNumberOfProcessorsInRssTable) +
RSSV2_REFERENCE_SIZE(MaxNumberOfProcessorsInRssTable);
}
@@ -176,7 +176,7 @@ RssV2NQEnforcerDereference (
VOID
RssV2NQEnforcerUpdate (
_Inout_ PRSSV2_QUEUE_MAP QueueMap,
- _In_ UINT8 OldCpuIndex,
+ _In_ UINT8 OldCpuIndex,
_In_ UINT8 NewCpuIndex
);
diff --git a/network/ndis/netvmini/6x/tcbrcb.c b/network/ndis/netvmini/6x/tcbrcb.c
index 1d2faf50..1cbeb673 100644
--- a/network/ndis/netvmini/6x/tcbrcb.c
+++ b/network/ndis/netvmini/6x/tcbrcb.c
@@ -111,7 +111,7 @@ Return Value:
{
//
// The adapter is no longer in a ready state, so we were not able to take a reference on the
- // receive block. Add the RCB back to the free list and fail this receive.
+ // receive block. Add the RCB back to the free list and fail this receive.
//
NdisInterlockedInsertTailList(
&Adapter->FreeRcbList,
@@ -136,14 +136,14 @@ Return Value:
//
if(Status == NDIS_STATUS_RESOURCES)
{
- ++Adapter->RxResourceErrors;
+ ++Adapter->RxResourceErrors;
}
else if(Status != NDIS_STATUS_INVALID_ADDRESS)
{
++Adapter->RxRuntErrors;
}
//
- // Recover RCB
+ // Recover RCB
//
ReturnRCB(Adapter, Rcb);
Rcb = NULL;
@@ -186,7 +186,7 @@ Return Value:
--*/
{
PUCHAR Data = Rcb->Data;
- ASSERT(Data);
+ ASSERT(Data);
DEBUGP(MP_TRACE, "[%p] ---> ReturnRCB. RCB: %p\n", Adapter, Rcb);
diff --git a/network/ndis/netvmini/6x/tcbrcb.h b/network/ndis/netvmini/6x/tcbrcb.h
index fca8f123..78f8b5ca 100644
--- a/network/ndis/netvmini/6x/tcbrcb.h
+++ b/network/ndis/netvmini/6x/tcbrcb.h
@@ -57,7 +57,7 @@ typedef struct _RCB
LIST_ENTRY RcbLink;
PNET_BUFFER_LIST Nbl;
PVOID Data;
-#if (NDIS_SUPPORT_NDIS620)
+#if (NDIS_SUPPORT_NDIS620)
PVOID LookaheadData;
#endif
} RCB, *PRCB;
diff --git a/network/ndis/netvmini/6x/vmq.c b/network/ndis/netvmini/6x/vmq.c
index d4e8fa7c..942ee009 100644
--- a/network/ndis/netvmini/6x/vmq.c
+++ b/network/ndis/netvmini/6x/vmq.c
@@ -325,7 +325,7 @@ Return Value:
#if (NDIS_SUPPORT_NDIS630)
HwCapabilities.SupportedQueueProperties |= NDIS_RECEIVE_FILTER_DYNAMIC_PROCESSOR_AFFINITY_CHANGE_SUPPORTED;
#endif
-
+
HwCapabilities.SupportedFilterTests = NDIS_RECEIVE_FILTER_TEST_HEADER_FIELD_EQUAL_SUPPORTED;
HwCapabilities.SupportedHeaders = NDIS_RECEIVE_FILTER_MAC_HEADER_SUPPORTED;
HwCapabilities.SupportedMacHeaderFields = NDIS_RECEIVE_FILTER_MAC_HEADER_DEST_ADDR_SUPPORTED | NDIS_RECEIVE_FILTER_MAC_HEADER_VLAN_ID_SUPPORTED;
diff --git a/network/ndis/netvmini/6x/vmq.h b/network/ndis/netvmini/6x/vmq.h
index 5b949e2a..98224c02 100644
--- a/network/ndis/netvmini/6x/vmq.h
+++ b/network/ndis/netvmini/6x/vmq.h
@@ -13,7 +13,7 @@ Module Name:
Abstract:
- This module declares the VMQ related data types, flags, macros, and functions.
+ This module declares the VMQ related data types, flags, macros, and functions.
Revision History:
@@ -24,7 +24,7 @@ Notes:
struct _FRAME;
struct _RCB;
-
+
#if (NDIS_SUPPORT_NDIS620)
@@ -65,8 +65,8 @@ typedef struct _MP_ADAPTER_SHARED_MEMORY
} MP_ADAPTER_SHARED_MEMORY, *PMP_ADAPTER_SHARED_MEMORY;
//
-// The minimum number of shared memory blocks we require. Used when recovering from
-// shared memory allocation failures.
+// The minimum number of shared memory blocks we require. Used when recovering from
+// shared memory allocation failures.
//
#define NIC_MIN_RECV_ENTRY_ALLOCATION_COUNT 32
@@ -75,20 +75,20 @@ typedef struct _MP_ADAPTER_SHARED_MEMORY
// lock.
//
//
-// The queue is initialized, but not yet completed. Receives disabled.
+// The queue is initialized, but not yet completed. Receives disabled.
//
#define fMPAQI_INITIALIZED 0x1
//
-// Completion of the queue has started. Receives disabled.
+// Completion of the queue has started. Receives disabled.
//
#define fMPAQI_COMPLETION_STARTED 0x2
//
-// Queue completed. Receives enabled.
+// Queue completed. Receives enabled.
//
#define fMPAQI_COMPLETION_FINISHED 0x4
//
-// Queue is being freed (pending RefCount). Receives disabled.
-//
+// Queue is being freed (pending RefCount). Receives disabled.
+//
#define fMPAQI_FREEING 0x8
//
// DMA is being performed for queue
@@ -153,7 +153,7 @@ typedef struct DECLSPEC_CACHEALIGN _MP_ADAPTER_QUEUE
//
PUCHAR RcbMemoryBlock;
NDIS_HANDLE RecvNblPoolHandle;
-
+
//
// Shared memory information (MP_ADAPTER_SHARED_MEMORY)
//
@@ -164,12 +164,12 @@ typedef struct DECLSPEC_CACHEALIGN _MP_ADAPTER_QUEUE
LIST_ENTRY LookaheadSharedMemoryList;
LIST_ENTRY PostLookaheadSharedMemoryList;
//
- // MP_ADAPTER_SHARED_MEMORY_BLOCK buffers to hold book-keeping info on subdivided shared memory buffers
+ // MP_ADAPTER_SHARED_MEMORY_BLOCK buffers to hold book-keeping info on subdivided shared memory buffers
//
PUCHAR LookaheadBlocks;
ULONG NumLookaheadBlocks;
- PUCHAR PostLookaheadBlocks;
- ULONG NumPostLookaheadBlocks;
+ PUCHAR PostLookaheadBlocks;
+ ULONG NumPostLookaheadBlocks;
//
// Data passed in through the VMQ Queue configuration related OIDs
@@ -187,7 +187,7 @@ typedef struct DECLSPEC_CACHEALIGN _MP_ADAPTER_QUEUE
typedef struct _MP_ADAPTER_FILTER
{
//
- // Whether the receive filter should be used
+ // Whether the receive filter should be used
//
BOOLEAN Valid;
//
@@ -214,11 +214,11 @@ typedef struct _MP_ADAPTER_FILTER
//
#define fMPVMQD_FILTERING_ENABLED 0x0001
//
-// Lookahead split in VMQ indication is enabled on the adapter.
+// Lookahead split in VMQ indication is enabled on the adapter.
//
#define fMPVMQD_LOOKAHEAD_ENABLED 0x0002
//
-// VLAN filtering in VMQ is enabled on the adapter.
+// VLAN filtering in VMQ is enabled on the adapter.
//
#define fMPVMQD_VLANFILTER_ENABLED 0x0004
@@ -237,7 +237,7 @@ typedef struct _MP_ADAPTER_FILTER
//
// The MP_ADAPTER_VMQ_DATA structure is used to track the global VMQ configuration for an adapter
-//
+//
typedef struct _MP_ADAPTER_VMQ_DATA
{
//
@@ -246,7 +246,7 @@ typedef struct _MP_ADAPTER_VMQ_DATA
ULONG Flags;
//
// Individual Queues. The MP_ADAPTER_QUEUE array is not dynamically allocated to reduce
- // pointer dereferencing during receives, which can affect performance.
+ // pointer dereferencing during receives, which can affect performance.
//
MP_ADAPTER_QUEUE RxQueues[NIC_SUPPORTED_NUM_QUEUES];
//
@@ -263,7 +263,7 @@ VOID
FreeVMQData(
_Inout_ struct _MP_ADAPTER *Adapter);
-NDIS_STATUS
+NDIS_STATUS
ReadRxQueueConfig(
_In_ NDIS_HANDLE ConfigurationHandle,
_Inout_ struct _MP_ADAPTER *Adapter);
@@ -315,7 +315,7 @@ SetRxFilter(
);
NDIS_STATUS
-ClearRxFilter(
+ClearRxFilter(
_Inout_ struct _MP_ADAPTER *Adapter,
_In_ PNDIS_RECEIVE_FILTER_CLEAR_PARAMETERS FilterParams
);
@@ -346,16 +346,16 @@ GetRcbForRxQueue(
_In_ PNDIS_NET_BUFFER_LIST_8021Q_INFO Nbl1QInfo,
_Outptr_result_maybenull_ struct _RCB **Rcb);
-NDIS_STATUS
+NDIS_STATUS
CopyFrameToRxQueueRcb(
_In_ struct _MP_ADAPTER *Adapter,
_In_ struct _FRAME *Frame,
_In_ PNDIS_NET_BUFFER_LIST_8021Q_INFO Nbl1QInfo,
_Inout_ struct _RCB *Rcb,
_Out_ BOOLEAN *Copied);
-
+
VOID
-RecoverRxQueueRcb(
+RecoverRxQueueRcb(
_In_ struct _MP_ADAPTER *Adapter,
_In_ struct _RCB *Rcb);
@@ -369,10 +369,10 @@ AddPendingRcbToRxQueue(
#else
//
-// In order to avoid excessible "#if defined(NDIS620_MINIPORT)" statements scattered
-// through the miniport implementation, NDIS60 miniports define
-// placeholder macros for the VMQ functions which cause the code to always proceed
-// as if VMQ were disabled on the adapter.
+// In order to avoid excessible "#if defined(NDIS620_MINIPORT)" statements scattered
+// through the miniport implementation, NDIS60 miniports define
+// placeholder macros for the VMQ functions which cause the code to always proceed
+// as if VMQ were disabled on the adapter.
//
#define VMQ_ENABLED(_Adapter) FALSE
@@ -380,7 +380,7 @@ AddPendingRcbToRxQueue(
#define VLAN_FILTER_ENABLED(_Adapter) FALSE
#define LOOKAHEAD_SPLIT_REQUIRED(_QueueInfo) FALSE
#define AllocateDefaultRxQueue(Adapter) NDIS_STATUS_NOT_SUPPORTED
-#define AddPendingRcbToRxQueue(Adapter, Rcb)
+#define AddPendingRcbToRxQueue(Adapter, Rcb)
#define GetRxQueueDpc(Adapter, QueueId) NULL
#define AllocateVMQData(Adapter) NDIS_STATUS_SUCCESS
#define FreeVMQData(Adapter)
@@ -388,6 +388,6 @@ AddPendingRcbToRxQueue(
#define InitializeRxQueueMPConfig(Adapter) NDIS_STATUS_SUCCESS
#define CopyFrameToRxQueueRcb(Adapter, Frame, Nbl1QInfo, Rcb, Copied) FALSE
#define GetRcbForRxQueue(Adapter, Frame, Nbl1QInfo, Rcb) NDIS_STATUS_NOT_SUPPORTED
-#define RecoverRxQueueRcb(Adapter, Rcb)
+#define RecoverRxQueueRcb(Adapter, Rcb)
#endif