DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Gujjar, Abhinandan S" <abhinandan.gujjar@intel.com>
To: "De Lara Guarch, Pablo" <pablo.de.lara.guarch@intel.com>,
	"jerin.jacob@caviumnetworks.com" <jerin.jacob@caviumnetworks.com>,
	"hemant.agrawal@nxp.com" <hemant.agrawal@nxp.com>,
	"akhil.goyal@nxp.com" <akhil.goyal@nxp.com>,
	"dev@dpdk.org" <dev@dpdk.org>
Cc: "Vangati, Narender" <narender.vangati@intel.com>,
	"Rao, Nikhil" <nikhil.rao@intel.com>,
	"Eads, Gage" <gage.eads@intel.com>
Subject: Re: [dpdk-dev] [v5,4/5] test: add event crypto adapter auto-test
Date: Fri, 11 May 2018 12:56:21 +0000	[thread overview]
Message-ID: <5612CB344B05EE4F95FC5B729939F78070705559@PGSMSX102.gar.corp.intel.com> (raw)
In-Reply-To: <E115CCD9D858EF4F90C690B0DCB4D8976CD07D60@IRSMSX108.ger.corp.intel.com>

Hi Pablo,

> -----Original Message-----
> From: De Lara Guarch, Pablo
> Sent: Thursday, May 10, 2018 9:23 PM
> To: Gujjar, Abhinandan S <abhinandan.gujjar@intel.com>;
> jerin.jacob@caviumnetworks.com; hemant.agrawal@nxp.com;
> akhil.goyal@nxp.com; dev@dpdk.org
> Cc: Vangati, Narender <narender.vangati@intel.com>; Gujjar, Abhinandan S
> <abhinandan.gujjar@intel.com>; Rao, Nikhil <nikhil.rao@intel.com>; Eads,
> Gage <gage.eads@intel.com>
> Subject: RE: [dpdk-dev] [v5,4/5] test: add event crypto adapter auto-test
> 
> 
> 
> > -----Original Message-----
> > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Abhinandan
> Gujjar
> > Sent: Wednesday, May 9, 2018 9:18 AM
> > To: jerin.jacob@caviumnetworks.com; hemant.agrawal@nxp.com;
> > akhil.goyal@nxp.com; dev@dpdk.org
> > Cc: Vangati, Narender <narender.vangati@intel.com>; Gujjar, Abhinandan
> > S <abhinandan.gujjar@intel.com>; Rao, Nikhil <nikhil.rao@intel.com>;
> > Eads, Gage <gage.eads@intel.com>
> > Subject: [dpdk-dev] [v5,4/5] test: add event crypto adapter auto-test
> >
> > Added testsuite to test the crypto adapter functionality.
> > The testsuite detects the HW/SW event & crypto devices and their
> capabilities.
> > Depending upon the capability, adapter is confgured and modes are
> tested.
> >
> > Signed-off-by: Abhinandan Gujjar <abhinandan.gujjar@intel.com>
> > Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
> 
> ...
> 
> > +	/*
> > +	 * Create mempool with maximum number of sessions * 2,
> > +	 * to include the session headers & private data
> > +	 */
> > +	session_size =
> rte_cryptodev_get_private_session_size(TEST_CDEV_ID);
> > +	session_size += sizeof(union rte_event_crypto_metadata);
> > +
> > +	params.session_mpool = rte_mempool_create(
> > +				"CRYPTO_ADAPTER_SESSION_MP",
> > +				info.sym.max_nb_sessions * 2,
> > +				session_size,
> > +				0, 0, NULL, NULL, NULL,
> > +				NULL, SOCKET_ID_ANY,
> > +				0);
> 
> I am seeing an icc compilation issue here:
> 
> test/test/test_event_crypto_adapter.c(530): error #592: variable "info" is
> used before its v                                                                 alue is set
>                                 info.sym.max_nb_sessions * 2,
> 
> Looking at this, info gets filled below, after using it in mempool_create, which
> looks wrong.
> But also, keep in mind that we are going to remove max_nb_sessions, since
> this was used when the session pool was created inside the PMD.
> 
> I suggest to set your own number of session in the test and not use
> max_nb_sessions.

Thanks for reporting this. I will send a separate patch to fix this.

Regards
Abhinandan

> 
> Thanks,
> Pablo

  reply	other threads:[~2018-05-11 12:56 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-09  8:17 [dpdk-dev] [v5,0/5] eventdev: cover letter - crypto adapter Abhinandan Gujjar
2018-05-09  8:17 ` [dpdk-dev] [v5,1/5] eventdev: introduce event " Abhinandan Gujjar
2018-05-09  8:17 ` [dpdk-dev] [v5, 2/5] eventdev: add APIs and PMD callbacks for " Abhinandan Gujjar
2018-05-09  8:17 ` [dpdk-dev] [v5,3/5] eventdev: add crypto adapter implementation Abhinandan Gujjar
2018-05-09  8:18 ` [dpdk-dev] [v5,4/5] test: add event crypto adapter auto-test Abhinandan Gujjar
2018-05-10 15:52   ` De Lara Guarch, Pablo
2018-05-11 12:56     ` Gujjar, Abhinandan S [this message]
2018-05-09  8:18 ` [dpdk-dev] [v5,5/5] doc: add event crypto adapter documentation Abhinandan Gujjar
2018-05-09 10:28 ` [dpdk-dev] [v5,0/5] eventdev: cover letter - crypto adapter Jerin Jacob
2018-05-09 10:33 ` Jerin Jacob

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=5612CB344B05EE4F95FC5B729939F78070705559@PGSMSX102.gar.corp.intel.com \
    --to=abhinandan.gujjar@intel.com \
    --cc=akhil.goyal@nxp.com \
    --cc=dev@dpdk.org \
    --cc=gage.eads@intel.com \
    --cc=hemant.agrawal@nxp.com \
    --cc=jerin.jacob@caviumnetworks.com \
    --cc=narender.vangati@intel.com \
    --cc=nikhil.rao@intel.com \
    --cc=pablo.de.lara.guarch@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).