summaryrefslogtreecommitdiff
path: root/network/netadaptercx/netvadapterlibrary/code/rxqueue.h
diff options
context:
space:
mode:
Diffstat (limited to 'network/netadaptercx/netvadapterlibrary/code/rxqueue.h')
-rw-r--r--network/netadaptercx/netvadapterlibrary/code/rxqueue.h57
1 files changed, 57 insertions, 0 deletions
diff --git a/network/netadaptercx/netvadapterlibrary/code/rxqueue.h b/network/netadaptercx/netvadapterlibrary/code/rxqueue.h
new file mode 100644
index 00000000..cf208def
--- /dev/null
+++ b/network/netadaptercx/netvadapterlibrary/code/rxqueue.h
@@ -0,0 +1,57 @@
+// Copyright (c) Microsoft Corporation. All rights reserved
+#pragma once
+#include "queue.h"
+
+class NetvRxQueue final
+ : public NetvQueue
+{
+
+public:
+
+ NetvRxQueue(
+ NETPACKETQUEUE Handle,
+ NetvAdapter & Adapter
+ );
+
+ void
+ Destroy(
+ void
+ );
+
+ void
+ Start(
+ void
+ );
+
+ void
+ Stop(
+ void
+ );
+
+ void
+ Advance(
+ void
+ );
+
+ void
+ Cancel(
+ void
+ );
+
+ void
+ SetNotify(
+ bool Enable
+ );
+
+ ENLP_QUEUE * EnlQueueHandle;
+
+ NET_EXTENSION VirtualAddressExtension;
+ NET_EXTENSION UdpRscExtension;
+ NET_EXTENSION RxXSumExtension;
+ NET_EXTENSION NetMemoryExtension;
+ NET_EXTENSION NetMemoryReturnContextExtensionIn;
+
+ bool CheckedWakeFrame = false;
+};
+
+WDF_DECLARE_CONTEXT_TYPE_WITH_NAME(NetvRxQueue, NetvRxQueueGetContext);