[dpdk-dev] [PATCH 2/2] app/crypto-perf: fix memcpy source range
Jerin Jacob
jerin.jacob at caviumnetworks.com
Wed May 16 13:59:16 CEST 2018
> > ---
> > test/test/test_cryptodev.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/test/test/test_cryptodev.c b/test/test/test_cryptodev.c index
> > 680082f2b..169ecdef3 100644
> > --- a/test/test/test_cryptodev.c
> > +++ b/test/test/test_cryptodev.c
> > @@ -6616,7 +6616,7 @@ test_multi_session_random_usage(void)
> > ts_params->session_mpool);
> >
> > rte_memcpy(&ut_paramz[i].ut_params, &testsuite_params,
> > - sizeof(struct crypto_unittest_params));
> > + sizeof(struct crypto_testsuite_params));
>
> Actually, the source address is wrong.
Makes sense.
> The fix should be:
>
> - rte_memcpy(&ut_paramz[i].ut_params, &testsuite_params,
> + rte_memcpy(&ut_paramz[i].ut_params, &unittest_params,
>
> Thanks for reporting this issue.
Will send the v2.
> Pablo
More information about the dev
mailing list