From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Doherty, Declan" Subject: Re: [PATCH v3 7/9] ipsec: rework SA replay window/SQN for MT environment Date: Thu, 13 Dec 2018 12:14:16 +0000 Message-ID: <73ffe74f-8df8-db2f-cd90-f5501127dad2@intel.com> References: <1543596366-22617-2-git-send-email-konstantin.ananyev@intel.com> <1544110714-4514-8-git-send-email-konstantin.ananyev@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit To: Konstantin Ananyev , dev@dpdk.org 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) In-Reply-To: <1544110714-4514-8-git-send-email-konstantin.ananyev@intel.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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