X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=app%2Ftest-crypto-perf%2Fcperf_test_latency.c;h=657d0772a85ab67478102d6cf758abb320bb88ff;hb=b2085cce60c309ba39e771b391a813ad7faea8ae;hp=c5273b1fdd03ac0c67620a047041fba57cd0a329;hpb=df52cb3b6e132603b00e55cbaf8071811bd8b20e;p=dpdk.git diff --git a/app/test-crypto-perf/cperf_test_latency.c b/app/test-crypto-perf/cperf_test_latency.c index c5273b1fdd..657d0772a8 100644 --- a/app/test-crypto-perf/cperf_test_latency.c +++ b/app/test-crypto-perf/cperf_test_latency.c @@ -182,10 +182,12 @@ cperf_mbuf_create(struct rte_mempool *mempool, memcpy(mbuf_data, test_data, last_sz); } - mbuf_data = (uint8_t *)rte_pktmbuf_append(mbuf, + if (options->op_type != CPERF_CIPHER_ONLY) { + mbuf_data = (uint8_t *)rte_pktmbuf_append(mbuf, options->auth_digest_sz); - if (mbuf_data == NULL) - goto error; + if (mbuf_data == NULL) + goto error; + } if (options->op_type == CPERF_AEAD) { uint8_t *aead = (uint8_t *)rte_pktmbuf_prepend(mbuf,