dpdk-cryptodev: improve dequeue behavior, fix cache stats logging 72/39572/2
authorPiotr Bronowski <piotrx.bronowski@intel.com>
Thu, 14 Sep 2023 17:41:13 +0000 (17:41 +0000)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Wed, 25 Oct 2023 17:18:40 +0000 (17:18 +0000)
commit74209bac286d10d39b9fa6f3e673ff89713e734f
tree2e342c5bb9cd28b2cc2426abb2663ce4cc503cd2
parent7c4027fa5e42a8cc7176cd62ab7a0043fb1933ff
dpdk-cryptodev: improve dequeue behavior, fix cache stats logging

This patch provides minor improvements to the logic governing dequeuing
from the ring. Previously whenever a frame was dequeued
we've been trying to dequeue from the ring another one till
inflight == 0. Now threshold is set for 8 frames pending in the cache
to be consumed by the vnet. This threshold has been chosen based on
cache ring stats observation in the system under load.
Some unnecessary logic for setting deq_tail has been removed.
Also logging has been corrected, and cache ring logic simplied.

Type: improvement
Signed-off-by: Piotr Bronowski <piotrx.bronowski@intel.com>
Change-Id: I19f3daf5913006e9cb23e142a163f596e85f5bda
(cherry picked from commit 7cc17f6df9b3f4b45aaac16ba0aa098d6cd58794)
src/plugins/dpdk/cryptodev/cryptodev.c
src/plugins/dpdk/cryptodev/cryptodev.h
src/plugins/dpdk/cryptodev/cryptodev_op_data_path.c
src/plugins/dpdk/cryptodev/cryptodev_raw_data_path.c