netdev
[Top] [All Lists]

Re: [PATCH][IPV6] keeping dst refcnt correctly with using xfrm

To: kazunori@xxxxxxxxxxxx
Subject: Re: [PATCH][IPV6] keeping dst refcnt correctly with using xfrm
From: "David S. Miller" <davem@xxxxxxxxxx>
Date: Thu, 05 Jun 2003 22:55:47 -0700 (PDT)
Cc: kuznet@xxxxxxxxxxxxx, usagi@xxxxxxxxxxxxxx, netdev@xxxxxxxxxxx
In-reply-to: <20030606144925.29ad2a9f.kazunori@xxxxxxxxxxxx>
References: <20030606144925.29ad2a9f.kazunori@xxxxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
   From: Kazunori Miyazawa <kazunori@xxxxxxxxxxxx>
   Date: Fri, 6 Jun 2003 14:49:25 +0900

   In dst_pop refernce cound of dsts except for last are incremented in
   dst_clone and decremented in next call dst_pop but last dst refernce
   count will be never decremented.
   All dst are held by xfrm_policy and there is no need to touch the
   refernce count here.
   
Ok, so the idea is to hold onto top-level parent DST entry the entire
time, and this prevents the DST and all it's children from being
destroyed.  Is this correct?

Let me study this a little bit, I want to make sure it is correct.

<Prev in Thread] Current Thread [Next in Thread>