crypto: CLI to change dispatch mode 74/40374/5
authorNiyaz Murshed <niyaz.murshed@arm.com>
Wed, 21 Feb 2024 19:54:24 +0000 (19:54 +0000)
committerFan Zhang <fanzhang.oss@gmail.com>
Wed, 28 Feb 2024 13:40:03 +0000 (13:40 +0000)
commit7f050d9749bbf16c0d16625d52d94e0811f284c7
tree506309e76c07378b6edaee72d11cbb388ec2c941
parentea158d64a0aa0673807c74ce00fc854519ba589c
crypto: CLI to change dispatch mode

This change aims to affect crypto_sw_scheduler behavior,
but all the edits end up in vnet/crypto.

After 9a9604b introduced adaptive mode for crypto dispatch,
the performance of async mode at lower rate got worse.

A work around for CSIT test is done by changing dispatch mode via explicit API call
in https://github.com/FDio/vpp/commit/139aba204780f6cc2845b311820a0b4c47517d02

In this change, the CLI is brought back to allow user to fix the
dispatch mode.

set crypto async dispatch mode <polling|interrupt|adaptive>

Type: improvement
Change-Id: I029e98aa25889eddcf62e75a6c78926cdee862ef
Signed-off-by: Niyaz Murshed <niyaz.murshed@arm.com>
src/vnet/crypto/cli.c