diff options
author | Sorin Vinturis <svinturis@cloudbasesolutions.com> | 2015-09-02 16:44:24 +0000 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2015-09-04 16:44:28 -0700 |
commit | 3229b94ee3ff0511563d8eaf3a5b322eb4c3c95c (patch) | |
tree | a17b7a209a5964289169040c45de5caacb852ef0 | |
parent | d14275e1a21c2ced3de391fd8aa3be4b99daec04 (diff) | |
download | openvswitch-3229b94ee3ff0511563d8eaf3a5b322eb4c3c95c.tar.gz |
datapath-windows: New tag for tunnel filter pool allocations
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>
-rw-r--r-- | datapath-windows/ovsext/TunnelFilter.c | 4 | ||||
-rw-r--r-- | datapath-windows/ovsext/Util.h | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/datapath-windows/ovsext/TunnelFilter.c b/datapath-windows/ovsext/TunnelFilter.c index a359cac2b..8bff27a21 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 e3f9ede92..0bbc52b31 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); |