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 47A95A0C41; Thu, 15 Jul 2021 18:42:47 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 41388412FB; Thu, 15 Jul 2021 18:42:17 +0200 (CEST) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2077.outbound.protection.outlook.com [40.107.244.77]) by mails.dpdk.org (Postfix) with ESMTP id A7C18412D2 for ; Thu, 15 Jul 2021 18:42:12 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NdZ6jUnmcRFp/yEj5LLgJQa65ukO2kjcPfO045gDGly/oBgiHqSWqPD8wvLJaCtw+7Ap+o/wvCKXdCV6UDX8RM/aUonPhg5IyoWnMOIt3r6OmvChLtEY8mID79itql1+i9TftE1Ur2ad1JOLdR4UcKzVdQTDZDnear6XczjZ9hIS/e9OsSixYJbvZLkWWnncbM9DVXCJJVocpiluq+E0DbQkk5955j9HmrmTwAYvXbe74kcuwbwgbvycGeCgY7+HYv8YVFcmMdxzlKgSC0Zjg4JYPKypj5AF15V2PD8QYky8x0LcATFBUoPbkS8QMF6wQNLcqIfCEb32PCGEkLclbg== 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=nv1eW7ccouuZkOmqEVxaD9YrBvV6gf33imC5SSQ60WmKoy/UOwePoskJIHss/o+Y3BXDghe8Qc9h5oKisT3D9euEgAOOa0rgDsGqcDl9NsXZ/un4v/1GW714hjVXsWX6qvOcIlvcRfk0rzMilkZyZhq6XGIRuO2PAs/xEAGxAi6j7hokOW22avd0eIQ7j1AralwdnY5Ad5a+XtS2WzAT/GnD+B8huJIcykiJXvUL5gSnKMRiS56MjfPXYKpSi6Tu5NOZRLGDIKQyfkgOTCfM+LqNUlAMN8wcpTPXyDUj4XibePhKvHLwR8/xCD7DIKbqpN8jvRAd92JX6hdmlQu1aA== 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=quarantine 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=s+U2/bNc2JwPO9//aYnZoCC8xnm2QBtVxIXs4VBX19ggo5WfbtYMjiCKAVOxUniszkXvCTM19vwQQ3wlwbhPki2XEOqxx//iTrGoief9lhPwHxIkC94cMDkLPZuRzSP/tmdVzE73nZd20sYNXdHeBjOBCi37/4XFSA3P+R4FRNbk9t5ptDfegOfAzrjZtlGCHRXOzEIJyMnls1AYsGn6EnG8cnVQanlzFwNoVdaKm7ZX+FhqiHGPodqVR1DrZsPjEePdo+57C0YdDFiyKDcrmow7eyd7k6UkICPH3E6SWoxwmKa63b6gwp8JAzgWg4Szb2VXmwiseV6QXeUbMajV1g== Received: from MW4PR04CA0027.namprd04.prod.outlook.com (2603:10b6:303:69::32) by DM6PR12MB2617.namprd12.prod.outlook.com (2603:10b6:5:4a::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.21; Thu, 15 Jul 2021 16:42:11 +0000 Received: from CO1NAM11FT066.eop-nam11.prod.protection.outlook.com (2603:10b6:303:69:cafe::a2) by MW4PR04CA0027.outlook.office365.com (2603:10b6:303:69::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.21 via Frontend Transport; Thu, 15 Jul 2021 16:42:11 +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 CO1NAM11FT066.mail.protection.outlook.com (10.13.175.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4331.21 via Frontend Transport; Thu, 15 Jul 2021 16:42:10 +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, 15 Jul 2021 16:42:09 +0000 From: Shiri Kuzin To: CC: , , , Date: Thu, 15 Jul 2021 19:41:16 +0300 Message-ID: <20210715164126.54073-7-shirik@nvidia.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210715164126.54073-1-shirik@nvidia.com> References: <20210715150817.51485-1-shirik@nvidia.com> <20210715164126.54073-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: 37bbbb4c-c26f-4c96-09bd-08d947af7e1e X-MS-TrafficTypeDiagnostic: DM6PR12MB2617: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1303; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: QX+mrpCCDvWA0lUNfuTyBaINSGWiRXhk1AaQ0RXo8OsKTjLmyIwEUNH8cRnUN4RVC4/mrLiAL5FHLkhEVDx0BRI4O6TCHpp8TkA+8icvQ/kgS8prLuJdk+HviX+ErM+tKLP5QgaJ1T5sX1Ic6W4Sea7LTxEeR/jI/zQVVanRLsZTNoHfkYE3VPNFIokEd3ZScDEUm76CW0VN03Vc6jwLsA8b9nfNRoWT4AiIEOY54Ivzll1O1gB3pUHkN2F8FZ/e+U4wMDZ0/MJAPh0IPLRHsBMN97AzlZkO1VvUU+JhIYYE0sOsYKDtjh4hD9uW+A9c0cUtXaKi4jfkSvKTOW5XZqr7zunlez+6o9rKMnM6by562pT5NBTYV73MWCklMFos37tcxidS58uNLKrKGfR6mcdkrKFzpoD68qSqtfqgqzIVXl656+ni/zlPmyIe3G/EpJs3wfUsY0VrS4xFw37S+bQKy0iw3wKv/CdV0jaPFcsnFJbCJV+eB/YD+C2t+IHz3rsgpoRxHVPtJ0ak6iFGGFyyWF74Jn9J3keiebFtLZUFCMKZzhZZP1m3UcsQBIt+d3ag8wP0RH83vdOVDRCMoYxB6hqA0W+bhhuCLpayuliB87MLk4iyHjzp/vl/RCtV5hj6pLdDa8jAU0uA+av4S3XE8WLzFF2RW738tCCv2LgEaxvXcG0AsJOVZP5Vm9rS8GEgu0jLERCzRQwYsbYfXp9Mczt5vjiq2X431y3d9iw= 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)(39860400002)(346002)(136003)(396003)(376002)(36840700001)(46966006)(82310400003)(8936002)(55016002)(8676002)(356005)(70586007)(47076005)(36860700001)(4326008)(82740400003)(426003)(36906005)(336012)(5660300002)(86362001)(316002)(34020700004)(54906003)(2616005)(6916009)(2906002)(7696005)(7636003)(186003)(16526019)(478600001)(83380400001)(36756003)(6286002)(26005)(6666004)(1076003)(70206006); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jul 2021 16:42:10.9403 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 37bbbb4c-c26f-4c96-09bd-08d947af7e1e 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: CO1NAM11FT066.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB2617 Subject: [dpdk-dev] [PATCH v8 06/16] 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