dpdk-cryptodev: fix cache ring stats cli command 91/39491/2
authorPiotr Bronowski <piotrx.bronowski@intel.com>
Tue, 5 Sep 2023 21:18:59 +0000 (21:18 +0000)
committerFan Zhang <fanzhang.oss@gmail.com>
Thu, 7 Sep 2023 08:05:54 +0000 (08:05 +0000)
commitc143cc8967c9e0471e0cb85bf847c6634deeda25
tree4e1be4fd7fceece58c9d399178072c3756da2e0d
parentf0fc65a4b949a6e5a44250d405ce219b8e547859
dpdk-cryptodev: fix cache ring stats cli command

The logic for calcuating processed elements in the cache ring was broken.
In case tail and deq_tail equals and frame element pointed by the tile
is not NULL it means there is exactly one processed element in the ring.

Type: fix

Signed-off-by: Piotr Bronowski <piotrx.bronowski@intel.com>
Change-Id: I69c978334fc952049393214ccc9cc5245351f7f7
src/plugins/dpdk/cryptodev/cryptodev.c