datapath-windows: New tag for tunnel filter pool allocations
authorSorin Vinturis <svinturis@cloudbasesolutions.com>
Wed, 2 Sep 2015 16:44:24 +0000 (16:44 +0000)
committerBen Pfaff <blp@nicira.com>
Fri, 4 Sep 2015 23:44:28 +0000 (16:44 -0700)
All memory allocations within tunnel filter code have 'WSVO' pool tag.

Signed-off-by: Sorin Vinturis <svinturis@cloudbasesolutions.com>
Acked-by: Nithin Raju <nithin@vmware.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
datapath-windows/ovsext/TunnelFilter.c
datapath-windows/ovsext/Util.h

index a359cac..8bff27a 100644 (file)
@@ -1446,7 +1446,9 @@ OvsTunnelFilterQueueRequest(PIRP irp,
             break;
         }
 
-        request = (POVS_TUNFLT_REQUEST) OvsAllocateMemory(sizeof(*request));
+        request = (POVS_TUNFLT_REQUEST)
+            OvsAllocateMemoryWithTag(sizeof(*request),
+                                     OVS_TUNFLT_POOL_TAG);
         if (NULL == request) {
             OVS_LOG_ERROR("Failed to allocate list item.");
             status = STATUS_INSUFFICIENT_RESOURCES;
index e3f9ede..0bbc52b 100644 (file)
@@ -34,6 +34,7 @@
 #define OVS_USER_POOL_TAG               'USVO'
 #define OVS_VPORT_POOL_TAG              'PSVO'
 #define OVS_STT_POOL_TAG                'RSVO'
+#define OVS_TUNFLT_POOL_TAG             'WSVO'
 
 VOID *OvsAllocateMemory(size_t size);
 VOID *OvsAllocateMemoryWithTag(size_t size, ULONG tag);