Signed-off-by: Slawomir Ptak <slawomir.ptak@intel.com> Change-Id: I2ab213f6ab1751895b9bef138cc4cbd4892ea29e Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16719 Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
16 lines
385 B
Python
16 lines
385 B
Python
# SPDX-License-Identifier: BSD-3-Clause
|
|
# Copyright (C) 2022 Intel Corporation.
|
|
# All rights reserved.
|
|
#
|
|
|
|
|
|
def compressdev_scan_accel_module(client, pmd):
|
|
"""Scan and enable compressdev module and set pmd option.
|
|
|
|
Args:
|
|
pmd: 0 = auto-select, 1 = QAT, 2 = mlx5_pci
|
|
"""
|
|
params = {'pmd': pmd}
|
|
|
|
return client.call('compressdev_scan_accel_module', params)
|