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 33EA443B7F; Thu, 22 Feb 2024 18:35:26 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4720740A79; Thu, 22 Feb 2024 18:35:25 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id CE65B4027F; Thu, 22 Feb 2024 18:35:23 +0100 (CET) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 41MGM46r026692; Thu, 22 Feb 2024 09:35:23 -0800 Received: from nam11-dm6-obe.outbound.protection.outlook.com (mail-dm6nam11lp2169.outbound.protection.outlook.com [104.47.57.169]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3wd21khrag-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 22 Feb 2024 09:35:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=c3tJIsJADcIp/XQqMi8uLqZsTwC/dPS3408FCHYT5nnZw8aBuy9OvMiX6Bxlp/IGR5f0plIWvfaq7LCnoH9fjjlBzHffhvxj5rNTdJxKXgb7146r8RRSEDnVEA+fXSsYxxcSWyYto6eBecOKdP/IeYi10km1yNZbKdykMSyJZ6MqhPA894ZG/pLuW/M8PHII9+crx2OTY8I4MxXjWYRIR8Xrvpc9mKuFTvaFWdJBYCh57EjDL8J5F/WJUQopqrm4Rtr1AI7tIWUqj4ctxlW9q6Nh9yXmLT8VO3sgK5V+e/qGoJI1cOzbyjz2mq0QhJC8k5BWIVd7GHt8UdO0qzpuiw== 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=+r7ck1QPiGkrldQWOjN9o4+i4TquTT7SXDYeqGxjOrQ=; b=kF3S5MgdNfrIeHJkYffOp1txRQsZ5X5pL2ybYDDMlpD+6zVC+q4ngcdiFGxnXhLRuWrnkb9iS0VVDDVoADCwiy97v/i1X5hLUWAGsplPz4GaZ4WA8l/zobv0JUcAisBuGKRQNoGZISqsvhDfZih9h9d58KvOphgYHs3fL09l8UQfeNQ1sP7zqqMdPXNXA0PjOWNheGnJqQyHY/teCPAX2+7zJNjrQqP6uQ8mMRyMjAOhGrKxD/Q19dfqkkYjVZ/ZiHsL54jS+9D/+wAytLr9/uksVWhne+/YAD5mrU730BWkITwM5aTTJOfEbxRiaIhoNTFXIXa67LOqAxvYWTmO8A== 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=+r7ck1QPiGkrldQWOjN9o4+i4TquTT7SXDYeqGxjOrQ=; b=ID+7T2SIpUcTENAhhhM02nn0o6Q08GHD/3mE1y7kmi929MO1MYUz3chAriGvOmGbGxQT0L/drNi0FZhr+klQeP+TifCQM8UBNgNSV5nmf6TKpy5Muv661eiZiF2e2NyssZRpzLIlF1tyeMrtNVY9oS5ErZ0PJRAGojyntFduIl8= Received: from CO6PR18MB4484.namprd18.prod.outlook.com (2603:10b6:5:359::9) by CO6PR18MB4403.namprd18.prod.outlook.com (2603:10b6:5:35d::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.24; Thu, 22 Feb 2024 17:35:20 +0000 Received: from CO6PR18MB4484.namprd18.prod.outlook.com ([fe80::b841:a648:139d:f558]) by CO6PR18MB4484.namprd18.prod.outlook.com ([fe80::b841:a648:139d:f558%4]) with mapi id 15.20.7292.042; Thu, 22 Feb 2024 17:35:20 +0000 From: Akhil Goyal To: Radu Nicolau CC: "dev@dpdk.org" , "ciara.power@intel.com" , "ting-kai.ku@intel.com" , "stable@dpdk.org" , Volodymyr Fialko Subject: RE: [EXT] [PATCH] examples/ipsec-secgw: fix cryptodev to SA mapping Thread-Topic: [EXT] [PATCH] examples/ipsec-secgw: fix cryptodev to SA mapping Thread-Index: AQHaLBf9OYAVPob7a0uvtB4oaOYvKrEXEpwQ Date: Thu, 22 Feb 2024 17:35:20 +0000 Message-ID: References: <20231211095349.9895-1-radu.nicolau@intel.com> In-Reply-To: <20231211095349.9895-1-radu.nicolau@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: CO6PR18MB4484:EE_|CO6PR18MB4403:EE_ x-ms-office365-filtering-correlation-id: 356421c3-8126-4c0e-64be-08dc33cca4a1 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: xahFX5Tv2e/LbwQGM2Mx26CoK5HnkW+wjtWWorYgWfE1llrhyJrDo6HZfy6XVxOcKzMZf92fDZrOKyIYYBAmK3+cDw2HD/DLviy8DucgKm901tdOCPFTxDfNTdaXTWlVjwhMSm5GMWccLKyy8BIGvfrtado8sYZeWDVnnxvu2aRGe8APFyIifLKiP08GNTl53t4VyqrCllWHthTWFxiLVrnMBJ/J5sO1G9SB/QmBpIZfrzEHqQDBPxuFdNL9YSl2exZ1rAbPF5VU3ia/Ehf/KW7AjMttkqWDtwvXVcDyyAj/b/yPC7YUNVE0Z1a1FiZbSsM+bZdpeS0YIiIEWHWBQpvtAkQ7zAgV07zAWOiehzaZJP/sEIp73ii7V+keZNKE53HtakoVdx1VIBtlDIejNzDF5ipgKIeuthuP9LuEASRmjGkK1z7oh6YCcqniBkeutNq9Km93HKb29krqkHP3BwTo0aTMKXtrnLD2JZXammxh4rQMDT/IIgtuGzS3R2x0tGgUVLN8p1vyox1UCbCF0ia5kg+M10k01SgQLffEWfjjUc/Tqqd8DLJaxGW4oAiBfr39MO5yvmmpQgAf2jegyjyI02wmspU50Wdrb8D+muXoRZ2ctwO9AOHfWwSfl9YG x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CO6PR18MB4484.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?jNqHUDQAexW7qsVaSr1VXhCtE/XDaNjqvt1aq6HZUr+38V3OyEmHzA1ZLqxI?= =?us-ascii?Q?GGdqz41RMzd1G7nXK5k7Bl2rcBo9LgZr2r6LWwsBxqs6zIq+RlS/u6hgDjya?= =?us-ascii?Q?0dCTrmJkddvlFArccmcXQjwxFNPqPepDsVVI2rycsUaCCifLLRdV/hF2UNlb?= =?us-ascii?Q?FNOABkpkiw+5b7OPYCPUV8E1UrkchQ2W9yMhnYWi8hmHqSjnfVNF05yxhnQc?= =?us-ascii?Q?hwy62VIqPy8xvN3CLxMhRxYeaJBNpnJD5Z2QTWsICgeRBAFIcLpPHueiopYE?= =?us-ascii?Q?3NZAgJOQbMTEaFl1Yfcg7PqzD71kS/n7kp77d6ZzbDOxfb+N5uSZNXZKjsuE?= =?us-ascii?Q?x+8djn4DBzx7fSltczqRzW3jZGNfrLBhpkaxOkif+VNV/SHbVlgjjkyh01nw?= =?us-ascii?Q?BInlkYQJgMA/QZJebLoIVIMMxRMkgkJWh0gB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J6A6U1zW0wpeCIwoDJUn33yxsb4Px6VTiw1f3r2H8qKnm+i?= =?us-ascii?Q?SIvLI51vy80Dz7FbbzN+z+rR0F0WWTbbYMoRohxHs+Y7B0if4FglW9thiolm?= =?us-ascii?Q?s5N5RQeZ5AIDDj4mgkVsu16rnKGckQ6O+XMIuG6+61vbrwa074ofPjcjdgxr?= =?us-ascii?Q?zUHwuM+2H8iI1IL4ijCSTBNWM3AcFkAVoWHbYLYppnkQlJlacCw9VXx4pVmk?= =?us-ascii?Q?cJpnsbyNfkXnA17DmeZTWfEwXZtJ1teTq4hIDODh?= 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: CO6PR18MB4484.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 356421c3-8126-4c0e-64be-08dc33cca4a1 X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Feb 2024 17:35:20.7554 (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: VdiQBbUeFcfc10zHhgwKDEf/7tTpPNrEzIx7xy/WEIq1oPoKvvWDiZNex5GeBplOT+ycCnOnjpUrAyfC/RNC0g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO6PR18MB4403 X-Proofpoint-GUID: c5eRmb64_zprfDVkyMUu5IEQgN_bDt4E X-Proofpoint-ORIG-GUID: c5eRmb64_zprfDVkyMUu5IEQgN_bDt4E 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-22_13,2024-02-22_01,2023-05-22_02 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 > @@ -908,7 +907,11 @@ ipsec_enqueue(ipsec_xform_fn xform_func, struct > ipsec_ctx *ipsec_ctx, > continue; > } >=20 > - enqueue_cop(sa->cqp[ipsec_ctx->lcore_id], &priv->cop); > + if (sa->cqp[ipsec_ctx->lcore_id]) > + enqueue_cop(sa->cqp[ipsec_ctx->lcore_id], &priv->cop); > + else > + RTE_LOG(ERR, IPSEC, "No CQP available for lcore %d\n", > + ipsec_ctx->lcore_id); Can we add likely here?