[ovs-dev,v2] datapath-windows: Add corresponding tag for tunnel context allocations
diff mbox

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

Commit Message

Sorin Vinturis Sept. 4, 2015, 7:01 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:45
To: dev@openvswitch.org
Subject: [ovs-dev] [PATCH v2] datapath-windows: Add corresponding tag for tunnel context allocations

Signed-off-by: Sorin Vinturis <svinturis@cloudbasesolutions.com>

Acked-by: Nithin Raju <nithin@vmware.com>

---
 datapath-windows/ovsext/Vport.c | 3 ++-
 1 file changed, 2 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:46 p.m. UTC | #1
Done.

On Fri, Sep 04, 2015 at 07:01:54PM +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:45
> To: dev@openvswitch.org
> Subject: [ovs-dev] [PATCH v2] datapath-windows: Add corresponding tag for tunnel context allocations
> 
> Signed-off-by: Sorin Vinturis <svinturis@cloudbasesolutions.com>
> Acked-by: Nithin Raju <nithin@vmware.com>
> ---
>  datapath-windows/ovsext/Vport.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/datapath-windows/ovsext/Vport.c b/datapath-windows/ovsext/Vport.c index 6b74ec2..cdb434c 100644
> --- a/datapath-windows/ovsext/Vport.c
> +++ b/datapath-windows/ovsext/Vport.c
> @@ -1267,7 +1267,8 @@ OvsRemoveTunnelVport(POVS_USER_PARAMS_CONTEXT usrParamsCtx,
>      POVS_TUNFLT_INIT_CONTEXT tunnelContext = NULL;
>      PIRP irp = NULL;
>  
> -    tunnelContext = OvsAllocateMemory(sizeof(*tunnelContext));
> +    tunnelContext = OvsAllocateMemoryWithTag(sizeof(*tunnelContext),
> +                                             OVS_VPORT_POOL_TAG);
>      if (tunnelContext == NULL) {
>          return STATUS_INSUFFICIENT_RESOURCES;
>      }
> --
> 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/Vport.c b/datapath-windows/ovsext/Vport.c index 6b74ec2..cdb434c 100644
--- a/datapath-windows/ovsext/Vport.c
+++ b/datapath-windows/ovsext/Vport.c
@@ -1267,7 +1267,8 @@  OvsRemoveTunnelVport(POVS_USER_PARAMS_CONTEXT usrParamsCtx,
     POVS_TUNFLT_INIT_CONTEXT tunnelContext = NULL;
     PIRP irp = NULL;
 
-    tunnelContext = OvsAllocateMemory(sizeof(*tunnelContext));
+    tunnelContext = OvsAllocateMemoryWithTag(sizeof(*tunnelContext),
+                                             OVS_VPORT_POOL_TAG);
     if (tunnelContext == NULL) {
         return STATUS_INSUFFICIENT_RESOURCES;
     }