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

Tyler Retzlaff roretzla at linux.microsoft.com
Thu May 23 18:42:53 CEST 2024


On Thu, May 23, 2024 at 04:30:30PM +0000, Konstantin Ananyev wrote:
> 
> 
> > -----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.

+1

>  


More information about the dev mailing list