From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 428F643929; Mon, 22 Jan 2024 14:22:05 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C4361402C9; Mon, 22 Jan 2024 14:22:04 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.9]) by mails.dpdk.org (Postfix) with ESMTP id A9CC84028B; Mon, 22 Jan 2024 14:22:02 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1705929723; x=1737465723; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=ZFpkPv6ORk/nVdyuW3c+uB6qTb+3QmizcZJO9VrVNEI=; b=R4RmMVMzFgrFhL/ad7arQLPPahX4tbQT0hLRgrF0dmxrGACCrhmyDgoQ ATckOqd4sJHwo0pj9vvWfrSxJtjm5/cv5fyM9nGdI1QK+I9ZqY+13q1rv J2ZX0Qe7QUNWrPej69K1WOVFp3Km6pJG8ev/JKYeQhUIL6tTaP1uO7rpC 3ojmsQ372tve9/dZhRSaaclYGmtyz2uVHf6eodwlPk71Vg1olZ115Ybw2 GreP3jgmnJJa3AJfZ0Im+JQD55flpZtl+tZ/QMQfnXcqvXaJ/2pmJoO4s DmyO9KRVNths4nPhSV4oeP5IK7E0TVbLUI9OIi9cXCFzHIVPG25FvgUEz A==; X-IronPort-AV: E=McAfee;i="6600,9927,10960"; a="7954724" X-IronPort-AV: E=Sophos;i="6.05,211,1701158400"; d="scan'208";a="7954724" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmvoesa103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jan 2024 05:22:01 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10960"; a="928991089" X-IronPort-AV: E=Sophos;i="6.05,211,1701158400"; d="scan'208";a="928991089" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by fmsmga001.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 22 Jan 2024 05:22:00 -0800 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Mon, 22 Jan 2024 05:21:59 -0800 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Mon, 22 Jan 2024 05:21:59 -0800 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35 via Frontend Transport; Mon, 22 Jan 2024 05:21:59 -0800 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.168) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Mon, 22 Jan 2024 05:21:58 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Sw6lsya9doJx2YSdL4yarc16EA/KUTp5rr89PP6qa9VH62bS8c2TD3S6OvCukJ/tHpR06BV5XBL3I+WpJEzGI+xbN33KgyNW3XRR+pyHdwmerqnD32rLXh7RhxJDvoEzTtSMC1OrMqZCCO45aW/qJnKIqxIlOWg/yle52MNYDj10m8fhc/Is3r5w5rvS9skeImjhI0LNBWTXnQoWaY7ENqyBTLHCsqpFHkW20eMFacTDcthLVLvccyFI1XbtyBdKp01iRhHdDlGWu9pVhnlnozRV8sjBmhgF7QZyUImwd3CGj/NbSylTioCHHjwxzVJQtAY4WWqCpn5kR/nC9YFReA== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=rH1HAprTCyfQbCqd2sb2l8eE1pgTX8K7BxTkgbIm3QM=; b=hPDeGGzCooFGtqFHs32MYR4sIvHR5+/VMvW/dfgAXCmuzG7G1czyQcCrvPgz9KF4y9DDm+4TYjgmjP9SxE5N3XlNiHHfBD3iruKIgDlLz1Pl/7HOUPkyyaBPrZigZ8gZTV5HKBb6rRlh9JqtTBe1B7WCTtARlDgqYlDc4hCZXfMAWVxbfHiAutx5a7vdTheKs8NKeL0ndLiYYeSOYYj14P5vQFIj1doFKRj2EFKwDp9CeD0ZcIcRNr7Z43MbPqJ6aipr1obcAlJwKNkAGt+bmt1TO/2eJq3PYFupwK+RL0DHIq4zX71C4AJAd+hhXqFKK8elXkWSNpJbCHaDdHWmWw== 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 Received: from SN7PR11MB7639.namprd11.prod.outlook.com (2603:10b6:806:32a::14) by DS0PR11MB7411.namprd11.prod.outlook.com (2603:10b6:8:150::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7202.31; Mon, 22 Jan 2024 13:21:53 +0000 Received: from SN7PR11MB7639.namprd11.prod.outlook.com ([fe80::8a06:eadf:e98b:23ad]) by SN7PR11MB7639.namprd11.prod.outlook.com ([fe80::8a06:eadf:e98b:23ad%2]) with mapi id 15.20.7202.020; Mon, 22 Jan 2024 13:21:53 +0000 From: "Power, Ciara" To: "Nicolau, Radu" , Akhil Goyal CC: "dev@dpdk.org" , "Ku, Ting-Kai" , "stable@dpdk.org" , "vfialko@marvell.com" Subject: RE: [PATCH] examples/ipsec-secgw: fix cryptodev to SA mapping Thread-Topic: [PATCH] examples/ipsec-secgw: fix cryptodev to SA mapping Thread-Index: AQHaLBf+wpYl7Rr9hEGhEJYvOnS0CrDmE5og Date: Mon, 22 Jan 2024 13:21:53 +0000 Message-ID: References: <20231211095349.9895-1-radu.nicolau@intel.com> In-Reply-To: <20231211095349.9895-1-radu.nicolau@intel.com> Accept-Language: en-IE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SN7PR11MB7639:EE_|DS0PR11MB7411:EE_ x-ms-office365-filtering-correlation-id: 893b23d7-e7e7-462c-4579-08dc1b4d1953 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: zoqcC9I/JRY3WqPG3SSNIwcZYbetZtDUlYC6rNvMWd9FgZvmmdqOWZHDoo5fSqJp/zMK7MkB1JsFD8XMGy+/XWM1ceN/KXDNsCku6+1UXx1cqJRhC+imY+oW7TTMWKg204+LjTOKrfJM8sNDcdDZVB4JHVutJUU5kfrMqra++LttJ1B1jOCBCpQMpvJMvyeHO3zXBGKtDRVro/1py59mlLz2KMbzo8BmdHXn8KK/EGyVXu6pCNL1FMzHAmPstEK/J+MaAy09hb9d186g7LJtng9e4J9apyYZK1/PcMWrF4CCHXRT6/9MtHAAGDjWcKGQrJl2t6b8xYwlHp+J+nl9yrwzmHfZT7Bln6QXoCBkhTzMx12oShuW/Fc1yUHo69i71ixCMDi7hjonTVvsbMPKNECB7zYZql+S+e/zm7rwQJaRcYGfux87M1q2Ohi3bAO1ImQeheGrIoVUe6zLkNOavKJbxZ4WWN2vHzQAviRJjQVjwNOVnFaYDn7gsAVTKcDsXqeFAnkZ9Gq6Xztufr0IQGyUQfNIBb/e2qxPQrR/3X/IYYyZU9CTqyXKJTEqyVXlQ6ysNpNMqKlPJQJIwtIfxpnuaOLi1LerbyuMaQBOL0Lp+wEN417GjFeUcql9weH7 x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN7PR11MB7639.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(136003)(396003)(346002)(39860400002)(376002)(366004)(230922051799003)(64100799003)(1800799012)(451199024)(186009)(7696005)(6506007)(9686003)(33656002)(26005)(71200400001)(53546011)(5660300002)(122000001)(52536014)(4326008)(8936002)(41300700001)(8676002)(2906002)(478600001)(66476007)(83380400001)(316002)(54906003)(66946007)(64756008)(66446008)(76116006)(110136005)(66556008)(4744005)(82960400001)(38070700009)(86362001)(38100700002)(55016003); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?DvAUvhNvWhnPLCvp4xXQCHds3c85BC0P8xTPDOcuyaxVOESurHgtwM/UYLvd?= =?us-ascii?Q?+0TDd3YGNfvvdCxr1vzBM1TJ47mOu1/ISD4ol78WwZbWFyFiyoLQQ6MYOI6J?= =?us-ascii?Q?tQxtanexUarDvRVAZMV1F6dMvOnm5R0RY7qqm4kI7qAhLpVi/lnlHkTe7ZVX?= =?us-ascii?Q?BBc8zZk+rjj+S2X0QQytH+Zix1vVlrhOu5Jz8vP9A7mFx96fXmG8h2MaArzZ?= =?us-ascii?Q?ibVOCJ5W4TK6JiK8KD/3pZXcYJs1aIvb2VKMbmyGZkyREftlo0twq928Z/GN?= =?us-ascii?Q?BVPSj+chcNLzKuiV9FeXWhNX/4WGKlIvJyxNqChWBYMF+2/wYMfBAJDheDmU?= =?us-ascii?Q?ImS4LyyBEnnyoyf2aUOBX3gYALU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7ssyic8sbNnxVahiV8WaL1pE46+nralQjIFZLKgJUWO+6cbcLmDSoPUDqM?= =?us-ascii?Q?9r2kV8J/pxGQg/lUxNp5UoJf1H3+8VyiTsMsJ4E0vJ68fx8acpMgsrQwZdyY?= =?us-ascii?Q?ulb2DZLUXqzwg434IVwophlweHNSAF4lVTCYwTvhiDf0FwkzxfpGM/L94hVq?= =?us-ascii?Q?+LKp8vQZZKT7BicWOPfNS0UOtJgwXyqTDSKi8185d1zGIxzyOdLgHy+ZsjjR?= =?us-ascii?Q?1ALs/hf9400ztf7pLuiCplqOITOeV3O86VoMzIgS217U61QKeCVZe7leweVP?= =?us-ascii?Q?fuFaHUD+cz5xNiXx3KGepAUXGc8CvsMCSt/HcLAg?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SN7PR11MB7639.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 893b23d7-e7e7-462c-4579-08dc1b4d1953 X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Jan 2024 13:21:53.0855 (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: sKnjl0WG9y8O8Ow3rxSlZvy2h0j3cWbQULQmhKTyE5a1M8K8JCM6uOE6zSIk/ke03g+sEol9ShURtpR+TN/u8Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR11MB7411 X-OriginatorOrg: intel.com X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Hi Radu, > -----Original Message----- > From: Nicolau, Radu > Sent: Monday, December 11, 2023 9:54 AM > To: Nicolau, Radu ; Akhil Goyal > > Cc: dev@dpdk.org; Power, Ciara ; Ku, Ting-Kai kai.ku@intel.com>; stable@dpdk.org; vfialko@marvell.com > Subject: [PATCH] examples/ipsec-secgw: fix cryptodev to SA mapping >=20 > There are use cases where a SA should be able to use different cryptodevs= on > different lcores, for example there can be cryptodevs with just 1 qp per = VF. > For this purpose this patch relaxes the check in create lookaside session > function. > Also add a check to verify that a CQP is available for the current lcore. >=20 > Fixes: a8ade12123c3 ("examples/ipsec-secgw: create lookaside sessions at > init") > Cc: stable@dpdk.org > Cc: vfialko@marvell.com >=20 > Signed-off-by: Radu Nicolau > --- > examples/ipsec-secgw/ipsec.c | 13 ++++++++----- > 1 file changed, 8 insertions(+), 5 deletions(-) Acked-by: Ciara Power