diff mbox

[ovs-dev] datapath-windows: New tag for tunnel filter pool allocations

Message ID 1441098659-9652-1-git-send-email-svinturis@cloudbasesolutions.com
State Accepted
Headers show

Commit Message

Sorin Vinturis Sept. 2, 2015, 1:37 p.m. UTC
All memory allocations within tunnel filter code have 'WSVO' pool tag.

Signed-off-by: Sorin Vinturis <svinturis@cloudbasesolutions.com>
---
 datapath-windows/ovsext/TunnelFilter.c | 4 +++-
 datapath-windows/ovsext/Util.h         | 1 +
 2 files changed, 4 insertions(+), 1 deletion(-)

Comments

Nithin Raju Sept. 2, 2015, 4:11 p.m. UTC | #1
> On Sep 2, 2015, at 6:37 AM, Sorin Vinturis <svinturis@cloudbasesolutions.com> wrote:
> 
> 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>
diff mbox

Patch

diff --git a/datapath-windows/ovsext/TunnelFilter.c b/datapath-windows/ovsext/TunnelFilter.c
index a359cac..8bff27a 100644
--- a/datapath-windows/ovsext/TunnelFilter.c
+++ b/datapath-windows/ovsext/TunnelFilter.c
@@ -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;
diff --git a/datapath-windows/ovsext/Util.h b/datapath-windows/ovsext/Util.h
index e3f9ede..0bbc52b 100644
--- a/datapath-windows/ovsext/Util.h
+++ b/datapath-windows/ovsext/Util.h
@@ -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);