app/crypto-perf: fix invalid latency for QAT
authorSlawomir Mrozowicz <slawomirx.mrozowicz@intel.com>
Thu, 16 Feb 2017 15:51:08 +0000 (16:51 +0100)
committerPablo de Lara <pablo.de.lara.guarch@intel.com>
Wed, 5 Apr 2017 22:17:44 +0000 (00:17 +0200)
commit5d75fb09d3bec3bc5c36bb50886d33389d13616d
treefd46ec32ce21591f84dad1174ee2db06b0ac3066
parent7c085e85c272c3e957d183ee30a8a168f1551416
app/crypto-perf: fix invalid latency for QAT

Fixes invalid latency result when using the performance application and
hardware QAT PMD. It occurred when the number of processed packets was
higher then the size of the internal QAT PMD ring buffer and the buffer
was overflowed.
Fixed by correcting the registration of the enqueued packets and freeing
memory space for not enqueued packets.

Fixes: f8be1786b1b8 ("app/crypto-perf: introduce performance test application")

Signed-off-by: Slawomir Mrozowicz <slawomirx.mrozowicz@intel.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
app/test-crypto-perf/cperf_test_latency.c