DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] compressdev: clarify destination buffer size for corner case
@ 2019-07-25 17:04 Fiona Trahe
  2019-07-26  8:22 ` Dybkowski, AdamX
  2019-07-27  4:21 ` [dpdk-dev] [EXT] " Shally Verma
  0 siblings, 2 replies; 5+ messages in thread
From: Fiona Trahe @ 2019-07-25 17:04 UTC (permalink / raw)
  To: dev; +Cc: akhil.goyal, fiona.trahe, shallyv

Clarify the corner case with incompressible data
whereby the output can actually be greater than the
uncompressed data.

Signed-off-by: Fiona Trahe <fiona.trahe@intel.com>
---
 lib/librte_compressdev/rte_comp.h |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/lib/librte_compressdev/rte_comp.h b/lib/librte_compressdev/rte_comp.h
index b7474c4..95306c5 100644
--- a/lib/librte_compressdev/rte_comp.h
+++ b/lib/librte_compressdev/rte_comp.h
@@ -323,6 +323,12 @@ struct rte_comp_op {
 	 * If the output data is expected to be bigger than this a chain of
 	 * mbufs can be passed to the PMD if the PMD's capabilities indicate
 	 * it supports this.
+	 *
+	 * @note, if incompressible data is passed to an engine for compression
+	 * using RTE_COMP_ALGO_DEFLATE, it's possible for the output data
+	 * to be larger than the uncompressed data, due to the inclusion
+	 * of the DEFLATE header blocks. The size of m_dst should accommodate
+	 * this, else OUT_OF_SPACE errors can be expected in this case.
 	 */
 
 	struct {
-- 
1.7.0.7


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

* Re: [dpdk-dev] [PATCH] compressdev: clarify destination buffer size for corner case
  2019-07-25 17:04 [dpdk-dev] [PATCH] compressdev: clarify destination buffer size for corner case Fiona Trahe
@ 2019-07-26  8:22 ` Dybkowski, AdamX
  2019-07-26 12:46   ` Akhil Goyal
  2019-07-27  4:21 ` [dpdk-dev] [EXT] " Shally Verma
  1 sibling, 1 reply; 5+ messages in thread
From: Dybkowski, AdamX @ 2019-07-26  8:22 UTC (permalink / raw)
  To: Trahe, Fiona, dev; +Cc: akhil.goyal, Trahe, Fiona, shallyv

> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Fiona Trahe
> Sent: Thursday, 25 July, 2019 19:04
> To: dev@dpdk.org
> Cc: akhil.goyal@nxp.com; Trahe, Fiona <fiona.trahe@intel.com>;
> shallyv@marvell.com
> Subject: [dpdk-dev] [PATCH] compressdev: clarify destination buffer size for
> corner case
> 
> Clarify the corner case with incompressible data whereby the output can
> actually be greater than the uncompressed data.
> 
> Signed-off-by: Fiona Trahe <fiona.trahe@intel.com>
> ---

Acked-by: Adam Dybkowski <adamx.dybkowski@intel.com>


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

* Re: [dpdk-dev] [PATCH] compressdev: clarify destination buffer size for corner case
  2019-07-26  8:22 ` Dybkowski, AdamX
@ 2019-07-26 12:46   ` Akhil Goyal
  0 siblings, 0 replies; 5+ messages in thread
From: Akhil Goyal @ 2019-07-26 12:46 UTC (permalink / raw)
  To: Dybkowski, AdamX, Trahe, Fiona, dev; +Cc: Trahe, Fiona, shallyv

Hi Shally,

> >
> > Clarify the corner case with incompressible data whereby the output can
> > actually be greater than the uncompressed data.
> >
> > Signed-off-by: Fiona Trahe <fiona.trahe@intel.com>
> > ---
> 
> Acked-by: Adam Dybkowski <adamx.dybkowski@intel.com>

Are you Ok with this change at this point in lib? Normally no change is accepted in lib beyond RC2, but since this is only changing the comments. We can take it if it fine with multiple contributors and not just Intel.

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

* Re: [dpdk-dev] [EXT] [PATCH] compressdev: clarify destination buffer size for corner case
  2019-07-25 17:04 [dpdk-dev] [PATCH] compressdev: clarify destination buffer size for corner case Fiona Trahe
  2019-07-26  8:22 ` Dybkowski, AdamX
@ 2019-07-27  4:21 ` Shally Verma
  2019-07-29  8:48   ` Akhil Goyal
  1 sibling, 1 reply; 5+ messages in thread
From: Shally Verma @ 2019-07-27  4:21 UTC (permalink / raw)
  To: Fiona Trahe, dev; +Cc: akhil.goyal



> -----Original Message-----
> From: Fiona Trahe <fiona.trahe@intel.com>
> Sent: Thursday, July 25, 2019 10:34 PM
> To: dev@dpdk.org
> Cc: akhil.goyal@nxp.com; fiona.trahe@intel.com; Shally Verma
> <shallyv@marvell.com>
> Subject: [EXT] [PATCH] compressdev: clarify destination buffer size for
> corner case
> 
> External Email
> 
> ----------------------------------------------------------------------
> Clarify the corner case with incompressible data whereby the output can
> actually be greater than the uncompressed data.
> 
> Signed-off-by: Fiona Trahe <fiona.trahe@intel.com>
> ---
>  lib/librte_compressdev/rte_comp.h |    6 ++++++
>  1 files changed, 6 insertions(+), 0 deletions(-)
> 
> diff --git a/lib/librte_compressdev/rte_comp.h
> b/lib/librte_compressdev/rte_comp.h
> index b7474c4..95306c5 100644
> --- a/lib/librte_compressdev/rte_comp.h
> +++ b/lib/librte_compressdev/rte_comp.h
> @@ -323,6 +323,12 @@ struct rte_comp_op {
>  	 * If the output data is expected to be bigger than this a chain of
>  	 * mbufs can be passed to the PMD if the PMD's capabilities indicate
>  	 * it supports this.
> +	 *
> +	 * @note, if incompressible data is passed to an engine for
> compression
> +	 * using RTE_COMP_ALGO_DEFLATE, it's possible for the output data
> +	 * to be larger than the uncompressed data, due to the inclusion
> +	 * of the DEFLATE header blocks. The size of m_dst should
> accommodate
> +	 * this, else OUT_OF_SPACE errors can be expected in this case.
>  	 */
> 
>  	struct {
> --
> 1.7.0.7
Acked-by: Shally Verma <shallyv@marvell.com>

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

* Re: [dpdk-dev] [EXT] [PATCH] compressdev: clarify destination buffer size for corner case
  2019-07-27  4:21 ` [dpdk-dev] [EXT] " Shally Verma
@ 2019-07-29  8:48   ` Akhil Goyal
  0 siblings, 0 replies; 5+ messages in thread
From: Akhil Goyal @ 2019-07-29  8:48 UTC (permalink / raw)
  To: Shally Verma, Fiona Trahe, dev


> >
> > ----------------------------------------------------------------------
> > Clarify the corner case with incompressible data whereby the output can
> > actually be greater than the uncompressed data.
> >
> > Signed-off-by: Fiona Trahe <fiona.trahe@intel.com>
> > ---
> >  lib/librte_compressdev/rte_comp.h |    6 ++++++
> >  1 files changed, 6 insertions(+), 0 deletions(-)
> >
> > diff --git a/lib/librte_compressdev/rte_comp.h
> > b/lib/librte_compressdev/rte_comp.h
> > index b7474c4..95306c5 100644
> > --- a/lib/librte_compressdev/rte_comp.h
> > +++ b/lib/librte_compressdev/rte_comp.h
> > @@ -323,6 +323,12 @@ struct rte_comp_op {
> >  	 * If the output data is expected to be bigger than this a chain of
> >  	 * mbufs can be passed to the PMD if the PMD's capabilities indicate
> >  	 * it supports this.
> > +	 *
> > +	 * @note, if incompressible data is passed to an engine for
> > compression
> > +	 * using RTE_COMP_ALGO_DEFLATE, it's possible for the output data
> > +	 * to be larger than the uncompressed data, due to the inclusion
> > +	 * of the DEFLATE header blocks. The size of m_dst should
> > accommodate
> > +	 * this, else OUT_OF_SPACE errors can be expected in this case.
> >  	 */
> >
> >  	struct {
> > --
> > 1.7.0.7
> Acked-by: Shally Verma <shallyv@marvell.com>

Applied to dpdk-next-crypto

Thanks.

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

end of thread, other threads:[~2019-07-29  8:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-25 17:04 [dpdk-dev] [PATCH] compressdev: clarify destination buffer size for corner case Fiona Trahe
2019-07-26  8:22 ` Dybkowski, AdamX
2019-07-26 12:46   ` Akhil Goyal
2019-07-27  4:21 ` [dpdk-dev] [EXT] " Shally Verma
2019-07-29  8:48   ` Akhil Goyal

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).