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 14A56440A7; Thu, 23 May 2024 18:30:33 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 03C83402DD; Thu, 23 May 2024 18:30:33 +0200 (CEST) Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by mails.dpdk.org (Postfix) with ESMTP id F02EF4026C for ; Thu, 23 May 2024 18:30:31 +0200 (CEST) Received: from mail.maildlp.com (unknown [172.18.186.216]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4VlYTR3qCgz6J6cH; Fri, 24 May 2024 00:26:35 +0800 (CST) Received: from frapeml100008.china.huawei.com (unknown [7.182.85.131]) by mail.maildlp.com (Postfix) with ESMTPS id C10B11400DB; Fri, 24 May 2024 00:30:30 +0800 (CST) Received: from frapeml500007.china.huawei.com (7.182.85.172) by frapeml100008.china.huawei.com (7.182.85.131) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Thu, 23 May 2024 18:30:30 +0200 Received: from frapeml500007.china.huawei.com ([7.182.85.172]) by frapeml500007.china.huawei.com ([7.182.85.172]) with mapi id 15.01.2507.039; Thu, 23 May 2024 18:30:30 +0200 From: Konstantin Ananyev To: Stephen Hemminger , Zhangfei Gao CC: Akhil Goyal , Fan Zhang , Ashish Gupta , "dev@dpdk.org" Subject: RE: [PATCH 1/3] compress/uadk: Introduce UADK compression driver Thread-Topic: [PATCH 1/3] compress/uadk: Introduce UADK compression driver Thread-Index: AQHalMHVm0CDON0TNECvSexXnkHHh7GlD0uAgAAkExA= Date: Thu, 23 May 2024 16:30:30 +0000 Message-ID: References: <20240422143102.251-1-zhangfei.gao@linaro.org> <20240422143102.251-2-zhangfei.gao@linaro.org> <20240523092047.79bb2262@hermes.local> In-Reply-To: <20240523092047.79bb2262@hermes.local> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.81.194.119] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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 > -----Original Message----- > From: Stephen Hemminger > Sent: Thursday, May 23, 2024 5:21 PM > To: Zhangfei Gao > Cc: Akhil Goyal ; Fan Zhang ;= Ashish Gupta ; > dev@dpdk.org > Subject: Re: [PATCH 1/3] compress/uadk: Introduce UADK compression driver >=20 > On Mon, 22 Apr 2024 14:31:00 +0000 > Zhangfei Gao wrote: >=20 > > +static struct rte_compressdev_ops uadk_compress_pmd_ops =3D { > > + .dev_configure =3D NULL, > > + .dev_start =3D NULL, > > + .dev_stop =3D NULL, > > + .dev_close =3D NULL, > > + .stats_get =3D NULL, > > + .stats_reset =3D NULL, > > + .dev_infos_get =3D NULL, > > + .queue_pair_setup =3D NULL, > > + .queue_pair_release =3D NULL, > > + .private_xform_create =3D NULL, > > + .private_xform_free =3D NULL, > > + .stream_create =3D NULL, > > + .stream_free =3D NULL, > > +}; >=20 > If you just used { } then all the elements are initialized to NULL anyway Or even=20 static struct rte_compressdev_ops uadk_compress_pmd_ops; should do the same. =20