dpdk-cryptodev: improve dequeue behavior, fix cache stats logging 35/39535/8
authorPiotr Bronowski <piotrx.bronowski@intel.com>
Thu, 14 Sep 2023 17:41:13 +0000 (17:41 +0000)
committerFan Zhang <fanzhang.oss@gmail.com>
Thu, 28 Sep 2023 15:07:52 +0000 (15:07 +0000)
commit7cc17f6df9b3f4b45aaac16ba0aa098d6cd58794
treed57a4ff4b081b671ad8808231bf172c08cbcba4d
parent029f039d5d5022d536d2085993a9b7671d898767
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
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