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 6F59743C06 for ; Tue, 27 Feb 2024 14:50:12 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5DC8A4027D; Tue, 27 Feb 2024 14:50:12 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 8E10740151; Tue, 27 Feb 2024 14:50:11 +0100 (CET) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 41R7nh5d029361; Tue, 27 Feb 2024 05:50:10 -0800 Received: from nam10-dm6-obe.outbound.protection.outlook.com (mail-dm6nam10lp2101.outbound.protection.outlook.com [104.47.58.101]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3whbpe0vv7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 27 Feb 2024 05:50:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cbrO+mkRdNWicEPG+k/xWdo9tLxYeouK9GvNrJVIq9B00lsqeMzFQAMGani5jeHZzOmQfDKTRsYwxbIiCcakBOxOTKFuh1hCu82JP0m1ZiRAWDzA+uPtEemJdUtmuzSsGJBAzpc2CHylbwYRPofguvG51qSF6V6xrJmO9/uTEaxTUAGZfce7JDeiloCdecn2V5D8KaUusZtt4FTIc2AhhLxSy5h2v05SuBCYmiOt0QDchOftZ+yl7lwg5MQcU7+oNcn0dIwyHZRshYR0+kdQfAN0ea1f1pPD6sTE+EdYjDjYB6rRzOYp0aT9pnIb5FLAiHZmsstEWXDhStjmNlNSjg== 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=uoaPCFWnAYQnsZgKY7qgmXzLVH7aBPh5WaI1Xa0u9Dg=; b=nDI56nFDpdQVjTtak4zptdcNey1Ckf+bhvkFyoUf6vz2bNfUfm2zhOAjh0KdIGbHNa23sgU+es9SmZHGdYQBI/mcUTEfaqxCw8FfARopz+ZTrw+TLzzeA+eyHUwR+PuveY74YSRUvaQwHsyQpKowEm3jjxnBvTcL9G7V7LamR5TzkVoqMAUSfuRIvdH64x/FXcADeCWU0ScTGN4ppD75TPcrOx5srFC3eGyyIpGfWBYJ9qYp514fv9YD1TCVlTX5y8Cf0PeBzwv5OcUGNAa7eNZLNAB3KxUxGlB4rcPyUowhmwlA9mQ/F1PWUbKBaTv9aotPmevXKR8e4meGMILa8g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=uoaPCFWnAYQnsZgKY7qgmXzLVH7aBPh5WaI1Xa0u9Dg=; b=aZ+v3P6PJ9dRD5ZDbz0rZTrKqOU4CiODIvXWWW/enssToD/WONgIVZEAp0vwUc6f3aM5Y+BFLOVOtQIvff9ZptHhD9pokff+Jy3LVD6UKgg/xmacskSpLRlBq6MZ6D3cMcrwvgmqLZ/WsnMngVv6fgx9tTUmGKm/7Gdy3kHrjmI= Received: from PH0PR18MB4672.namprd18.prod.outlook.com (2603:10b6:510:c9::16) by DM8PR18MB4439.namprd18.prod.outlook.com (2603:10b6:8:34::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.34; Tue, 27 Feb 2024 13:50:06 +0000 Received: from PH0PR18MB4672.namprd18.prod.outlook.com ([fe80::3db8:298b:be22:45c7]) by PH0PR18MB4672.namprd18.prod.outlook.com ([fe80::3db8:298b:be22:45c7%6]) with mapi id 15.20.7316.035; Tue, 27 Feb 2024 13:50:06 +0000 From: Anoob Joseph To: Radu Nicolau , "dev@dpdk.org" CC: "stable@dpdk.org" , Volodymyr Fialko , Ting-Kai Ku , Ciara Power , Kai Ji , Akhil Goyal Subject: RE: [EXT] [PATCH v4] examples/ipsec-secgw: fix cryptodev to SA mapping Thread-Topic: [EXT] [PATCH v4] examples/ipsec-secgw: fix cryptodev to SA mapping Thread-Index: AQHaaYDqM/zQGQwHhUeCFzwWVUB6bLEeNFCw Date: Tue, 27 Feb 2024 13:50:06 +0000 Message-ID: References: <20231211095349.9895-1-radu.nicolau@intel.com> <20240227132846.415698-1-radu.nicolau@intel.com> In-Reply-To: <20240227132846.415698-1-radu.nicolau@intel.com> Accept-Language: en-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PH0PR18MB4672:EE_|DM8PR18MB4439:EE_ x-ms-office365-filtering-correlation-id: b66431fe-e840-4267-7df2-08dc379b016f x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: U/yn7CwnTNdlNfJ7SThpEbdkMfnPavfYAgZPvxHFMAQDu5HB/Xy45whflKBTcoU6+v+wEYIV3Wnf89B+5DgBTNmDtbDDj49IUECzkIgNqm+sx0PMpcmAqw+Vq6yK5+o3cN9B0L3iOoqXjTlbO3ESnpdfZQYAXce9ENenjO9TjtKMX21TyfzceGWw0Gx72r2d/33TvGxHKJ1gq8x5H/UU9CgDjl2BM7Hqox6ENAh7E/bBMC+wvAyMd+arOG/tl995XIQiY9eQqRcbJ7RbDwWHBjDphW0xdH7WmYpeaRUoY/XBCHRlyZXU4exeenN0pLjpQqjhqCSWpus2y8Wmw0h8WzPHpzw+NdR4K6BRB+ZWC5IkzgSZMcVlAggLwh3INRapSc8kq8bvBdT7Ov1yeDarJX5gegNjNZuGaHbybNCPO0F9K2hMjc+1WJl+C+1FG/qLNJOcP2sU1N8RJf8NWxKtobkfsqtUGQmlHwNxpuYh1W/aTQXmGrS7gieJL84CwrlHbZIUlEG+pGOFZAslmUduhvTqkwmXp2i5CUiGrC9L6bPmEcS3EEk6xJx6bB8rxutNoKDX9rnY5+Qz7S2dFQLzC9jXuwYlC+vK84ZKpLZUS0MDmlgg3NfGX2S4TS9ELbry4VLctNqSuzj38iTnmSX77VpmP+CwmyTn+W8Z4PGIARNDOjbjVkE2dFBwa1LOZ7hZ4/rtHE9UAn9Flts3F5lG1w== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR18MB4672.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(38070700009); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?TxY021pqPI6Pg4r7N4R6OW4mSpWne/mrlDkPNr99VxwhvR1wEkoC1jsApV36?= =?us-ascii?Q?BfkFE+LxBuQvMrhgGwdoIbc/kwd0pglZZdDRGYny846ECw+gKK8yjD28g6Y/?= =?us-ascii?Q?FXxYDcpavZ4mFDmi3MtsS1195lWdJBRKaDGEvgJdipifDFA3j9FbAO4nr2WL?= =?us-ascii?Q?QWfY+uhRJE0ZY/MtvjEpN7pisMwCnvTImFbtxINhFAkt8ZqVKxcpvgD+aN9s?= =?us-ascii?Q?ePdlrE7hTAFbLedH2aDg8H6YkSjs5UJY752NfsA6L/fY/KFAwwA6tFYbR+xB?= =?us-ascii?Q?4k7NzBHMbA8l8JptWPk2wkmiK+Uwa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zju2HDvvnD2N306hOF8j8Mjr5mP37IAjaXwRx5+9sIzN9enMzglTtw?= =?us-ascii?Q?TbzM2vliOrXdPncosmT6ueb4ZASIP2Rhe9cCHmtjNVfRlLMdeZ36QfrkGRlh?= =?us-ascii?Q?cZW3PtM2B/mWJ49jHGc92guJmu0dbQ2zCBeyTpNSUeguPwZ7ELnvJJegmK2y?= =?us-ascii?Q?f9IAKp4j3NiQJlTohBeJCoHdOb+D4ziYON+pybxAG5E1DyZHvo0ctMJnQCZ3?= =?us-ascii?Q?aqqWwd+h1scuB1sMIgmOHLzglU85tfXrL8Ma1l8scyVJpejTW6KTuXUy1bh0?= =?us-ascii?Q?fjA1W9a4wqxBbaM6T1Yidup1M/41gr+JSklBVIajmU9X2Ih4IbOvSTvaF9o4?= =?us-ascii?Q?zdYcussWrFRxiAyZLRQ=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: marvell.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH0PR18MB4672.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: b66431fe-e840-4267-7df2-08dc379b016f X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Feb 2024 13:50:06.2738 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: i66TrseKOfUlCPtg+pmordjdGfMRl2E9YiGPqgzDt8BlZAweiF+PvR3oIOzQT6QZyur+/IrGfwE2IoM+ORz4bA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM8PR18MB4439 X-Proofpoint-GUID: rJanaYxIfM1_zKjDfJ6wtr7t3Cq1cdx4 X-Proofpoint-ORIG-GUID: rJanaYxIfM1_zKjDfJ6wtr7t3Cq1cdx4 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-26_11,2024-02-27_01,2023-05-22_02 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org >=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 > Tested-by: Ting-Kai Ku > Acked-by: Ciara Power > Acked-by: Kai Ji Acked-by: Anoob Joseph