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 71FF941E93; Tue, 14 Mar 2023 18:25:58 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 01F7F40F18; Tue, 14 Mar 2023 18:25:58 +0100 (CET) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id 5392D40A7E for ; Tue, 14 Mar 2023 18:25:56 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1678814756; x=1710350756; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=NcbqLGjqIzCvAIItqkDNWJePem/jci0p5TN68GAejns=; b=lErb5rZwKS+FWda3B2vN5p7jYp4Df/eJ8LG0AHKAJb2kCtvK2stRIUdw pIAfr2EYP1sX4nq0E6B7DDUSzzCgOI/yJCtmpRBAuVbRHR8kENx0O/8wF JML2MNINTzUUfY2XsWiTMy8rOMWQFkq8xe3bxxMtzljKB+bIpqway8PsA P1TfBwLctKptyk9CEkZQ7s+UAh2BZ3R+MlqrUWOIhjaJtAdmrfPaRmSXc zXC9Bb7jaug3bgAk2uHDjRQ+ywzQ9X/9WtDf/kHQLxGzQiUWr14EREhKI UNGgZpgscrLlJz+RaD2PB7Th7r+hEpG9HVd/8Lptd8V/XA4jU++xqUSRG w==; X-IronPort-AV: E=McAfee;i="6500,9779,10649"; a="339036167" X-IronPort-AV: E=Sophos;i="5.98,260,1673942400"; d="scan'208";a="339036167" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Mar 2023 10:25:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10649"; a="853289897" X-IronPort-AV: E=Sophos;i="5.98,260,1673942400"; d="scan'208";a="853289897" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by orsmga005.jf.intel.com with ESMTP; 14 Mar 2023 10:25:55 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Tue, 14 Mar 2023 10:25:54 -0700 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21 via Frontend Transport; Tue, 14 Mar 2023 10:25:54 -0700 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.172) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.21; Tue, 14 Mar 2023 10:25:53 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=K1dB3Cjx12BCXb5XYAJMJq5Rgfo6uyoJXt0hGlILqTzVnfL4vpql7aaAoCZ0jEIXDmuJI3ywTkBMfi61rCO1gT2qtHAnMIk09f65zZhmZkAquFTBsSYDkasRBdVoM4gEL9rPuAoMnbLMZAf3uujjV0TOmHJvGIjpPdh7fm2vkcfj38S0yHtl0BBVdt8miPBc4224x0dRQP1CEXAFlS0Z7ms4+cs5YQ/1eyCst2sLDUlvAzoaVBVqfZZDKou8SEFkHWMhW/voP9ylG7MCloVbn5IDrRCLb/AVI8Aba7mkwzIBuH/3kmwD4GQbB6M0yeOAIHFCESjA3zMJRKZ7QyK4SQ== 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=sAQ0TWVG8WltxBVFLqsqmE9P7YxGO6TesyOUYqzN0yY=; b=O+l89/C+fMU8X93SLFxCTWeK/3U9lZKeTOvpD7GkLnKUJW+9ka3kQLQVl3dwQMt4fOVVgGT2vuSgrKlLSp6nQpAqdOaMZbTTFD16+eRszEnGjMQPbxFi6OhOQGp7wcyxoSWrvg7hKl7iRWe5XShAL1c3ihAFPkt/xfJgkhb3EndJSyHiApM/7rZXzltixD0BP+QuAtJkc9N9PgAb2sB28nGlF2bHBCFy+CaKC9fnAqcZZupVJZBhQRYbYo25i2rrdpyX4yDoeXKve3kpS57XB3/ml9jQw+i+XVVi4r7vksdUIabEZaNXynppY38DmvLptTsyvTVn9G82FFZUGtKnzg== 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 SN6PR11MB3408.namprd11.prod.outlook.com (2603:10b6:805:bc::22) by SA2PR11MB5084.namprd11.prod.outlook.com (2603:10b6:806:116::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.26; Tue, 14 Mar 2023 17:25:51 +0000 Received: from SN6PR11MB3408.namprd11.prod.outlook.com ([fe80::651a:1bea:27fd:f02d]) by SN6PR11MB3408.namprd11.prod.outlook.com ([fe80::651a:1bea:27fd:f02d%4]) with mapi id 15.20.6178.024; Tue, 14 Mar 2023 17:25:51 +0000 From: "Ji, Kai" To: "Karas, Krzysztof" , Thomas Monjalon , "De Lara Guarch, Pablo" , "Kusztal, ArkadiuszX" CC: "dev@dpdk.org" Subject: RE: [PATCH v2] crypto/ipsec_mb: expect ENOTSUP Thread-Topic: [PATCH v2] crypto/ipsec_mb: expect ENOTSUP Thread-Index: AQHZVaOMbRL7bWslTkOhj4nVQF+cGa76iLMw Date: Tue, 14 Mar 2023 17:25:50 +0000 Message-ID: References: <20230220171318.1836477-1-krzysztof.karas@intel.com> <20230313120106.3462855-1-krzysztof.karas@intel.com> In-Reply-To: <20230313120106.3462855-1-krzysztof.karas@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: SN6PR11MB3408:EE_|SA2PR11MB5084:EE_ x-ms-office365-filtering-correlation-id: 04384791-fe51-4b92-fd57-08db24b12866 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: KLvyQoFXWnQdiYgE2RpljhTjjTmQW4I7mRCkf1zVtgvyxMkqncCyZCCoYZARd714m1U2aX7ksB0EvYXcLi74T/zvWuh99qC34ZJuMYwlxxuko9vmn5EwnIdg+cUp025+h71dOusM/erCSA9tEkJ9tgtYy2O3vEv2WbyncLUqBhN+LFgr/M6g9fMZ16oFykkDdmJRgHwC1suan6MO+cNEWFdXf2qiN5RZK4m+06QvHo7o19iOzr7/rjidL/j2ThvgcACfTdQdUp3bn+GHFe3VaPEstg64oJA/hL1/CfyptpTldFH2ptMXzXb15zExTzeeWlmWc/GL1GUdB9/1ORUpK5UMl6iRmURWhRHqKHacz27+zYfLuaJC5XXBQrOee74beKA7LAbd+9IYNRfZ5zFOtTuv4SwlgHp/F+BCC1t72ioS2+Xhw7F4TKRDTdOdMb1fPsvk0c1merebBCv5W4dJfu5zYeSWOm7uso3rNxuiZV3/C6eHzwF35xlvaKgq6lIEDfc5OWghkgMLSKwNFxf9DPpp2YALuocRDd8A08JmLSpI4AiBcRUca+Do9ogNpdsH26XQEL8ieZauR15lFzMg0dbJ8WXPmn89X+Bf4TR/O1CPojmwSaE8XtQqn84ZCbaRa+shZepnxVp8YLJoWNqBsQjTOETQYMY+gy+MGKZmIOEIyckVxU4qvK1T31ojEG7c4vZj1l4PEFAYssPnWP62BQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR11MB3408.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230025)(346002)(39860400002)(366004)(396003)(376002)(136003)(451199018)(38100700002)(478600001)(316002)(110136005)(33656002)(55016003)(38070700005)(86362001)(122000001)(83380400001)(26005)(6506007)(82960400001)(9686003)(53546011)(186003)(52536014)(5660300002)(8936002)(71200400001)(6636002)(7696005)(41300700001)(76116006)(66946007)(8676002)(2906002)(66476007)(66556008)(64756008)(4326008)(66446008); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?kcUJx3S2ZnHgzMy76KGXSF1clcRaFvIlCK5jrli8Ii//caMklRK1eNpyLLmT?= =?us-ascii?Q?RSyZPIt4ckrkmzHapNs/mykN3+wHoBjBCdJ8fGXdBxO0RYrkcM58du1761qk?= =?us-ascii?Q?UzpXT1C99zbqCfnFldhNRVBzqMSOBXn0/S9Reax0xXzaOuJethNXknyXNDpC?= =?us-ascii?Q?Wpd/8GR5BvvC5kucXDNzX1jYM31WEhHh4Ds5ct6EylEAQq2t668QfWBJ0hjl?= =?us-ascii?Q?SGtvF3R/Z+HvqbeqBIMLRtyzEjflQrqjIyIhAAwUHj5U624bf3aM8Xapt8XX?= =?us-ascii?Q?vris3n9mq+EBR1KBsay0bAbCC9ky2XXGcV6/SigmUVDvapkUqn9hBCUGdHK6?= =?us-ascii?Q?gKcUx4YaF25VTZ2ALCS/oExlwwnSztVyHzyWrVuV8YESzpYy0mJNgPO88kaO?= =?us-ascii?Q?/iHIq39BlZCXTZsz/F8f7ZDY56vW51qZLZRCQhJMIsvtXqHQtwJWTJQ6mBOs?= =?us-ascii?Q?zGOdv2zv8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Qu?= =?us-ascii?Q?F74jOeQeepNsWH+6a3L3tBTxrpRBPRkJwNpF4JukqCXcjuaNadB2AGe3afdP?= =?us-ascii?Q?M+bM/F4mlbZK2fYBtxd2BinlnK3/bJP5NHdCsCgFqNUom4ts/EcsLcRqWzOv?= =?us-ascii?Q?T6elA5bmUMFGL1ntTDhOzsHQ9+57B98pSeT4pWq7TgrNxYhdud5Rcl26Utc1?= =?us-ascii?Q?e9cNwSbaPOYfHms0MzVXW7UxqkutIKT8OVb3v1vR?= 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: SN6PR11MB3408.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 04384791-fe51-4b92-fd57-08db24b12866 X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Mar 2023 17:25:50.8237 (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: MojcQ+0vQfxz+0MRTk1b/DtLUrCAeF6BwfO8c93LArd8lLlxIRPVvRY9nk2SYHLak3L3Bdu94fXFUOPde+fv4Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR11MB5084 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 Acked-by: Kai Ji > -----Original Message----- > From: Karas, Krzysztof > Sent: Monday, March 13, 2023 12:01 PM > To: Thomas Monjalon ; Ji, Kai ; > De Lara Guarch, Pablo ; Kusztal, > ArkadiuszX > Cc: dev@dpdk.org; Karas, Krzysztof > Subject: [PATCH v2] crypto/ipsec_mb: expect ENOTSUP >=20 > Commit b35848bc01f6 ("crypto/ipsec_mb: add multi-process IPC request > handler") is part of DPDK 22.11 release and it enforces usage of shared > config and multiprocess mode. >=20 > DPDK is not required to be run with more than one process in general, so > instead of erroring out, catch the error and proceed with ipsec_mb > device creation normally. >=20 > Fixes: b35848bc01f6 ("crypto/ipsec_mb: add multi-process IPC request > handler") > Signed-off-by: Krzysztof Karas > --- > v2: > * Modified patch title and added "Fixes:" note. > * Restored original comparison "rte_errno =3D=3D EEXIST". >=20 > .mailmap | 1 + > drivers/crypto/ipsec_mb/ipsec_mb_private.c | 2 +- > 2 files changed, 2 insertions(+), 1 deletion(-) >=20 > diff --git a/.mailmap b/.mailmap > index a9f4f28fba..dad475b9d0 100644 > --- a/.mailmap > +++ b/.mailmap > @@ -1583,3 +1583,4 @@ Ziye Yang Zoltan Kiss > Zorik Machulsky > Zyta Szpak > > +Krzysztof Karas > diff --git a/drivers/crypto/ipsec_mb/ipsec_mb_private.c > b/drivers/crypto/ipsec_mb/ipsec_mb_private.c > index 50b789a29b..64f2b4b604 100644 > --- a/drivers/crypto/ipsec_mb/ipsec_mb_private.c > +++ b/drivers/crypto/ipsec_mb/ipsec_mb_private.c > @@ -170,7 +170,7 @@ ipsec_mb_create(struct rte_vdev_device *vdev, >=20 > if (rte_eal_process_type() =3D=3D RTE_PROC_PRIMARY) { > retval =3D ipsec_mb_mp_request_register(); > - if (retval && (rte_errno =3D=3D EEXIST)) > + if (retval && ((rte_errno =3D=3D EEXIST) || (rte_errno =3D=3D > ENOTSUP))) > /* Safe to proceed, return 0 */ > return 0; >=20 > -- > 2.34.1