From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B06F7C54EE9 for ; Wed, 7 Sep 2022 18:06:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230309AbiIGSGy (ORCPT ); Wed, 7 Sep 2022 14:06:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34568 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230245AbiIGSGh (ORCPT ); Wed, 7 Sep 2022 14:06:37 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3AECFC04FB for ; Wed, 7 Sep 2022 11:06:35 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 6E32961A04 for ; Wed, 7 Sep 2022 18:06:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0A478C433C1; Wed, 7 Sep 2022 18:06:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1662573994; bh=hB73CRXopAZj9uiY38ZrBgCBauoNPk8kK13rr1krClE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=EGyys3G6uTIAvlSxbWWrT6ugdVvMfrNxK2U1s6JDaR3gtC8rV6N4LeMjPwpci7bYK WScjOR53UyC9d198nQhYcoVsoOWb/SiyQPd4l15TgjebQK/lNLgquAAjYnF6aKPZwN 2q06ixDxh2CILEJjRCyDDcNusHhWS4qEyOxr1DQgf9n0f9b77ZfQr3auHGBu6Eagey XvTPXQOmE+fmVjQ6cX2M+V236pAJP2vBjzMJViiavOZ1jRak6QNvwF90CJeJcEeXcC aYa0I8IQ2qxY2GwS7QN1mu4R4Z2KoeSSZj3PPCCh0li0XcNcqcMKCyDk2p+0TzASnA y9ewDTX70LFdA== Date: Wed, 7 Sep 2022 21:06:30 +0300 From: Leon Romanovsky To: Simon Horman Cc: David Miller , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, oss-drivers@corigine.com Subject: Re: [PATCH net-next 3/3] nfp: implement xfrm callbacks and expose ipsec offload feature to upper layer Message-ID: References: <20220907094758.35571-1-simon.horman@corigine.com> <20220907094758.35571-4-simon.horman@corigine.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220907094758.35571-4-simon.horman@corigine.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Wed, Sep 07, 2022 at 11:47:58AM +0200, Simon Horman wrote: > From: Huanhuan Wang > > Xfrm callbacks are implemented to offload SA info into firmware > by mailbox. It supports 16K SA info in total. > > Expose ipsec offload feature to upper layer, this feature will > signal the availability of the offload. > > Based on initial work of Norm Bagley . > > Signed-off-by: Huanhuan Wang > Reviewed-by: Louis Peens > Signed-off-by: Simon Horman > --- > .../net/ethernet/netronome/nfp/crypto/ipsec.c | 552 +++++++++++++++++- > .../ethernet/netronome/nfp/nfp_net_common.c | 6 + > .../net/ethernet/netronome/nfp/nfp_net_ctrl.h | 4 +- > 3 files changed, 558 insertions(+), 4 deletions(-) <...> > + if (x->props.flags & XFRM_STATE_ESN) > + cfg->ctrl_word.ext_seq = 1; > + else > + cfg->ctrl_word.ext_seq = 0; Don't you need to implement xdo_dev_state_advance_esn() too? Thanks