[ovs-dev,v2] datapath-windows: New tag for tunnel filter pool allocations
diff mbox

Message ID A72F304F698C474CA65707A3507A0C954477B4@CBSEX1.cloudbase.local
State Accepted
Headers show

Commit Message

Sorin Vinturis Sept. 4, 2015, 7:02 p.m. UTC
Hi Ben,

Could you please apply this patch to master and branch-2.4?

Thanks,
Sorin

-----Original Message-----
From: dev [mailto:dev-bounces@openvswitch.org] On Behalf Of Sorin Vinturis

Sent: Wednesday, 2 September, 2015 19:44
To: dev@openvswitch.org
Subject: [ovs-dev] [PATCH v2] 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>

---
 datapath-windows/ovsext/TunnelFilter.c | 4 +++-
 datapath-windows/ovsext/Util.h         | 1 +
 2 files changed, 4 insertions(+), 1 deletion(-)

--
1.9.0.msysgit.0
_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Comments

Ben Pfaff Sept. 4, 2015, 11:45 p.m. UTC | #1
Done.

On Fri, Sep 04, 2015 at 07:02:15PM +0000, Sorin Vinturis wrote:
> Hi Ben,
> 
> Could you please apply this patch to master and branch-2.4?
> 
> Thanks,
> Sorin
> 
> -----Original Message-----
> From: dev [mailto:dev-bounces@openvswitch.org] On Behalf Of Sorin Vinturis
> Sent: Wednesday, 2 September, 2015 19:44
> To: dev@openvswitch.org
> Subject: [ovs-dev] [PATCH v2] 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>
> ---
>  datapath-windows/ovsext/TunnelFilter.c | 4 +++-
>  datapath-windows/ovsext/Util.h         | 1 +
>  2 files changed, 4 insertions(+), 1 deletion(-)
> 
> 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);
> --
> 1.9.0.msysgit.0
> _______________________________________________
> dev mailing list
> dev@openvswitch.org
> http://openvswitch.org/mailman/listinfo/dev

Patch
diff mbox

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);