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 3C4DE41DE6; Mon, 6 Mar 2023 13:59:03 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 150F340E50; Mon, 6 Mar 2023 13:59:03 +0100 (CET) Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2041.outbound.protection.outlook.com [40.107.236.41]) by mails.dpdk.org (Postfix) with ESMTP id 2D4A840A8A for ; Mon, 6 Mar 2023 13:59:01 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=U/8OdW3TPEerD8kgUaCYfyxLlmGFL6EeA7Hv30qlo+O/ifhszu/FgxwcjqHwJ+ngSRHlnvejZtPRKeenqpu9SGSPscJqnQIBxI44HldpOz3JUtcEYO0FA7K+VauDbqWr9WAsWOY2W6UaMoo2cLzjpwaLXBLC8+6WmUlE043uyL60lYQysTaJTGA6rFt6C9kCjSroh06pa+i0XbvBD4kPsuTUt1nfzU2NJRXpf55AcZwgez1akn/1p8x+TWilx0KgQ7/cK+WDTLZGEJFHmS29JWkghfsyMWXDSav41WkCHypXhe2uAuTN8NuvLdLDjTs6d3aQIkvQFERTxo6W7wrUpQ== 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=spPkXRh5vT2idslDnE2rFeFlYWFTk/FuXB6EHvOyOpc=; b=n+67rRFhU37yW/JuDY/U7O4ukdhgeeWTvCrNqDX00LpsSdPSYTNHlNuYb0qzkO300E7YTyKusSlcA7+1OIIn1AQiTFg1k++YhhYaxnu08jIocI3Gm0RBOOg4/in9W13wQRWfwXfC5SRuuT57i0pVUR3YZToHZn38s/NEPrYHcUaVBHR5r0wrGSNftPBAmA1EKJsFh+gFUh+QGmjxdnW39YrER+dEd4fZBCH6jO5EBQDXhPLT7xiLtkJ76s4i9YbKCasyL4QPig2rGpJkESxUCa/nw/+0mHuxNHoLkyGj8CYCM8f/XOT+nSz3jVY10AtbTDFMorar87DwvPhMAgwz1g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=marvell.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=spPkXRh5vT2idslDnE2rFeFlYWFTk/FuXB6EHvOyOpc=; b=HtlSekPEpR2HG3QW4a+txt4ZwD55uBKFnrRpPbLgB34aTYAwEtU9GS2xGKxNYWknedAZdyYMvSDL7RnSKgjOpv3voYvEsIYTTVgydWx9gSKeYTV0YCx78ru1kCaaDIEU+Jzvn/lWbXR9ESYPkMSsWMeSKAATwrO6tlI+aul6g7o= Received: from DM6PR02CA0106.namprd02.prod.outlook.com (2603:10b6:5:1f4::47) by CY5PR12MB6083.namprd12.prod.outlook.com (2603:10b6:930:29::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6156.27; Mon, 6 Mar 2023 12:58:58 +0000 Received: from DM6NAM11FT090.eop-nam11.prod.protection.outlook.com (2603:10b6:5:1f4:cafe::2c) by DM6PR02CA0106.outlook.office365.com (2603:10b6:5:1f4::47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6156.28 via Frontend Transport; Mon, 6 Mar 2023 12:58:58 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by DM6NAM11FT090.mail.protection.outlook.com (10.13.172.184) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6178.15 via Frontend Transport; Mon, 6 Mar 2023 12:58:57 +0000 Received: from cae-Bilby-RV1.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Mon, 6 Mar 2023 06:58:54 -0600 From: Sunil Uttarwar To: , CC: , , , "Sunil Uttarwar" Subject: [PATCH v2] crypto/ccp: bug fixes for ccp device probe flow Date: Mon, 6 Mar 2023 18:28:37 +0530 Message-ID: <20230306125837.94671-1-sunilprakashrao.uttarwar@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221124135645.5955-1-sunilprakashrao.uttarwar@amd.com> References: <20221124135645.5955-1-sunilprakashrao.uttarwar@amd.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB04.amd.com (10.181.40.145) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6NAM11FT090:EE_|CY5PR12MB6083:EE_ X-MS-Office365-Filtering-Correlation-Id: 64269705-3baa-476d-d427-08db1e428cb0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: CvSEtNYHNa/uLztsdFnsOZCkEeTZWxmUuKLGiwiYGLfrPKY7FUIyr2kFYCvYH81vZ4s0/30IAkXu+bWc3DL7R1+LrMIEsx5hyLKfXPYZpDbV2Q7PDqWjGihaW9rnKLR1TN4NGpoW6MKSFk4g3njw4weduImwnjs0Qq53at1zduSalcypxYh993PWRvcF09TZF4nHmoYRdHCuRp29oGaZratOiMhxuXnVVrQ5TZiPSReNGPJsnP/zHidOf4394YaIedPhbtragq9ZOdyQQOp/FB81dD1jtRGpGpdb2ebrcBVLslbbwkDjJy2S+ykNwlatAwQoUHZkQcb+/ZQLuFuIbCd6VKLFJ9fCgkUmiE1bsTLbDZu75gOSnOpnM358j65coBpfo/WIpg94E4/7MpCT2DLG/DnGax4xp3UL1vJMxuC6E93x6AcHP1QY3Vdz7hyTniFZdgVY5IjaZ8TAH4kCUmx4eKiHaP8+blSfJ+pAOnM9WJlxIOtfInwFUazbRg2Ar02PiSEdIMuumVIfH949379oK0/vln/JxsOkiKdsfDoGEs9jdcP5z4PoFuKITgUlWkvK9Ji8F9vi0s1AJsDwEhXZ60/PN/jKHfxvvzP+iMC0Ih5z8cGqBOijolFRYexIe8mugagftwZxsaGOunRUDEcZHAxrlVI+W44tkF1QIkg/0X2xB41LvEXaoGu0M1tudqTtzGHHFme4XxaysHdEPwkvzCVFhH3cIrW3lBYdf5Y= X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:SATLEXMB04.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230025)(4636009)(136003)(376002)(346002)(396003)(39860400002)(451199018)(36840700001)(40470700004)(46966006)(36756003)(40460700003)(54906003)(316002)(110136005)(478600001)(5660300002)(7696005)(8936002)(2906002)(4326008)(70586007)(82310400005)(70206006)(8676002)(41300700001)(6666004)(82740400003)(36860700001)(81166007)(40480700001)(356005)(86362001)(1076003)(26005)(2616005)(186003)(83380400001)(16526019)(336012)(47076005)(426003)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Mar 2023 12:58:57.9349 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 64269705-3baa-476d-d427-08db1e428cb0 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT090.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY5PR12MB6083 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 - Rebasing patch([v1] crypto/ccp: bug fixes for ccp device probe flow) Signed-off-by: Sunil Uttarwar --- drivers/crypto/ccp/rte_ccp_pmd.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/crypto/ccp/rte_ccp_pmd.c b/drivers/crypto/ccp/rte_ccp_pmd.c index a5271d7227..5d1a4445de 100644 --- a/drivers/crypto/ccp/rte_ccp_pmd.c +++ b/drivers/crypto/ccp/rte_ccp_pmd.c @@ -19,7 +19,6 @@ /** * Global static parameter used to find if CCP device is already initialized. */ -static unsigned int ccp_pmd_init_done; uint8_t ccp_cryptodev_driver_id; uint8_t cryptodev_cnt; @@ -192,8 +191,6 @@ cryptodev_ccp_remove(struct rte_pci_device *pci_dev) if (dev == NULL) return -ENODEV; - ccp_pmd_init_done = 0; - RTE_LOG(INFO, PMD, "Closing ccp device %s on numa socket %u\n", name, rte_socket_id()); @@ -278,10 +275,6 @@ cryptodev_ccp_probe(struct rte_pci_driver *pci_drv __rte_unused, .auth_opt = CCP_PMD_AUTH_OPT_CCP, }; - if (ccp_pmd_init_done) { - RTE_LOG(INFO, PMD, "CCP PMD already initialized\n"); - return -EFAULT; - } rte_pci_device_name(&pci_dev->addr, name, sizeof(name)); if (name[0] == '\0') return -EINVAL; @@ -300,7 +293,6 @@ cryptodev_ccp_probe(struct rte_pci_driver *pci_drv __rte_unused, rc = cryptodev_ccp_create(name, pci_dev, &init_params, pci_drv); if (rc) return rc; - ccp_pmd_init_done = 1; return 0; } -- 2.25.1