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 5554641DCC; Mon, 13 Mar 2023 13:01:24 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 302E341140; Mon, 13 Mar 2023 13:01:24 +0100 (CET) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id 5781841140 for ; Mon, 13 Mar 2023 13:01:21 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1678708882; x=1710244882; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=aCAKKzUwY7RCqaldOts/1A3CMP6YivBPJsXzGuh4ul0=; b=mD+ii9Wn8jbiOPR4G2XctsBcvK2EogRTtKV2TmKy0B3KzJIOtd9ek1U2 HGQ3lU7HR6AYWJGh/u/0qIB5ELO2tP40TzMmMGzZovv83kPz0udTUiEUc KmAxOJRj95CPIQCojvvgkG3/zGUDx1brC4zmQ2pdrvLQbF39AapGzaX0H xGKUw590pkrVO3ehMLiJFgciwK3pAiC06ihHdmoGTcHJPZNEDEeu3Bms/ Xv5p3sLHW06UXtw90DyFjflff53Uad1rE6LsMl1npH5XuAcPoA+tPHv/1 YsbW0YPdzpi383F0gQ+Nk89WSJbpoRxV7m2SmUMOTux5CQ0/PDt08KRRV w==; X-IronPort-AV: E=McAfee;i="6500,9779,10647"; a="316774967" X-IronPort-AV: E=Sophos;i="5.98,256,1673942400"; d="scan'208";a="316774967" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Mar 2023 05:01:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10647"; a="628608612" X-IronPort-AV: E=Sophos;i="5.98,256,1673942400"; d="scan'208";a="628608612" Received: from kkaras2.igk.intel.com ([10.211.11.138]) by orsmga003.jf.intel.com with ESMTP; 13 Mar 2023 05:01:08 -0700 From: Krzysztof Karas To: Thomas Monjalon , Kai Ji , Pablo de Lara , Arkadiusz Kusztal Cc: dev@dpdk.org, Krzysztof Karas Subject: [PATCH v2] crypto/ipsec_mb: expect ENOTSUP Date: Mon, 13 Mar 2023 13:01:06 +0100 Message-Id: <20230313120106.3462855-1-krzysztof.karas@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230220171318.1836477-1-krzysztof.karas@intel.com> References: <20230220171318.1836477-1-krzysztof.karas@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 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. 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. 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 == EEXIST". .mailmap | 1 + drivers/crypto/ipsec_mb/ipsec_mb_private.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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, if (rte_eal_process_type() == RTE_PROC_PRIMARY) { retval = ipsec_mb_mp_request_register(); - if (retval && (rte_errno == EEXIST)) + if (retval && ((rte_errno == EEXIST) || (rte_errno == ENOTSUP))) /* Safe to proceed, return 0 */ return 0; -- 2.34.1 --------------------------------------------------------------------- Intel Technology Poland sp. z o.o. ul. Slowackiego 173 | 80-298 Gdansk | Sad Rejonowy Gdansk Polnoc | VII Wydzial Gospodarczy Krajowego Rejestru Sadowego - KRS 101882 | NIP 957-07-52-316 | Kapital zakladowy 200.000 PLN. Spolka oswiadcza, ze posiada status duzego przedsiebiorcy w rozumieniu ustawy z dnia 8 marca 2013 r. o przeciwdzialaniu nadmiernym opoznieniom w transakcjach handlowych. Ta wiadomosc wraz z zalacznikami jest przeznaczona dla okreslonego adresata i moze zawierac informacje poufne. W razie przypadkowego otrzymania tej wiadomosci, prosimy o powiadomienie nadawcy oraz trwale jej usuniecie; jakiekolwiek przegladanie lub rozpowszechnianie jest zabronione. This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). If you are not the intended recipient, please contact the sender and delete all copies; any review or distribution by others is strictly prohibited.