e5d5b3ebef
This patch is used to add the support for users to configure use kernel or userspace idxd library. Change-Id: Ie159b897bc9595894ad8f333168efaea6c2a3d78 Signed-off-by: Ziye Yang <ziye.yang@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7332 Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
14 lines
487 B
Python
14 lines
487 B
Python
def idxd_scan_accel_engine(client, config_number=None, config_kernel_mode=None):
|
|
"""Scan and enable IDXD accel engine.
|
|
|
|
Args:
|
|
config_number: Pre-defined configuration number, see docs.
|
|
config_kernel_mode: Use kernel IDXD driver. (optional)
|
|
"""
|
|
params = {}
|
|
|
|
params['config_number'] = config_number
|
|
if config_kernel_mode is not None:
|
|
params['config_kernel_mode'] = config_kernel_mode
|
|
return client.call('idxd_scan_accel_engine', params)
|