From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id EE9951B511 for ; Thu, 13 Dec 2018 13:14:19 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Dec 2018 04:14:18 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,349,1539673200"; d="scan'208";a="107155195" Received: from dwdohert-mobl.ger.corp.intel.com (HELO [163.33.176.66]) ([163.33.176.66]) by fmsmga007.fm.intel.com with ESMTP; 13 Dec 2018 04:14:18 -0800 To: Konstantin Ananyev , dev@dpdk.org References: <1543596366-22617-2-git-send-email-konstantin.ananyev@intel.com> <1544110714-4514-8-git-send-email-konstantin.ananyev@intel.com> From: "Doherty, Declan" Message-ID: <73ffe74f-8df8-db2f-cd90-f5501127dad2@intel.com> Date: Thu, 13 Dec 2018 12:14:16 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.3.3 MIME-Version: 1.0 In-Reply-To: <1544110714-4514-8-git-send-email-konstantin.ananyev@intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v3 7/9] ipsec: rework SA replay window/SQN for MT environment X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Dec 2018 12:14:20 -0000 On 06/12/2018 3:38 PM, Konstantin Ananyev wrote: > With these changes functions: > - rte_ipsec_pkt_crypto_prepare > - rte_ipsec_pkt_process > can be safely used in MT environment, as long as the user can guarantee > that they obey multiple readers/single writer model for SQN+replay_window > operations. > To be more specific: > for outbound SA there are no restrictions. > for inbound SA the caller has to guarantee that at any given moment > only one thread is executing rte_ipsec_pkt_process() for given SA. > Note that it is caller responsibility to maintain correct order > of packets to be processed. > > Signed-off-by: Konstantin Ananyev > --- ... > Acked-by: Declan Doherty