DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] DPDK compress API - questions
@ 2021-01-06 15:57 Matan Azrad
  2021-01-06 16:05 ` Trahe, Fiona
  0 siblings, 1 reply; 2+ messages in thread
From: Matan Azrad @ 2021-01-06 15:57 UTC (permalink / raw)
  To: Trahe, Fiona, ashish.gupta; +Cc: dev, NBU-Contact-Thomas Monjalon

Hi Fiona, Ashish

I'm going to add new HW offload compress PMD for mlx5 devices in 21.02.

I have some questions on the API:


#define RTE_COMP_FF_NONCOMPRESSED_BLOCKS        (1ULL << 11)

/**< Creation of non-compressed blocks using RTE_COMP_LEVEL_NONE is supported */



  1.  What does it mean non-compressed block ? DMA?
  2.  Does Using RTE_COMP_LEVEL_NONE or RTE_COMP_ALGO_NULL the same?

Probably I will add more question later...

Thanks
Matan

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dpdk-dev] DPDK compress API - questions
  2021-01-06 15:57 [dpdk-dev] DPDK compress API - questions Matan Azrad
@ 2021-01-06 16:05 ` Trahe, Fiona
  0 siblings, 0 replies; 2+ messages in thread
From: Trahe, Fiona @ 2021-01-06 16:05 UTC (permalink / raw)
  To: Matan Azrad, ashish.gupta; +Cc: dev, NBU-Contact-Thomas Monjalon, Trahe, Fiona



From: Matan Azrad <matan@nvidia.com> 
Sent: Wednesday, January 6, 2021 3:57 PM
To: Trahe, Fiona <fiona.trahe@intel.com>; ashish.gupta@marvell.com
Cc: dev@dpdk.org; NBU-Contact-Thomas Monjalon <thomas@monjalon.net>
Subject: DPDK compress API - questions

Hi Fiona, Ashish

I'm going to add new HW offload compress PMD for mlx5 devices in 21.02.

I have some questions on the API:

#define RTE_COMP_FF_NONCOMPRESSED_BLOCKS        (1ULL << 11)
/**< Creation of non-compressed blocks using RTE_COMP_LEVEL_NONE is supported */


1. What does it mean non-compressed block ? DMA?
[Fiona] Not exactly. E.g. for Deflate, if the output is non-compressed blocks, it still has the deflate headers.
So is not a direct DMA of the input data. As this may not be supported by all PMDs it is exposed in a feature flag.

2. Does Using RTE_COMP_LEVEL_NONE or RTE_COMP_ALGO_NULL the same?
[Fiona] No. ALGO_NULL would be DMA.
/**< No compression.
	 * Pass-through, data is copied unchanged from source buffer to
	 * destination buffer.
	 */
LEVEL_NONE should output the data in the correct format for the specified algorithm.

Probably I will add more question later.

Thanks
Matan

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-01-06 16:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-06 15:57 [dpdk-dev] DPDK compress API - questions Matan Azrad
2021-01-06 16:05 ` Trahe, Fiona

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).