diff options
author | Alin Serdean <aserdean@cloudbasesolutions.com> | 2017-07-14 04:40:56 +0000 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2017-08-02 11:30:44 -0700 |
commit | b27b4e5f05a6f2e27bd5ef9b0078a5ccc6678b7c (patch) | |
tree | 9baae63d6a9404fb357f000dec683d9d46f46f0a /datapath-windows/ovsext/Util.h | |
parent | c5a12e53f86fedfe389c6ba66666026589006594 (diff) | |
download | openvswitch-b27b4e5f05a6f2e27bd5ef9b0078a5ccc6678b7c.tar.gz |
datapath-windows: Use annotations instead for macros
We can safely use function annotations to instead of defining out own macros.
Nuke implementation of `OVS_VERIFY_IRQL_LE` and OVS_VERIFY_IRQL (unused).
Add function annotations to the functions which were using OVS_VERIFY_IRQL_LE`.
Signed-off-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Shashank Ram <rams@vmware.com>
Diffstat (limited to 'datapath-windows/ovsext/Util.h')
-rw-r--r-- | datapath-windows/ovsext/Util.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/datapath-windows/ovsext/Util.h b/datapath-windows/ovsext/Util.h index 7aa91ec95..f73c71f63 100644 --- a/datapath-windows/ovsext/Util.h +++ b/datapath-windows/ovsext/Util.h @@ -41,9 +41,15 @@ #define OVS_GENEVE_POOL_TAG 'GNVO' #define OVS_IPFRAG_POOL_TAG 'FGVO' +_IRQL_requires_max_(DISPATCH_LEVEL) VOID *OvsAllocateMemory(size_t size); + +_IRQL_requires_max_(DISPATCH_LEVEL) VOID *OvsAllocateMemoryWithTag(size_t size, ULONG tag); + +_IRQL_requires_max_(DISPATCH_LEVEL) VOID *OvsAllocateAlignedMemory(size_t size, UINT16 align); + VOID *OvsAllocateMemoryPerCpu(size_t size, size_t count, ULONG tag); VOID OvsFreeMemory(VOID *ptr); VOID OvsFreeMemoryWithTag(VOID *ptr, ULONG tag); |