This is consistent with the use of terms in other parts of SPDK and fits with the code living under module/ Change-Id: If182f7cf2d160d57443a1b5f24e0065f191b59b2 Signed-off-by: Ben Walker <benjamin.walker@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/13919 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
30 lines
703 B
Python
30 lines
703 B
Python
from spdk.rpc.helpers import deprecated_alias
|
|
|
|
|
|
def accel_get_opc_assignments(client):
|
|
"""Get list of opcode name to module assignments.
|
|
"""
|
|
return client.call('accel_get_opc_assignments')
|
|
|
|
|
|
@deprecated_alias('accel_get_engine_info')
|
|
def accel_get_module_info(client):
|
|
"""Get list of valid module names and their operations.
|
|
"""
|
|
return client.call('accel_get_module_info')
|
|
|
|
|
|
def accel_assign_opc(client, opname, module):
|
|
"""Manually assign an operation to a module.
|
|
|
|
Args:
|
|
opname: name of operation
|
|
module: name of module
|
|
"""
|
|
params = {
|
|
'opname': opname,
|
|
'module': module,
|
|
}
|
|
|
|
return client.call('accel_assign_opc', params)
|