[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ZcnGYKa1CvsnWA78@gauss3.secunet.de>
Date: Mon, 12 Feb 2024 08:18:56 +0100
From: Steffen Klassert <steffen.klassert@...unet.com>
To: Eyal Birger <eyal.birger@...il.com>
CC: <davem@...emloft.net>, <dsahern@...nel.org>, <edumazet@...gle.com>,
<kuba@...nel.org>, <pabeni@...hat.com>, <herbert@...dor.apana.org.au>,
<pablo@...filter.org>, <paul.wouters@...en.io>, <nharold@...gle.com>,
<mcr@...delman.ca>, <devel@...ux-ipsec.org>, <netdev@...r.kernel.org>
Subject: Re: [PATCH ipsec-next,v3] xfrm: support sending NAT keepalives in
ESP in UDP states
On Sat, Jan 27, 2024 at 09:32:57PM -0800, Eyal Birger wrote:
> Add the ability to send out RFC-3948 NAT keepalives from the xfrm stack.
>
> To use, Userspace sets an XFRM_NAT_KEEPALIVE_INTERVAL integer property when
> creating XFRM outbound states which denotes the number of seconds between
> keepalive messages.
>
> Keepalive messages are sent from a per net delayed work which iterates over
> the xfrm states. The logic is guarded by the xfrm state spinlock due to the
> xfrm state walk iterator.
>
> Possible future enhancements:
>
> - Adding counters to keep track of sent keepalives.
> - deduplicate NAT keepalives between states sharing the same nat keepalive
> parameters.
> - provisioning hardware offloads for devices capable of implementing this.
> - revise xfrm state list to use an rcu list in order to avoid running this
> under spinlock.
>
> Suggested-by: Paul Wouters <paul.wouters@...en.io>
> Signed-off-by: Eyal Birger <eyal.birger@...il.com>
We agreed to wait for antother test from the libreswan team.
So I've postponed the merge until we have this 'Tested-by'
tag.
Powered by blists - more mailing lists