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 0912E4018E; Mon, 22 Jan 2024 14:52:13 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A4AF2402C3; Mon, 22 Jan 2024 14:52:11 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) by mails.dpdk.org (Postfix) with ESMTP id 0C7F3402BC; Mon, 22 Jan 2024 14:52:08 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1705931530; x=1737467530; h=from:to:cc:subject:date:message-id:references: in-reply-to:mime-version; bh=HOhPLyWoaqf2aj/DkK7uV41w+pcQp5lWWJre4WtEr+I=; b=Z+8KDBRKwbZ0uITGAKQGnV2DeQ15sPvvvE0uCNDaupHc/JzqUI2xRjTg yrvHImXIbLtkr5t40FAusHY89gRGPD5zKrKGgaYzZ34O4pcSvbiElwwCf SqRw9GGz0YNxajtDxitIuvkczbTKH99kwYi5Yjfpn1l3wyCRt9GoNkXIG nKDE1PYretBXUOC/5/4FUVRovvY4B9nZOjKHPvbbto5RnKJvoMRy2XDrz tu7yhkTIATf9QVG/yG2LcyeD+azA0hLSEtR9Z6IV30FB++V1N1L9UoXGC 0CXeqS9738sBov+sZwEG9NO4Zu4lgQtGfFProHIBqjEnXGzDIOlf4K3HV Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10960"; a="14723368" X-IronPort-AV: E=Sophos;i="6.05,211,1701158400"; d="scan'208,217";a="14723368" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jan 2024 05:52:07 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10960"; a="904855852" X-IronPort-AV: E=Sophos;i="6.05,211,1701158400"; d="scan'208,217";a="904855852" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by fmsmga002.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 22 Jan 2024 05:52:06 -0800 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX603.amr.corp.intel.com (10.22.229.16) 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:52:05 -0800 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) 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; Mon, 22 Jan 2024 05:52:05 -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:52:05 -0800 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.100) 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:52:04 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Y79gt5HSY0v41pUuOCgx/ZRSsZWcUumNXMU9XixSdfIfUjJrAGl4/RcFb/UNGoe1AoPAUog3i5FkLBTuPxvEimduPHFBDZ5jFvDbiBMVpNAOuZ5lEKxEUKMhm05aUB3P58zfb0cjm+lFDvkWupX4i7t7murPvb+9ZQlTmabegxp7ho+njoycqLkIXKn7SZSF22bjIP7t2XxOeVPqBy21C6BLh6ScbE5xMMwHUxdylAlPcNj7vPy8olqUs2K2uFl0hfApPKPdcsH25oTFUZYSIbe5kRfvYJNk3nMGz5UlypQbYL83DlFAOptZkSVkVhUfNPx/R/HI2JbIyPh/a4KATA== 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=HOhPLyWoaqf2aj/DkK7uV41w+pcQp5lWWJre4WtEr+I=; b=b2UKamuUafYo5iT9btO1gH7HbDHws+ilpuWqNcjwR+tc9jTJns1L+skk0RNlVAaeXIaVo/NnNJZsGK1gjvSy22J0sD0zofrVWwiGWVk99DJj9xR0ganKAMmAJut8zZN5G4/6dDNX/vHpjyhTnxWq2waIyHk07qZCvxuDM+6hFMnsQ31KsYfEY/TmbcTb5rWwPnB/mejS0KRqAIyTHdfvU3WueA0heZ/5V6JWvlPxjL+kyF+jrAAhXgLIr+/zbmEHvwqSdhbK3D8q/fGneXf7xjrxLMD11U0pci9wz4C4XhxPE3GM7RApX102xi1z6Nc9LuoOSbvvLGaOqNR/Ue5ATw== 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 DS0PR11MB7458.namprd11.prod.outlook.com (2603:10b6:8:145::13) by CY5PR11MB6439.namprd11.prod.outlook.com (2603:10b6:930:34::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7202.34; Mon, 22 Jan 2024 13:52:03 +0000 Received: from DS0PR11MB7458.namprd11.prod.outlook.com ([fe80::2596:dab3:c941:ffba]) by DS0PR11MB7458.namprd11.prod.outlook.com ([fe80::2596:dab3:c941:ffba%6]) with mapi id 15.20.7202.031; Mon, 22 Jan 2024 13:52:03 +0000 From: "Ji, Kai" To: "Nicolau, Radu" , Akhil Goyal CC: "dev@dpdk.org" , "Power, Ciara" , "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: AQHaLBgVLziInaV1OEeNC++VuuPwp7DmG87/ Date: Mon, 22 Jan 2024 13:52:03 +0000 Message-ID: References: <20231211095349.9895-1-radu.nicolau@intel.com> In-Reply-To: <20231211095349.9895-1-radu.nicolau@intel.com> Accept-Language: en-GB, en-US, en-IE Content-Language: en-GB X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: 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: DS0PR11MB7458:EE_|CY5PR11MB6439:EE_ x-ms-office365-filtering-correlation-id: e86c3b5d-ffe5-4868-9634-08dc1b51502a x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: PePjPjA83z/d2Ir/Y0ADFDHhxzAS2XywRwgJbSG8vUb8ZH0T69O5CHkswXo2EB1Munxzit623HpDHnNiYGyL4mI2MdxuPSUoLlqDST26dGnvLAxGi224kw0nNrj8wCJTGmI7ZFKtvc+tfPS1LpaRhOswzpM4aDR+cQTPKDdgB9aHQuMElnXfSliZ8Orq09ML7fbS3RLcUx6r4ANrD34KgkC6PqRvRqGD5NdXMMLoUq/e9+l+F/LxPnledsgxqk18L/ozu/WU1hx3elrwJiDUE9aDi+oZcsLDeVwkl71BEUhQf5EkIkGAl0uBBYp0aYteB1NiKl8lH92rkQ/q7GI3kuCNvX7GJlu5VubVUTCzoCYzW75qG7EcAWTw2nnGJDh0GQP5VMVBEJM98IxSZo4ecrLxAp8RtgBaVhUVGxvMg5ij1JJrwiHLqgCwyCr+/MEK30ZcgaV3MQArFQVVxdRjuj/BOiwE7Y1IOjnfTlAPQnJ9BvA7kfi1nBewzal1CgB9jozSeJDI2qIX43rUS+qhg0/YQVzI52vSpr0bqKJ5ukUd/PUUDhxNf0g26UbG9w8TIAg12p6s4Fr+DHjdJRXjaTgBFzDAEPo6K41hyh/PV2XjXadj2Jxig6m3z04T+QmI x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DS0PR11MB7458.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(136003)(366004)(39860400002)(396003)(376002)(346002)(230922051799003)(64100799003)(1800799012)(451199024)(186009)(19627405001)(55016003)(38070700009)(53546011)(4326008)(6506007)(8936002)(83380400001)(8676002)(5660300002)(71200400001)(316002)(91956017)(110136005)(64756008)(9686003)(7696005)(66446008)(66476007)(66556008)(66946007)(54906003)(76116006)(478600001)(26005)(52536014)(122000001)(38100700002)(2906002)(82960400001)(4744005)(86362001)(41300700001)(33656002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?40UVzuHhG85Z8AHdrC6n9VFTadA1CLpQyQlDVEJ6E0rmybR2G3/xJM4wRP?= =?iso-8859-1?Q?hhevo/3AeVER26eZR13geTFFl6EGHJS24M4qAzHevXo30yRIQKMw2zznib?= =?iso-8859-1?Q?yLBIK+m8ba5NauEQXVhzB/t0rfclApHT4VvFKT//nwH6upSnQHL6831e2q?= =?iso-8859-1?Q?l0+ZTZWGTTCDlAF7lSqOp/UCq8BQDCsZATkYTk/hb1+1p6KSEL0SgwLc3/?= =?iso-8859-1?Q?YUn+YGy7NNJ9jxZhdpRRE8UVy8V6OTZX3URZfHkCCFnOJ2tKbavZ2N4tAO?= =?iso-8859-1?Q?u/o/FuQgtvQRxTbF3myg8IgyrZNdUgUeunn6ElBlLr1mZ707YvJEBikpGu?= =?iso-8859-1?Q?+hLUMNpf8XayRCqMEa5RBxtfyleD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AsXiVT5/QgRjTX3tuJnOyob9hMMiOPbflBodyGGNI8PGdGrtHX6MH?= =?iso-8859-1?Q?2Ykh1KCd1sa0EXeVl64FPAWcstf/uvt5/bAbOBVBvDRfv6T5OaZm0Lh4ub?= =?iso-8859-1?Q?B0wl89g1X8esTHshBwzgqXSR5S2XrFA2tNU9t5qQsKKwFhQ5NMxvQFITdB?= =?iso-8859-1?Q?GgWftdW5LKaH7267VI8uUvWCp48gQmjNWyluv4hZWmC4V5XwT8jYytRiAX?= =?iso-8859-1?Q?sL4KAvNWniw/T3GGbqfNNZ3aUAJYQ+4QQa8kR+VCifDmDSk8iwd35st75T?= =?iso-8859-1?Q?e9ufc8ccBEwUhoiPpMDAKwgfgYDlqkErZcwYCkUOEPl4437MteftEPmTaT?= =?iso-8859-1?Q?Abo5VPbzS87wQ=3D?= Content-Type: multipart/alternative; boundary="_000_DS0PR11MB74588D81A30A70B839BBAB3E81752DS0PR11MB7458namp_" MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DS0PR11MB7458.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: e86c3b5d-ffe5-4868-9634-08dc1b51502a X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Jan 2024 13:52:03.0612 (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: yplaC1I/oE00pMVq89fgeE4QVpQ6lYHVYQ6a7JAYeb9SLoL91pjpZ6CHFraavFZQVokPBdRQ361IC0+cqkQPaw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY5PR11MB6439 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 --_000_DS0PR11MB74588D81A30A70B839BBAB3E81752DS0PR11MB7458namp_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Acked-by: Kai Ji ________________________________ From: Radu Nicolau Sent: 11 December 2023 09:53 To: Nicolau, Radu ; Akhil Goyal Cc: dev@dpdk.org ; Power, Ciara ; Ku, = Ting-Kai ; stable@dpdk.org ; vfialk= o@marvell.com Subject: [PATCH] examples/ipsec-secgw: fix cryptodev to SA mapping There are use cases where a SA should be able to use different cryptodevs o= n 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 f= unction. Also add a check to verify that a CQP is available for the current lcore. Fixes: a8ade12123c3 ("examples/ipsec-secgw: create lookaside sessions at in= it") Cc: stable@dpdk.org Cc: vfialko@marvell.com Signed-off-by: Radu Nicolau --- -- 2.25.1 --_000_DS0PR11MB74588D81A30A70B839BBAB3E81752DS0PR11MB7458namp_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Acked-by: Kai Ji <kai.ji@intel.com>



From: Radu N= icolau <radu.nicolau@intel.com>
Sent: 11 December 2023 09:53
To: Nicolau, Radu <radu.nicolau@intel.com>; Akhil Goyal &= lt;gakhil@marvell.com>
Cc: dev@dpdk.org <dev@dpdk.org>; Power, Ciara <ciara.p= ower@intel.com>; Ku, Ting-Kai <ting-kai.ku@intel.com>; stable@dpdk= .org <stable@dpdk.org>; vfialko@marvell.com <vfialko@marvell.com&g= t;
Subject: [PATCH] examples/ipsec-secgw: fix cryptodev to SA mapp= ing
 
There are us= e 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 f= unction.
Also add a check to verify that a CQP is available for the current lcore.
Fixes: a8ade12123c3 ("examples/ipsec-secgw: create lookaside sessions = at init")
Cc: stable@dpdk.org
Cc: vfialko@marvell.com

Signed-off-by: Radu Nicolau <radu.nicolau@intel.com>
---
 
--
2.25.1

--_000_DS0PR11MB74588D81A30A70B839BBAB3E81752DS0PR11MB7458namp_--