diff options
author | Sorin Vinturis <svinturis@cloudbasesolutions.com> | 2015-03-26 19:59:37 +0000 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2015-03-26 14:18:51 -0700 |
commit | cc26fc9215f551fafd6aa64dffcd8d111ac5a40c (patch) | |
tree | c9ab127c2e15f7b78ac73e776cf928ed3524f2c2 /datapath-windows/ovsext/Vxlan.c | |
parent | 99075373dab5cdd0a4305e9e7036c9e125579e0a (diff) | |
download | openvswitch-cc26fc9215f551fafd6aa64dffcd8d111ac5a40c.tar.gz |
datapath-windows: Added specific pool tag for vxlan code
All memory allocations within vxlan code have 'XSVO' 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/Vxlan.c')
-rw-r--r-- | datapath-windows/ovsext/Vxlan.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/datapath-windows/ovsext/Vxlan.c b/datapath-windows/ovsext/Vxlan.c index 1ce5af249..8c5718506 100644 --- a/datapath-windows/ovsext/Vxlan.c +++ b/datapath-windows/ovsext/Vxlan.c @@ -59,7 +59,8 @@ OvsInitVxlanTunnel(POVS_VPORT_ENTRY vport, { POVS_VXLAN_VPORT vxlanPort; - vxlanPort = OvsAllocateMemory(sizeof (*vxlanPort)); + vxlanPort = OvsAllocateMemoryWithTag(sizeof (*vxlanPort), + OVS_VXLAN_POOL_TAG); if (vxlanPort == NULL) { return STATUS_INSUFFICIENT_RESOURCES; } @@ -86,7 +87,7 @@ OvsCleanupVxlanTunnel(POVS_VPORT_ENTRY vport) return; } - OvsFreeMemory(vport->priv); + OvsFreeMemoryWithTag(vport->priv, OVS_VXLAN_POOL_TAG); vport->priv = NULL; } |