[PATCH 1/3] compress/uadk: Introduce UADK compression driver

Konstantin Ananyev konstantin.ananyev at huawei.com
Thu May 23 18:30:30 CEST 2024



> -----Original Message-----
> From: Stephen Hemminger <stephen at networkplumber.org>
> Sent: Thursday, May 23, 2024 5:21 PM
> To: Zhangfei Gao <zhangfei.gao at linaro.org>
> Cc: Akhil Goyal <gakhil at marvell.com>; Fan Zhang <fanzhang.oss at gmail.com>; Ashish Gupta <ashish.gupta at marvell.com>;
> dev at dpdk.org
> Subject: Re: [PATCH 1/3] compress/uadk: Introduce UADK compression driver
> 
> On Mon, 22 Apr 2024 14:31:00 +0000
> Zhangfei Gao <zhangfei.gao at linaro.org> wrote:
> 
> > +static struct rte_compressdev_ops uadk_compress_pmd_ops = {
> > +		.dev_configure		= NULL,
> > +		.dev_start		= NULL,
> > +		.dev_stop		= NULL,
> > +		.dev_close		= NULL,
> > +		.stats_get		= NULL,
> > +		.stats_reset		= NULL,
> > +		.dev_infos_get		= NULL,
> > +		.queue_pair_setup	= NULL,
> > +		.queue_pair_release	= NULL,
> > +		.private_xform_create	= NULL,
> > +		.private_xform_free	= NULL,
> > +		.stream_create		= NULL,
> > +		.stream_free		= NULL,
> > +};
> 
> If you just used { } then all the elements are initialized to NULL anyway

Or even 
static struct rte_compressdev_ops uadk_compress_pmd_ops;
should do the same.
 



More information about the dev mailing list