From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 15F54A00C2; Fri, 24 Apr 2020 13:20:34 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 82B341BF92; Fri, 24 Apr 2020 13:20:33 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 300B31BF75 for ; Fri, 24 Apr 2020 13:20:31 +0200 (CEST) IronPort-SDR: ntQJho18Owd0vul8Snf8f//F0a1M5Z3eFLLCWGFaCt/1DDwNNdkjpw0qj90smRt/ApjcrTk0l5 gRrtbozX34SQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Apr 2020 04:20:31 -0700 IronPort-SDR: WS4Ze4nuoguLbp45E2qD6iiqp4qXuArhmrwVMTxancWCP5AbEgsRwnbXhx9ETENiGXIalu3pCK 9rcn4tgZTN6w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,311,1583222400"; d="scan'208";a="246568002" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by fmsmga007.fm.intel.com with ESMTP; 24 Apr 2020 04:20:30 -0700 Received: from FMSEDG002.ED.cps.intel.com (10.1.192.134) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 24 Apr 2020 04:19:07 -0700 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.177) by edgegateway.intel.com (192.55.55.69) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 24 Apr 2020 04:17:37 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BN9akn8qCRo3+cRjPbH7h77w20sNBIYprjT641GpZiwAkgGk5r0dhZKpyQjUMQzrffaBuvR/SnEPi3Te/oUm7UCR+f0Mz/YbDcjTdbD5i5GUy/ZHMGE3u4HCLVJoih4gonwLgQPZxEhD0c4v1Pzo/8dQaV3rmUG9U6l5lwMloDNZDq5wkLPJIsABX59t355YRwFH3y1A6NZFQa7daYuIv61Z20IfUs8IgGVQiM5ZhwtcnjXUaH40pNJto0cFm/Ajywe+Pd4OxdrBh54hKqT/RHnsI1QwiTL3A7LvI+y/xIjTgWE6hDxBmEtxvfF8lVXu5hY7x8GHjGZLeTXC8SC3vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=n3iTO5wLEh0BrT5rOTvo9kw9HCtcO8hmuaDdvw9/37A=; b=QK4fZBbw5d29isBoMhE+fk7O0ZVz1rcPAz9qeXAvYuofE+jWUc0jHywV0RhqLSdnRFqWwdaY2QfrEIsIIb2Q/G1/h4RkPRV7PUlKd+rlRCDBpXnY99CRooWzJeFyO0IZ05sIY5orz7+yR6/gPPIXQtp7oNfFpYLlcy606N8VJB1IS969JZ9kO7K94ZMIFI+7a8Hj4P6VuxzcLG/c2VG24S9hAl7p9O7PDe30yuzRKCQpghcCP5TtJgzkD9+al0HpkzeXswfJKRMEMdVCmqX4pTV8wtH1JGZQhew5aKjaiGe4PmAJaRXCYFGo69LvIhpy/uJmOEqAtBiPetK2Hj39nQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=n3iTO5wLEh0BrT5rOTvo9kw9HCtcO8hmuaDdvw9/37A=; b=cIHR4IuaNSuMJWo0y7Z56vMduehwd3lvPbF28sPOFt1lKedP5ip6yOpZODOUKIJk7HCPfpSW1NsSwnwidLkw4iun2ZxzabJSPBuGqE4TSJA8Oc/Oa8LQxw0Q+VSbEB7lQbhNg3B2KKr01Y830Xkfcsn/lQmdUt+Yj8OqAdBAtZU= Received: from BYAPR11MB3301.namprd11.prod.outlook.com (2603:10b6:a03:7f::26) by BYAPR11MB3816.namprd11.prod.outlook.com (2603:10b6:a03:f8::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2921.29; Fri, 24 Apr 2020 11:17:06 +0000 Received: from BYAPR11MB3301.namprd11.prod.outlook.com ([fe80::f8cb:58cd:e958:fff4]) by BYAPR11MB3301.namprd11.prod.outlook.com ([fe80::f8cb:58cd:e958:fff4%6]) with mapi id 15.20.2937.020; Fri, 24 Apr 2020 11:17:06 +0000 From: "Ananyev, Konstantin" To: Phil Yang , "dev@dpdk.org" CC: "thomas@monjalon.net" , "jerinj@marvell.com" , "akhil.goyal@nxp.com" , "Iremonger, Bernard" , "Medvedkin, Vladimir" , "Honnappa.Nagarahalli@arm.com" , "gavin.hu@arm.com" , "ruifeng.wang@arm.com" , "nd@arm.com" Thread-Topic: [PATCH v3] ipsec: optimize with c11 atomic for sa outbound sqn update Thread-Index: AQHWGfGTl6n3RyD4Yk2P8vgFnlftbaiIH51A Date: Fri, 24 Apr 2020 11:17:06 +0000 Message-ID: References: <1587662187-28193-1-git-send-email-phil.yang@arm.com> <1587702784-31586-1-git-send-email-phil.yang@arm.com> In-Reply-To: <1587702784-31586-1-git-send-email-phil.yang@arm.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.2.0.6 authentication-results: spf=none (sender IP is ) smtp.mailfrom=konstantin.ananyev@intel.com; x-originating-ip: [192.198.151.170] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 2a073bb8-f458-43cc-cb5c-08d7e84105dd x-ms-traffictypediagnostic: BYAPR11MB3816: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2803; x-forefront-prvs: 03838E948C x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BYAPR11MB3301.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(10019020)(346002)(366004)(39860400002)(376002)(396003)(136003)(76116006)(4744005)(110136005)(71200400001)(5660300002)(316002)(4326008)(86362001)(7696005)(54906003)(6506007)(52536014)(2906002)(186003)(81156014)(55016002)(66476007)(8936002)(9686003)(8676002)(66946007)(66446008)(66556008)(33656002)(15650500001)(64756008)(26005)(478600001); DIR:OUT; SFP:1102; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: +G8Qh0fbiOJgEjTD7fjW3TuQpbAQ79URofvLqlh6onu3/sUpL6NTp4uTUE3rHksRcCbI6jTJznNI1e5nr8nuuhmyy+4V3tuKX8XGivCy8nXUBX9y2JlNeeUQsfO7kftYmCIJU6vO6aLNNS6h1P/XNUhcZvCtPsPMAN521T8eG//fUhQ6c/XJsEJ4+U2Ul9mwt5RB/QdpwE1nHXZItF6+EevhP2R5TNngq8ZOgKb8ekyS9ZL7o7kATNrLIZ1PlPr96qWqW7TIbYX0WIqRZb5NwQ1N46vbbY1JQ48HPlDm51CR7uxv3aiOsLa4/G/vwqWJO9NjDQBxxmf84pRcDznfBHLJqS/a/WXzQzIVoK20IGltvEeCsA+x2Z+Y314DAW7M4EVWTrgQQDgKP0uMIB9c4pmFjumrW0cU2h+Ju0eFPUE595o5ZPOOCEtgyfYM2Vrv x-ms-exchange-antispam-messagedata: LAQikp1y/e+UezyA8R7AlsZaXPW7nQbezrGI5XMJFZoG9bTnSmkF/+TdVOb/v1poPeMsWyCPNAYbKI8HGDBBvOGlDx76HnSN9jVn7QUoxpK1KAsk88k3QyYRRfbsD3gh8fpM0UDwSunODvIS1N+pAQ== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 2a073bb8-f458-43cc-cb5c-08d7e84105dd X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Apr 2020 11:17:06.3895 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: pr3PBeiLJb7ON93iyWLjJAd8aImuC/mMqVSBxOxlkaDI5FIPd037CoTCZx0a01GceJK0B/fw5AtDrqHGLVFTd3qKUIhp9lMIY5463lGYwXw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR11MB3816 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v3] ipsec: optimize with c11 atomic for sa outbound sqn update 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" >=20 > For SA outbound packets, rte_atomic64_add_return is used to generate > SQN atomically. Use c11 atomics with RELAXED ordering for outbound SQN > update instead of rte_atomic ops which enforce unnecessary barriers on > aarch64. >=20 > Signed-off-by: Phil Yang > Reviewed-by: Ruifeng Wang > Reviewed-by: Gavin Hu > --- Acked-by: Konstantin Ananyev > 2.7.4