Spdk/python/spdk/rpc/dpdk_cryptodev.py
Alexey Marchuk 61fbb000fe module/accel: Add accel_dpdk_cryptodev
The new module replaces functionality in vbdev_crypto.
This module is bdev agnostic, so some inernal parts
were reworked.

io_channel: contains a qp of every configured DPDK PMD
crypto key: for mlx5_pci we register a key on each available
device since keys are bound to Protection Domain.

Signed-off-by: Alexey Marchuk <alexeymar@nvidia.com>
Change-Id: If1845cb87eadacbb921c593ba82207a97f2209a3
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14859
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Paul Luse <paul.e.luse@intel.com>
Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com>
2023-01-11 09:16:59 +00:00

26 lines
718 B
Python

# SPDX-License-Identifier: BSD-3-Clause
# Copyright (c) 2022, NVIDIA CORPORATION & AFFILIATES.
# All rights reserved.
def dpdk_cryptodev_scan_accel_module(client):
"""Enable dpdk_cryptodev accel module.
"""
return client.call('dpdk_cryptodev_scan_accel_module')
def dpdk_cryptodev_set_driver(client, driver_name):
"""Set the DPDK cryptodev driver.
Args:
driver_name: The driver, can be one of crypto_aesni_mb, crypto_qat or mlx5_pci
"""
params = {'driver_name': driver_name}
return client.call('dpdk_cryptodev_set_driver', params)
def dpdk_cryptodev_get_driver(client):
"""Get the DPDK cryptodev driver.
"""
return client.call('dpdk_cryptodev_get_driver')