[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20180829084225.rfckmkdjiju55lca@gauss3.secunet.de>
Date: Wed, 29 Aug 2018 10:42:25 +0200
From: Steffen Klassert <steffen.klassert@...unet.com>
To: Shannon Nelson <shannon.nelson@...cle.com>
CC: <netdev@...r.kernel.org>
Subject: Re: [PATCH ipsec-next] xfrm: allow driver to quietly refuse offload
On Wed, Aug 22, 2018 at 02:38:10PM -0700, Shannon Nelson wrote:
> If the "offload" attribute is used to create an IPsec SA
> and the .xdo_dev_state_add() fails, the SA creation fails.
> However, if the "offload" attribute is used on a device that
> doesn't offer it, the attribute is quietly ignored and the SA
> is created without an offload.
>
> Along the same line of that second case, it would be good to
> have a way for the device to refuse to offload an SA without
> failing the whole SA creation. This patch adds that feature
> by allowing the driver to return -EOPNOTSUPP as a signal that
> the SA may be fine, it just can't be offloaded.
>
> This allows the user a little more flexibility in requesting
> offloads and not needing to know every detail at all times about
> each specific NIC when trying to create SAs.
>
> Signed-off-by: Shannon Nelson <shannon.nelson@...cle.com>
Applied to ipsec-next, thanks Shannon!
Powered by blists - more mailing lists