From f7d2c696530c729a1b613b7a8da1ca5438acb84c Mon Sep 17 00:00:00 2001 From: David Coyle Date: Thu, 16 Jul 2020 16:31:11 +0100 Subject: [PATCH] app/crypto-perf: fix mbuf lengths for DOCSIS Set the source mbuf data and packet lengths correctly for DOCSIS performance tests. Fixes: d4a131a9498d ("test/crypto-perf: support DOCSIS protocol") Signed-off-by: David Coyle Acked-by: Akhil Goyal --- app/test-crypto-perf/cperf_ops.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/test-crypto-perf/cperf_ops.c b/app/test-crypto-perf/cperf_ops.c index f851509ec5..3da835a9c5 100644 --- a/app/test-crypto-perf/cperf_ops.c +++ b/app/test-crypto-perf/cperf_ops.c @@ -48,6 +48,10 @@ cperf_set_ops_security(struct rte_crypto_op **ops, } else buf_sz = options->test_buffer_size; + sym_op->m_src->buf_len = options->segment_sz; + sym_op->m_src->data_len = buf_sz; + sym_op->m_src->pkt_len = buf_sz; + /* DOCSIS header is not CRC'ed */ sym_op->auth.data.offset = options->docsis_hdr_sz; sym_op->auth.data.length = buf_sz -