[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20120618110523.GA29295@secunet.com>
Date: Mon, 18 Jun 2012 13:05:23 +0200
From: Steffen Klassert <steffen.klassert@...unet.com>
To: "fan.du" <fan.du@...driver.com>
Cc: davem@...emloft.net, herbert@...dor.hengli.com.au,
netdev@...r.kernel.org, fdu@...driver.com
Subject: Re: [PATCH] [XFRM] Fix unexpected SA hard expiration after
changing date
On Mon, Jun 18, 2012 at 04:24:16PM +0800, fan.du wrote:
> After SA is setup, one timer is armed to detect soft/hard expiration,
> however the timer handler uses xtime to do the math. This makes hard
> expiration occurs first before soft expiration after setting new date
> with big interval. As a result new child SA is deleted before rekeying
> the new one.
>
> Signed-off-by: fan.du <fan.du@...driver.com>
> ---
> include/net/xfrm.h | 2 ++
> net/xfrm/xfrm_state.c | 22 ++++++++++++++++++----
> 2 files changed, 20 insertions(+), 4 deletions(-)
>
> diff --git a/include/net/xfrm.h b/include/net/xfrm.h
> index 2933d74..1734acc 100644
> --- a/include/net/xfrm.h
> +++ b/include/net/xfrm.h
> @@ -214,6 +214,8 @@ struct xfrm_state
> /* Private data of this transformer, format is opaque,
> * interpreted by xfrm_type methods. */
> void *data;
> + u32 flags;
We already have the xflags field, it holds exactly one flag
at the moment. So I think we don't need yet another u32 that
holds one flag too.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists