DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Varghese, Vipin" <vipin.varghese@intel.com>
To: "Daly, Lee" <lee.daly@intel.com>,
	"akhil.goyal@nxp.com" <akhil.goyal@nxp.com>
Cc: "dev@dpdk.org" <dev@dpdk.org>, "Daly, Lee" <lee.daly@intel.com>
Subject: Re: [dpdk-dev] [PATCH v4 1/3] compress/isal: enable checksum support in	driver
Date: Mon, 17 Dec 2018 08:19:58 +0000	[thread overview]
Message-ID: <4C9E0AB70F954A408CC4ADDBF0F8FA7D4D2DC5B7@BGSMSX101.gar.corp.intel.com> (raw)
In-Reply-To: <1544781564-63598-1-git-send-email-lee.daly@intel.com>

Hi Lee,

Apologies if the logic is already done for my query

snipped
> +		/* Set private xform checksum */
> +		switch (xform->compress.chksum) {
> +		/* Raw deflate by default */
Does the user have to choose RTE_COMP_CHECKSUM_NONE while creating compress/isal instance?

> +		case(RTE_COMP_CHECKSUM_NONE):
> +			priv_xform->compress.chksum = IGZIP_DEFLATE;
> +			break;
> +		case(RTE_COMP_CHECKSUM_CRC32):
> +			priv_xform->compress.chksum = IGZIP_GZIP_NO_HDR;
> +			break;
> +		case(RTE_COMP_CHECKSUM_ADLER32):
> +			priv_xform->compress.chksum = IGZIP_ZLIB_NO_HDR;
> +			break;
> +		case(RTE_COMP_CHECKSUM_CRC32_ADLER32):
> +			ISAL_PMD_LOG(ERR, "Combined CRC and ADLER
> checksum not"
> +					" supported\n");
> +			return -ENOTSUP;
> +		default:
> +			ISAL_PMD_LOG(ERR, "Checksum type not
> supported\n");
> +			return -ENOTSUP;
Do we not fall back to RTE_COMP_CHECKSUM_NONE if the configuration is wrong and report warning?

snipped

  parent reply	other threads:[~2018-12-17  8:20 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <11544697752-156863-1-git-send-email-lee.daly@intel.com>
2018-12-14  9:59 ` Lee Daly
2018-12-14  9:59   ` [dpdk-dev] [PATCH v4 2/3] test/compress: add checksum tests Lee Daly
2018-12-14  9:59   ` [dpdk-dev] [PATCH v4 3/3] doc: update ISA-L guide to reflect checksum support Lee Daly
2018-12-17  8:19   ` Varghese, Vipin [this message]
2018-12-17  9:20     ` [dpdk-dev] [PATCH v4 1/3] compress/isal: enable checksum support in driver Daly, Lee
2018-12-17 12:33       ` Varghese, Vipin
2018-12-19 15:48   ` [dpdk-dev] [PATCH v5 " Lee Daly
2018-12-19 15:48     ` [dpdk-dev] [PATCH v5 2/3] test/compress: add checksum tests Lee Daly
2018-12-19 15:48     ` [dpdk-dev] [PATCH v5 3/3] doc: update ISA-L guide to reflect checksum support Lee Daly
2019-01-08 10:29     ` [dpdk-dev] [PATCH v6 1/2] test/compress: add checksum tests Lee Daly
2019-01-08 10:29       ` [dpdk-dev] [PATCH v6 2/2] compress/isal: enable checksum support in driver Lee Daly
2019-01-08 14:58       ` [dpdk-dev] [PATCH v6 1/2] test/compress: add checksum tests De Lara Guarch, Pablo
2019-01-08 16:20       ` [dpdk-dev] [PATCH v7 " Lee Daly
2019-01-08 16:20         ` [dpdk-dev] [PATCH v7 2/2] compress/isal: enable checksum support in driver Lee Daly
2019-01-08 17:19         ` [dpdk-dev] [PATCH v7 1/2] test/compress: add checksum tests De Lara Guarch, Pablo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4C9E0AB70F954A408CC4ADDBF0F8FA7D4D2DC5B7@BGSMSX101.gar.corp.intel.com \
    --to=vipin.varghese@intel.com \
    --cc=akhil.goyal@nxp.com \
    --cc=dev@dpdk.org \
    --cc=lee.daly@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).