]> git.droids-corp.org - dpdk.git/commit
cryptodev: support telemetry
authorRebecca Troy <rebecca.troy@intel.com>
Tue, 26 Oct 2021 12:00:45 +0000 (12:00 +0000)
committerAkhil Goyal <gakhil@marvell.com>
Thu, 4 Nov 2021 18:43:14 +0000 (19:43 +0100)
commitd3d98f5ce9d050469ec02f1b10cf86e1fb71fe52
treefb35028399746a4ab3bb5d882977658cd41f364b
parent5cee6f7d3dace1959c7b694d9ffbd9dc507162ee
cryptodev: support telemetry

The cryptodev library now registers commands with telemetry, and
implements the corresponding callback functions. These commands
allow a list of cryptodevs to be queried, as well as info and stats
for the corresponding cryptodev.

An example usage can be seen below:

Connecting to /var/run/dpdk/rte/dpdk_telemetry.v2
{"version": "DPDK 21.11.0-rc0", "pid": 1135019, "max_output_len": 16384}
--> /
{"/": ["/", "/cryptodev/info", "/cryptodev/list", "/cryptodev/stats", ...]}
--> /cryptodev/list
{"/cryptodev/list": [0,1,2,3]}
--> /cryptodev/info,0
{"/cryptodev/info": {"device_name": "0000:1c:01.0_qat_sym", \
 "max_nb_queue_pairs": 2}}
--> /cryptodev/stats,0
{"/cryptodev/stats": {"enqueued_count": 0, "dequeued_count": 0, \
"enqueue_err_count": 0, "dequeue_err_count": 0}}

Signed-off-by: Rebecca Troy <rebecca.troy@intel.com>
Acked-by: Ciara Power <ciara.power@intel.com>
Acked-by: Akhil Goyal <gakhil@marvell.com>
doc/guides/prog_guide/cryptodev_lib.rst
doc/guides/rel_notes/release_21_11.rst
lib/cryptodev/meson.build
lib/cryptodev/rte_cryptodev.c