| To: | Kazunori Miyazawa <kazunori@xxxxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH][IPV6] keeping dst refcnt correctly with using xfrm |
| From: | James Morris <jmorris@xxxxxxxxxxxxxxxx> |
| Date: | Mon, 9 Jun 2003 01:47:52 +1000 (EST) |
| Cc: | davem@xxxxxxxxxx, <kuznet@xxxxxxxxxxxxx>, <usagi@xxxxxxxxxxxxxx>, <netdev@xxxxxxxxxxx> |
| In-reply-to: | <20030606144925.29ad2a9f.kazunori@miyazawa.org> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
On Fri, 6 Jun 2003, Kazunori Miyazawa wrote:
> In output functions, dst is changed by xfrm_lookup if there is
> any matching policy. Therefore original dst which is held before
> calling xfrm_lookup will be never released.
> When xfrm_lookup scceeds and dst is changed, original dst should
> be release.
It is released in xfrm_lookup():
*dst_p = dst;
ip_rt_put(rt);
xfrm_pol_put(policy);
return 0;
- James
--
James Morris
<jmorris@xxxxxxxxxxxxxxxx>
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Route cache performance under stress, Florian Weimer |
|---|---|
| Next by Date: | Re: Route cache performance under stress, Pekka Savola |
| Previous by Thread: | Re: [PATCH][IPV6] keeping dst refcnt correctly with using xfrm, David S. Miller |
| Next by Thread: | Re: [PATCH][IPV6] keeping dst refcnt correctly with using xfrm, Kazunori Miyazawa |
| Indexes: | [Date] [Thread] [Top] [All Lists] |