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 A09BDA0C52; Fri, 16 Jul 2021 21:44:59 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 80ED44067B; Fri, 16 Jul 2021 21:44:59 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 7156A40151 for ; Fri, 16 Jul 2021 21:44:57 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 16GJfM1j029099; Fri, 16 Jul 2021 12:44:56 -0700 Received: from nam04-mw2-obe.outbound.protection.outlook.com (mail-mw2nam08lp2171.outbound.protection.outlook.com [104.47.73.171]) by mx0a-0016f401.pphosted.com with ESMTP id 39tw30m2h0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 16 Jul 2021 12:44:56 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YoOFBPp71qZo9I/5RngLPECdK1wDgLwK0TS5KCrj4oSQFaNhoG8FP+yHxvcGjjQhG2X8pI/TvG181Jnn8P0u97Fg+K3RrfLtXt/qfpDb+OBWrwD7mcY0RTZ0VExcJiom/nlSckSa7jhN+goAcCU+Lq/PCuqEA2uR7QsNE+FGmrYo8sdgtCE9vTqbI55CMiwTf2wJE8lQqGvOJOSf9RxgA+whmEog7kOtoDv6bEVJlpDDkCTQwWaMFFx7Ch0lmktvcee/HnlEfsJobp3fFpJQtKPCKgZVCZJUpVdKc85xKwf48cjzeaQ2c6+r9NhP0RSmE6NGI7a/3CR5Q3coBT1S+g== 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=I5+jNcGCA/OSZ1bwFGjSDtwjSkHVNN8/VvSdUtSPu0c=; b=gib3kaUec23Sat/Kj4FvEeaAqmiS3HeJM4Er7zHzoGsUCb2c/3x+2aj/m2eCZLQ4wZ7l8qEjXE5fVNdXndwgcAD641AnebsBweMFz5QVhemwhay0Kvxr8ozR/BdVy6zjnpzVtmVQCKxxE+WpFJG4n88HKJdbZ3500i3DzjjSQdhevkBGCnotqCyA9dVj/YXLvF/J95qQE/gd0phJs7KA10v0Uyx3gcTpghcZZC0EETaug3sUvp0xNo3xcB1t5P3xtSExNIYhjjXGKBD+GA2AIYFauINK9n5IA+g6jMZT7sf62ibSj/2kwN+fYZnVLFzzXldcG9+UncfkjSYH9ebNmA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=I5+jNcGCA/OSZ1bwFGjSDtwjSkHVNN8/VvSdUtSPu0c=; b=aAbK7CAleDccz+zzDv/DZM0xizKfpZBiTf6tphDnqBgHjz03hSIHbUtkDM9w8SKwP7hqyJIG1RMljlrrMLkbHYBxoQ/lEm9CT9rfFFYIAvKrLqG42QVeQw3jNng6drCUSi8OoUJKMCue4LqUpXAhfFYpIcs3gfToVMYhlzkawp4= Received: from CO6PR18MB4484.namprd18.prod.outlook.com (2603:10b6:5:359::9) by CO1PR18MB4634.namprd18.prod.outlook.com (2603:10b6:303:e1::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.23; Fri, 16 Jul 2021 19:44:54 +0000 Received: from CO6PR18MB4484.namprd18.prod.outlook.com ([fe80::1455:9a67:a6e7:e557]) by CO6PR18MB4484.namprd18.prod.outlook.com ([fe80::1455:9a67:a6e7:e557%6]) with mapi id 15.20.4331.028; Fri, 16 Jul 2021 19:44:54 +0000 From: Akhil Goyal To: Shiri Kuzin , "dev@dpdk.org" CC: "matan@nvidia.com" , "suanmingm@nvidia.com" , "david.marchand@redhat.com" Thread-Topic: [EXT] [PATCH v8 06/16] crypto/mlx5: add dev stop and start operations Thread-Index: AQHXeZhdlh8vVpfhIE2O4Hh6sfIjAatGAqGg Date: Fri, 16 Jul 2021 19:44:54 +0000 Message-ID: References: <20210715150817.51485-1-shirik@nvidia.com> <20210715164126.54073-1-shirik@nvidia.com> <20210715164126.54073-7-shirik@nvidia.com> In-Reply-To: <20210715164126.54073-7-shirik@nvidia.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: nvidia.com; dkim=none (message not signed) header.d=none;nvidia.com; dmarc=none action=none header.from=marvell.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 1826b22f-d9a3-4138-2a03-08d948922f32 x-ms-traffictypediagnostic: CO1PR18MB4634: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5236; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: vu4VPStX0g9f81jziMdJW3Bw1PK9H68od/XltOd9FDf+qvNuFHoFJSRUmT8yWcEZ8Q+4ptsUUvfD8mvuavkf/8xYjFyuqwRWzQSMHdwovRsqTX/9aRLOj0uMQtUha0GzmGdGfOgOlsc1o5K9HgyOHOxRnk63Fwq+8fRijVW9jm5tDbI3RTj3f0rPvDYlX/pZVXmZySnedCJ/w/JoErxl7WtvQiZ+4ofigCV4IlwsUJCe0ilgWaTEUGhkaNZpHM5H8GX/fH3iMwolWoNGsePa1Ub67JttfGo8SX36w9V8P5JM+O4N+Ag9QRTJQaMf9XtiJwTxKrfzzgpQQoSijVNNaVt2cdhkJZenVrVTxC6mKLB8eqxjRx/T5sQ/3bSVqtNpuqmZAGDXmZLutomVwha2cxuBJ1wGCFIBqliCGznTPTBEShneNRNZ6lFLaqW1LTD2IDSiKG9l2LtD9PrXs0XEjUbF6d62DMggoX+8O8FeWYzDZJVbrrDdBj8QgZzNcdg8eji9ow9Ql/T8PKRyEDVVBgg9wUSBYNJZ3zncnOQA66MPDWDRB4/o4snV45gZbrjn2wMG7X71JCu0xa7X1vhFPHy968gValK6RoSZOvpZQ9N2SqsSuapRGcyRLm/z+6pmBL8u8+LDjePih3kYbQM+SalZh0ebl6kasqnvQgG25URCVIwQJ1spy+f3TM4y7isynNcO1D124SasSwIb439/WQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CO6PR18MB4484.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(5660300002)(2906002)(7696005)(316002)(6506007)(8936002)(9686003)(26005)(71200400001)(122000001)(55016002)(508600001)(76116006)(66556008)(66476007)(83380400001)(86362001)(66446008)(54906003)(4326008)(33656002)(64756008)(110136005)(66946007)(52536014)(186003)(8676002)(38100700002)(38070700004); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?J9Bls2Vq0TGLjaicaP9qVs275V4Yx96XDCD4sJrvRl6sLbRP74yYTsDj3cQG?= =?us-ascii?Q?Ggt2jXgZImPogQAp1xLVKR5ZaGK/vG9xNG+fKK2HN8cUTUS4U+lvlwB3pcAe?= =?us-ascii?Q?+FMQfsK/pIKYkL55AROQ7xlR7xzsClDae0frW4PIIY4sDyASD4yCDBMVCp42?= =?us-ascii?Q?qgRoh4PBvleTwHStOW6HfBlu0p+a6dPxS07guYAQqNG311gobQD5B2HkxoDq?= =?us-ascii?Q?D1acHTKjjG4l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?= =?us-ascii?Q?CBDkV1qS6UB8EqKGiIDE+hH58aEdcOg4bISgx1tG7sAuJusWuJ7pIoNE/8Rd?= =?us-ascii?Q?dD6AzlCRd56WfsoByLvQAkXIeaTdK8VU6p1VPILyDO54/z18xBqqa4ZOtFPr?= =?us-ascii?Q?1G60FBoPbPFmijVD/diBb0vtCT5UFTrHEcU4VaBJuZ8jqVlDMwR3nODT3Zy+?= =?us-ascii?Q?8QacsvL9EULbNNvjq8i8SO9P?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: marvell.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CO6PR18MB4484.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1826b22f-d9a3-4138-2a03-08d948922f32 X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Jul 2021 19:44:54.1756 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: gTrx0TvdrVmN1yoTVU4S6MV7HqpRzjWUExj9LAnkfsN7tRff4wHgtmJ5UzbeESQ9RH4bl1anHUHqvOXoqR6Bog== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR18MB4634 X-Proofpoint-ORIG-GUID: 5090hCicwEADu8RYfVN1VGq5r53xxT24 X-Proofpoint-GUID: 5090hCicwEADu8RYfVN1VGq5r53xxT24 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.790 definitions=2021-07-16_09:2021-07-16, 2021-07-16 signatures=0 Subject: Re: [dpdk-dev] [EXT] [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. >=20 > Both functions set the dev parameter as used and return 0. >=20 > Signed-off-by: Shiri Kuzin > Acked-by: Matan Azrad > --- > drivers/crypto/mlx5/mlx5_crypto.c | 17 +++++++++++++++-- > 1 file changed, 15 insertions(+), 2 deletions(-) >=20 > 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; > } >=20 > +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, >=20 > static struct rte_cryptodev_ops mlx5_crypto_ops =3D { > .dev_configure =3D mlx5_crypto_dev_configure, > - .dev_start =3D NULL, > - .dev_stop =3D NULL, > + .dev_start =3D mlx5_crypto_dev_start, > + .dev_stop =3D mlx5_crypto_dev_stop, > .dev_close =3D mlx5_crypto_dev_close, > .dev_infos_get =3D mlx5_crypto_dev_infos_get, > .stats_get =3D NULL, This patch could be squashed in your basic operations patch as these ops ar= e not doing=20 Anything.