summaryrefslogtreecommitdiff
path: root/datapath-windows/ovsext/BufferMgmt.c
diff options
context:
space:
mode:
authorSorin Vinturis <svinturis@cloudbasesolutions.com>2015-03-26 19:59:36 +0000
committerBen Pfaff <blp@nicira.com>2015-03-26 14:18:44 -0700
commit48b3e646d13f96d7d4d256966ae56910a557ed19 (patch)
tree0e7f5db3069327b2b77724045ec9957cb880aa65 /datapath-windows/ovsext/BufferMgmt.c
parent5bf619159c26044b5643a50ec83aaa7de5b52aef (diff)
downloadopenvswitch-48b3e646d13f96d7d4d256966ae56910a557ed19.tar.gz
datapath-windows: Added specific pool tag for buffermgmt code
All MDL memory allocations within buffermgmt code have 'BSVO' pool tag. Signed-off-by: Sorin Vinturis <svinturis@cloudbasesolutions.com> Reported-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com> Reported-at: https://github.com/openvswitch/ovs-issues/issues/56 Acked-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com> Acked-by: Eitan Eliahu <eliahue@vmware.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'datapath-windows/ovsext/BufferMgmt.c')
-rw-r--r--datapath-windows/ovsext/BufferMgmt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/datapath-windows/ovsext/BufferMgmt.c b/datapath-windows/ovsext/BufferMgmt.c
index e0377c13a..572b2988a 100644
--- a/datapath-windows/ovsext/BufferMgmt.c
+++ b/datapath-windows/ovsext/BufferMgmt.c
@@ -433,14 +433,14 @@ OvsAllocateMDLAndData(NDIS_HANDLE ndisHandle,
PMDL mdl;
PVOID data;
- data = OvsAllocateMemory(dataSize);
+ data = OvsAllocateMemoryWithTag(dataSize, OVS_MDL_POOL_TAG);
if (data == NULL) {
return NULL;
}
mdl = NdisAllocateMdl(ndisHandle, data, dataSize);
if (mdl == NULL) {
- OvsFreeMemory(data);
+ OvsFreeMemoryWithTag(data, OVS_MDL_POOL_TAG);
}
return mdl;
@@ -454,7 +454,7 @@ OvsFreeMDLAndData(PMDL mdl)
data = MmGetMdlVirtualAddress(mdl);
NdisFreeMdl(mdl);
- OvsFreeMemory(data);
+ OvsFreeMemoryWithTag(data, OVS_MDL_POOL_TAG);
}