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 D9B8141CEE; Mon, 20 Feb 2023 18:13:43 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C3B49430A6; Mon, 20 Feb 2023 18:13:43 +0100 (CET) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mails.dpdk.org (Postfix) with ESMTP id 533CC40395 for ; Mon, 20 Feb 2023 18:13:41 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1676913221; x=1708449221; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=FQnh8/lYuVCGBLsdsJusEqOGnmM1LIJgeS5ZGigmMl8=; b=GydVH6+7Ge70s6nXLTQR5o7/w+iCFNO3jCPAZWE3piC1rxr3RtXyf4t1 35MYl7ZLK7Y0vlYKTEW7AxM0HAMsblo83kHuM7jSD8BXD8Hfo323nJKJN YnpSw2c9Xe9UaS/OFo55s3p/NX+iSpyG0b+GiV3STZ0saBNzHRbRhBeoc cQTQFsG+xIa35A8Tw38KEEAPDzMVChb8V8BjWv26i2wYQvx9rPx/ZJHtJ XEnZL432tradg7YizVFE9X7Kh9uyKJ6QSMML1zmZbdjJ/2AilP0DUY7nx 4dsmdm7U+LQX8bUatsRpOWwGa25RxdBvzXKUOWEEOiYFgPFzN+O+wArBM g==; X-IronPort-AV: E=McAfee;i="6500,9779,10627"; a="334646640" X-IronPort-AV: E=Sophos;i="5.97,313,1669104000"; d="scan'208";a="334646640" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Feb 2023 09:13:22 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10627"; a="735195706" X-IronPort-AV: E=Sophos;i="5.97,313,1669104000"; d="scan'208";a="735195706" Received: from kkaras2.igk.intel.com ([10.211.11.138]) by fmsmga008.fm.intel.com with ESMTP; 20 Feb 2023 09:13:21 -0800 From: Krzysztof Karas To: Thomas Monjalon , Kai Ji , Pablo de Lara Cc: dev@dpdk.org, Krzysztof Karas Subject: [PATCH] ipsec_mb: expect ENOTSUP in ipsec_mb_create() Date: Mon, 20 Feb 2023 18:13:18 +0100 Message-Id: <20230220171318.1836477-1-krzysztof.karas@intel.com> X-Mailer: git-send-email 2.34.1 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. Signed-off-by: Krzysztof Karas --- .mailmap | 1 + drivers/crypto/ipsec_mb/ipsec_mb_private.c | 9 ++------- 2 files changed, 3 insertions(+), 7 deletions(-) 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..9eebf9bbc9 100644 --- a/drivers/crypto/ipsec_mb/ipsec_mb_private.c +++ b/drivers/crypto/ipsec_mb/ipsec_mb_private.c @@ -170,13 +170,8 @@ 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)) - /* Safe to proceed, return 0 */ - return 0; - - if (retval) - IPSEC_MB_LOG(ERR, - "IPSec Multi-buffer register MP request failed.\n"); + if (retval != 0 && rte_errno == ENOTSUP) + retval = 0; } return retval; } -- 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.