[dpdk-dev] [PATCH v4 2/2] test/crypto: add GMAC SGL tests

De Lara Guarch, Pablo pablo.de.lara.guarch at intel.com
Mon Oct 12 11:38:22 CEST 2020


Hi Akhil,

> -----Original Message-----
> From: Akhil Goyal <akhil.goyal at nxp.com>
> Sent: Friday, October 9, 2020 7:36 PM
> To: De Lara Guarch, Pablo <pablo.de.lara.guarch at intel.com>; Doherty, Declan
> <declan.doherty at intel.com>
> Cc: dev at dpdk.org
> Subject: RE: [dpdk-dev] [PATCH v4 2/2] test/crypto: add GMAC SGL tests
> 
> Hi Pablo,
> 
> > Hi Akhil,
> >
> > > > diff --git a/app/test/test_cryptodev.h b/app/test/test_cryptodev.h
> > > > index 41542e055..57003733b 100644
> > > > --- a/app/test/test_cryptodev.h
> > > > +++ b/app/test/test_cryptodev.h
> > > > @@ -17,9 +17,9 @@
> > > >  #define DEFAULT_NUM_QPS_PER_QAT_DEVICE  (2)
> > > >  #define DEFAULT_BURST_SIZE              (64)
> > > >  #define DEFAULT_NUM_XFORMS              (2)
> > > > -#define NUM_MBUFS                       (8191)
> > > > +#define NUM_MBUFS                       (4095)
> > > >  #define MBUF_CACHE_SIZE                 (256)
> > > > -#define MBUF_DATAPAYLOAD_SIZE		(2048 +
> > > > DIGEST_BYTE_LENGTH_SHA512)
> > > > +#define MBUF_DATAPAYLOAD_SIZE		(4096 +
> > > > DIGEST_BYTE_LENGTH_SHA512)
> > > >  #define MBUF_SIZE			(sizeof(struct rte_mbuf) + \
> > > >  		RTE_PKTMBUF_HEADROOM + MBUF_DATAPAYLOAD_SIZE)
> > > >
> > > Why are these changes done? Any specific requirement for GMAC? I
> > > believe
> > > 2048 is also good enough.
> >
> > I needed to reduce the maximum number of segments for the SGL tests,
> > since Intel QAT PMD does not support more than 16, and this way both
> > PMDs can be tested with the new tests.
> >
> What is your packet size. I believe 16 segments of 2K means 32KB of data which
> Should be more than enough for testing. Right? Can we reduce the length of
> vector?
> 
> But by changing the MBUF_DATAPAYLOAD_SIZE to 4K would change the
> behavior of Other cases. Isn't it?

Right. I will send another version reducing the length of the vector (I'll add another test case with 32KB of data,
instead of 64KB, so we don't need to change the mbuf size).

Thanks,
Pablo

> 
> Regards,
> Akhil
> 



More information about the dev mailing list