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 398FCA0C48; Thu, 8 Jul 2021 17:26:57 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E5F9641647; Thu, 8 Jul 2021 17:26:22 +0200 (CEST) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2050.outbound.protection.outlook.com [40.107.223.50]) by mails.dpdk.org (Postfix) with ESMTP id B172D41642 for ; Thu, 8 Jul 2021 17:26:20 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WqmCYaxHJEapQD9hJ+9B8si7aVqsLz7f8hTNXPZIvYdGwXmfOnMMfvGwGyLYfPJPjOfWi8HXIZc2+rNN+95MUEct875svZSZRxdOSNEJF3+rlHvKgj47+hh+QjFhMHoYt6KlH3LmrYbua8d5/jXXarVQaG9fvV6yya3HHwJJKHh8Tiv+KlA8jlP3BVuTg0URa/LzJoFuzYr5eeL1HRhSDrBhkj4p66gcHABcOJ8g0HIYHadETN8KiKM6M1Rw/jP5zeWFGsKM09tuRjWHKtnaW2Lna52VmYzifHLVbMNBb/KsNrCOW36hdCBgV1F9K8K9l0znZYTPpxD01docXZZt4w== 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-SenderADCheck; bh=PKPcULQp+1Zj2Z+yiwmhGOTaN719wzCCEY76irrsYFc=; b=G3XBxI8denbgZSJ1ikUgb3VIvidtTmVvP+PjCslrjdokGmIAp3mA8boAIJORJwlEwUKZIUpZfW6ky+G4QifM5L0Ldb6F+j+OvZ/P7/W4ozkRl5R189uoRjP5ShzjugD7dHD63C0/4kt0Ewlel4GisQuRRjoIqrcBxm33CTwqCrmoJUhKLFdNZ4SxTaVgw+YR+7sO6F5hWqMfWR49FoC0LzBz2HKDjFFSaZOdEFjueFISgCTQ3y4douenPBxWvpCVeeyUPfpxZpFVaAF6O4YkUaqFuG1fiBVRbsESkt4ozcGNTuVjOS3P2yRFyMSgqohfnU3KQ8kFKsMGmNQQxxVnIw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=redhat.com smtp.mailfrom=nvidia.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=PKPcULQp+1Zj2Z+yiwmhGOTaN719wzCCEY76irrsYFc=; b=XozFIZqnmvJDQU+D1WwuAF42M2UWneeXHt+m2X8FIRUp7+TNOfAPn4TG3Sinf7T43iolbRbSz+WKi8GLYcWoj34EuU8/ffBpt8t2hQ4HDoliHg9ELmq/Q737u48PM2yYnADdyyCx8nA9Z3Xw1y2QL4aN/jOo3ydvJ72oTjO+Hsv2Co12LbiMs4pfIE3GfuTzMhgwuvZtt1LSamBeg8+Mb2PK9vvY3OhkELLJiXBa/dOpg3efr35NNXm2mp6pFIdGGhJr8uJf+tl38NtaW5FZ8esQ30L6yp/BYauuggaZDHZnmccC2mlZZ5V/msVHZdhVYAzMu2KJb9eK7mqmS0LFhw== Received: from BN0PR04CA0017.namprd04.prod.outlook.com (2603:10b6:408:ee::22) by BYAPR12MB4757.namprd12.prod.outlook.com (2603:10b6:a03:97::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4287.33; Thu, 8 Jul 2021 15:26:18 +0000 Received: from BN8NAM11FT053.eop-nam11.prod.protection.outlook.com (2603:10b6:408:ee:cafe::52) by BN0PR04CA0017.outlook.office365.com (2603:10b6:408:ee::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4308.21 via Frontend Transport; Thu, 8 Jul 2021 15:26:18 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; redhat.com; dkim=none (message not signed) header.d=none;redhat.com; dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.112.34 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.34; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.34) by BN8NAM11FT053.mail.protection.outlook.com (10.13.177.209) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4308.20 via Frontend Transport; Thu, 8 Jul 2021 15:26:18 +0000 Received: from nvidia.com (172.20.187.6) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 8 Jul 2021 15:26:14 +0000 From: Shiri Kuzin To: CC: , , , Date: Thu, 8 Jul 2021 18:25:21 +0300 Message-ID: <20210708152530.25835-7-shirik@nvidia.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210708152530.25835-1-shirik@nvidia.com> References: <20210701132609.53727-1-shirik@nvidia.com> <20210708152530.25835-1-shirik@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.187.6] X-ClientProxiedBy: HQMAIL105.nvidia.com (172.20.187.12) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5ad96cd5-2ae5-4864-4f39-08d94224bbaf X-MS-TrafficTypeDiagnostic: BYAPR12MB4757: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1303; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: h+lWp/2785ZxmT6yijx25shd/PBZ40GuRS5s/GpQ1GoHPRlCnIpXuqw4IiZC7ZNa1mw/Ol2icHSmAD+oYxKNAHN8zubbzS2e9bceWwd1BFjVMhlkqRoINErkroNrglsLsWT1tNqEi3cqRHdtksioRjTg8Qkg0XuFd28FjAl2Cg8l7CDGSWU6/i/Ubf3PsM0Sr0jc5Q0F0/TBQbMOGeh2QG9dTob+sl6UvUokUns1daRr4hEDQHcNiur/KFoo3umpcVd2HJy+VemIVCHS0yCGMev0TXmoY8/asuGhnhlDalYUvvKLS47UsgdJIBcCGoaLtVNt6az5nSMaxEFC1c01afn5RVVTT2vDR+Yab+zRMBnkRVV3i6sLiQAJAZB3bDI7Ap27NeFFH51WFfEhlhLUK7IVt8dylm3QX9A1IpcT7Ay06LdMhAQyKfi4d4xIMijV//RCXCijCimqFa6hSCxp6E7c2fR7lk9J3JYq4g86cfkcZXbUWKLjZgUrdwxi8PYGqc2ZEcqM690P9xYDbO8PKvMCfI5WA6+D+R8XuNn8c8jotpWax0jxXGnbxQklDr0Jdlkdl6ZnKHDr8ItksjkOnr0ojQjU2eFROpbMp7DqZ2ftjPwd8FS+hvaMSFfggiGxPJwSsMmNmiapRBTtpQQUbaejA3lxgvyasd8Ivrro/bZifCqF73bh6/lbf57t/+rESlcgmuyCmsH7t7g8kp42Yw== X-Forefront-Antispam-Report: CIP:216.228.112.34; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid03.nvidia.com; CAT:NONE; SFS:(4636009)(136003)(396003)(376002)(346002)(39850400004)(46966006)(36840700001)(336012)(5660300002)(54906003)(36860700001)(70586007)(36906005)(2616005)(186003)(16526019)(82740400003)(86362001)(4326008)(478600001)(83380400001)(8936002)(36756003)(55016002)(7636003)(7696005)(47076005)(6666004)(316002)(2906002)(356005)(8676002)(26005)(82310400003)(426003)(1076003)(6286002)(70206006)(6916009); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jul 2021 15:26:18.2851 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5ad96cd5-2ae5-4864-4f39-08d94224bbaf X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.112.34]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT053.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR12MB4757 Subject: [dpdk-dev] [PATCH v6 06/15] crypto/mlx5: add dev stop and start operations 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 Sender: "dev" Add the dev_start function that is used to start a configured device. Add the dev_stop function that is used to stop a configured device. Both functions set the dev parameter as used and return 0. Signed-off-by: Shiri Kuzin Acked-by: Matan Azrad --- drivers/crypto/mlx5/mlx5_crypto.c | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/mlx5/mlx5_crypto.c b/drivers/crypto/mlx5/mlx5_crypto.c index ebaa65c7a9..37e66cf57b 100644 --- a/drivers/crypto/mlx5/mlx5_crypto.c +++ b/drivers/crypto/mlx5/mlx5_crypto.c @@ -131,6 +131,19 @@ mlx5_crypto_dev_configure(struct rte_cryptodev *dev, return 0; } +static void +mlx5_crypto_dev_stop(struct rte_cryptodev *dev) +{ + RTE_SET_USED(dev); +} + +static int +mlx5_crypto_dev_start(struct rte_cryptodev *dev) +{ + RTE_SET_USED(dev); + return 0; +} + static int mlx5_crypto_dev_close(struct rte_cryptodev *dev) { @@ -360,8 +373,8 @@ mlx5_crypto_queue_pair_setup(struct rte_cryptodev *dev, uint16_t qp_id, static struct rte_cryptodev_ops mlx5_crypto_ops = { .dev_configure = mlx5_crypto_dev_configure, - .dev_start = NULL, - .dev_stop = NULL, + .dev_start = mlx5_crypto_dev_start, + .dev_stop = mlx5_crypto_dev_stop, .dev_close = mlx5_crypto_dev_close, .dev_infos_get = mlx5_crypto_dev_infos_get, .stats_get = NULL, -- 2.27.0