Add SPDX header to various files
They were missed by the initial set of patches which introduced this header as a mandatory one across different types of files. Signed-off-by: Michal Berger <michal.berger@intel.com> Change-Id: I3f9b37d41298c843e1648e72fe8593768ccd37e0 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15423 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
parent
eb53c23236
commit
588dfe314b
@ -1,4 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
# All rights reserved.
|
||||||
|
|
||||||
#
|
#
|
||||||
# Verify what is about to be committed.
|
# Verify what is about to be committed.
|
||||||
# Called by "git commit" with no arguments. The hook should
|
# Called by "git commit" with no arguments. The hook should
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
# All rights reserved.
|
||||||
|
|
||||||
# Verify what is about to be pushed. Called by "git
|
# Verify what is about to be pushed. Called by "git
|
||||||
# push" after it has checked the remote status, but before anything has been
|
# push" after it has checked the remote status, but before anything has been
|
||||||
# pushed. If this script exits with a non-zero status nothing will be pushed.
|
# pushed. If this script exits with a non-zero status nothing will be pushed.
|
||||||
|
@ -1,4 +1,8 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/python3
|
||||||
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
# Copyright (C) 2017 Intel Corporation.
|
||||||
|
# All rights reserved.
|
||||||
|
|
||||||
|
|
||||||
import shutil
|
import shutil
|
||||||
import subprocess
|
import subprocess
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
# Copyright (C) 2021 Intel Corporation.
|
||||||
|
# All rights reserved.
|
||||||
|
|
||||||
from spdk.rpc.client import print_json
|
from spdk.rpc.client import print_json
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
# Copyright (C) 2022 Intel Corporation.
|
||||||
|
# All rights reserved.
|
||||||
|
|
||||||
from spdk.rpc.client import print_json
|
from spdk.rpc.client import print_json
|
||||||
|
|
||||||
|
|
||||||
|
@ -0,0 +1,3 @@
|
|||||||
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
# Copyright (C) 2021 Intel Corporation.
|
||||||
|
# All rights reserved.
|
@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
# Copyright (C) 2017 Intel Corporation.
|
||||||
|
# All rights reserved.
|
||||||
|
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
# Copyright (C) 2022 Intel Corporation.
|
||||||
|
# All rights reserved.
|
||||||
|
|
||||||
from spdk.rpc.helpers import deprecated_alias
|
from spdk.rpc.helpers import deprecated_alias
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
# Copyright (C) 2017 Intel Corporation.
|
||||||
|
# All rights reserved.
|
||||||
|
|
||||||
def spdk_kill_instance(client, sig_name):
|
def spdk_kill_instance(client, sig_name):
|
||||||
"""Send a signal to the SPDK process.
|
"""Send a signal to the SPDK process.
|
||||||
|
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
# Copyright (C) 2017 Intel Corporation.
|
||||||
|
# All rights reserved.
|
||||||
|
|
||||||
def bdev_set_options(client, bdev_io_pool_size=None, bdev_io_cache_size=None, bdev_auto_examine=None,
|
def bdev_set_options(client, bdev_io_pool_size=None, bdev_io_cache_size=None, bdev_auto_examine=None,
|
||||||
small_buf_pool_size=None, large_buf_pool_size=None):
|
small_buf_pool_size=None, large_buf_pool_size=None):
|
||||||
"""Set parameters for the bdev subsystem.
|
"""Set parameters for the bdev subsystem.
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
# Copyright (C) 2019 Intel Corporation.
|
||||||
|
# All rights reserved.
|
||||||
|
|
||||||
def blobfs_detect(client, bdev_name):
|
def blobfs_detect(client, bdev_name):
|
||||||
"""Detect whether a blobfs exists on bdev.
|
"""Detect whether a blobfs exists on bdev.
|
||||||
|
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
# Copyright (C) 2017 Intel Corporation.
|
||||||
|
# All rights reserved.
|
||||||
|
|
||||||
import json
|
import json
|
||||||
import socket
|
import socket
|
||||||
import time
|
import time
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
# Copyright (C) 2021 Intel Corporation.
|
||||||
|
# All rights reserved.
|
||||||
|
|
||||||
args_global = ['server_addr', 'port', 'timeout', 'verbose', 'dry_run', 'conn_retries',
|
args_global = ['server_addr', 'port', 'timeout', 'verbose', 'dry_run', 'conn_retries',
|
||||||
'is_server', 'rpc_plugin', 'called_rpc_name', 'func', 'client']
|
'is_server', 'rpc_plugin', 'called_rpc_name', 'func', 'client']
|
||||||
|
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
# Copyright (C) 2022 Intel Corporation.
|
||||||
|
# All rights reserved.
|
||||||
|
|
||||||
from spdk.rpc.helpers import deprecated_alias
|
from spdk.rpc.helpers import deprecated_alias
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
# Copyright (C) 2019 Intel Corporation.
|
||||||
|
# All rights reserved.
|
||||||
|
|
||||||
def env_dpdk_get_mem_stats(client):
|
def env_dpdk_get_mem_stats(client):
|
||||||
"""Dump the applications memory stats to a file.
|
"""Dump the applications memory stats to a file.
|
||||||
|
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
# Copyright (C) 2019 Intel Corporation.
|
||||||
|
# All rights reserved.
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
deprecated_aliases = {}
|
deprecated_aliases = {}
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
# Copyright (C) 2022 Intel Corporation.
|
||||||
|
# All rights reserved.
|
||||||
|
|
||||||
from spdk.rpc.helpers import deprecated_alias
|
from spdk.rpc.helpers import deprecated_alias
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
# Copyright (C) 2021 Intel Corporation.
|
||||||
|
# All rights reserved.
|
||||||
|
|
||||||
from spdk.rpc.helpers import deprecated_alias
|
from spdk.rpc.helpers import deprecated_alias
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
# Copyright (C) 2017 Intel Corporation.
|
||||||
|
# All rights reserved.
|
||||||
|
|
||||||
def iscsi_set_options(
|
def iscsi_set_options(
|
||||||
client,
|
client,
|
||||||
auth_file=None,
|
auth_file=None,
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
# Copyright (C) 2017 Intel Corporation.
|
||||||
|
# All rights reserved.
|
||||||
|
|
||||||
def log_set_flag(client, flag):
|
def log_set_flag(client, flag):
|
||||||
"""Set log flag.
|
"""Set log flag.
|
||||||
|
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
# Copyright (C) 2017 Intel Corporation.
|
||||||
|
# All rights reserved.
|
||||||
|
|
||||||
def bdev_lvol_create_lvstore(client, bdev_name, lvs_name, cluster_sz=None,
|
def bdev_lvol_create_lvstore(client, bdev_name, lvs_name, cluster_sz=None,
|
||||||
clear_method=None, num_md_pages_per_cluster_ratio=None):
|
clear_method=None, num_md_pages_per_cluster_ratio=None):
|
||||||
"""Construct a logical volume store.
|
"""Construct a logical volume store.
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
# Copyright (C) 2017 Intel Corporation.
|
||||||
|
# All rights reserved.
|
||||||
|
|
||||||
def nbd_start_disk(client, bdev_name, nbd_device):
|
def nbd_start_disk(client, bdev_name, nbd_device):
|
||||||
params = {
|
params = {
|
||||||
'bdev_name': bdev_name
|
'bdev_name': bdev_name
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
# Copyright (C) 2018 Intel Corporation.
|
||||||
|
# All rights reserved.
|
||||||
|
|
||||||
def notify_get_types(client):
|
def notify_get_types(client):
|
||||||
return client.call("notify_get_types")
|
return client.call("notify_get_types")
|
||||||
|
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
# Copyright (C) 2018 Intel Corporation.
|
||||||
|
# All rights reserved.
|
||||||
|
|
||||||
def bdev_nvme_send_cmd(client, name, cmd_type, data_direction, cmdbuf,
|
def bdev_nvme_send_cmd(client, name, cmd_type, data_direction, cmdbuf,
|
||||||
data=None, metadata=None,
|
data=None, metadata=None,
|
||||||
data_len=None, metadata_len=None,
|
data_len=None, metadata_len=None,
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
# Copyright (C) 2017 Intel Corporation.
|
||||||
|
# All rights reserved.
|
||||||
|
|
||||||
from .cmd_parser import *
|
from .cmd_parser import *
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
# Copyright (C) 2017 Intel Corporation.
|
||||||
|
# All rights reserved.
|
||||||
|
|
||||||
def bdev_pmem_create_pool(client, pmem_file, num_blocks, block_size):
|
def bdev_pmem_create_pool(client, pmem_file, num_blocks, block_size):
|
||||||
"""Create pmem pool at specified path.
|
"""Create pmem pool at specified path.
|
||||||
Args:
|
Args:
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
# Copyright (C) 2021 Intel Corporation.
|
||||||
|
# All rights reserved.
|
||||||
|
|
||||||
def sock_impl_get_options(client, impl_name=None):
|
def sock_impl_get_options(client, impl_name=None):
|
||||||
"""Get parameters for the socket layer implementation.
|
"""Get parameters for the socket layer implementation.
|
||||||
|
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
# Copyright (C) 2018 Intel Corporation.
|
||||||
|
# All rights reserved.
|
||||||
|
|
||||||
def framework_get_subsystems(client):
|
def framework_get_subsystems(client):
|
||||||
return client.call('framework_get_subsystems')
|
return client.call('framework_get_subsystems')
|
||||||
|
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
# Copyright (C) 2018 Intel Corporation.
|
||||||
|
# All rights reserved.
|
||||||
|
|
||||||
def trace_enable_tpoint_group(client, name):
|
def trace_enable_tpoint_group(client, name):
|
||||||
"""Enable trace on a specific tpoint group.
|
"""Enable trace on a specific tpoint group.
|
||||||
|
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
# Copyright (C) 2022 Intel Corporation.
|
||||||
|
# All rights reserved.
|
||||||
|
|
||||||
def vfu_tgt_set_base_path(client, path):
|
def vfu_tgt_set_base_path(client, path):
|
||||||
"""Set socket base path.
|
"""Set socket base path.
|
||||||
|
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
# Copyright (C) 2017 Intel Corporation.
|
||||||
|
# All rights reserved.
|
||||||
|
|
||||||
from .cmd_parser import *
|
from .cmd_parser import *
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
# Copyright (C) 2019 Intel Corporation.
|
||||||
|
# All rights reserved.
|
||||||
|
|
||||||
from .helpers import deprecated_alias
|
from .helpers import deprecated_alias
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
# Copyright (C) 2022 Intel Corporation.
|
||||||
|
# All rights reserved.
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
# Copyright (C) 2022 Intel Corporation.
|
||||||
|
# All rights reserved.
|
||||||
|
|
||||||
import uuid
|
import uuid
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
# Copyright (C) 2022 Intel Corporation.
|
||||||
|
# All rights reserved.
|
||||||
|
|
||||||
from .device import DeviceException
|
from .device import DeviceException
|
||||||
from .device import DeviceManager
|
from .device import DeviceManager
|
||||||
from .nvmf_tcp import NvmfTcpDeviceManager
|
from .nvmf_tcp import NvmfTcpDeviceManager
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
# Copyright (C) 2022 Intel Corporation.
|
||||||
|
# All rights reserved.
|
||||||
|
|
||||||
from ..proto import sma_pb2
|
from ..proto import sma_pb2
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
# Copyright (C) 2022 Intel Corporation.
|
||||||
|
# All rights reserved.
|
||||||
|
|
||||||
import grpc
|
import grpc
|
||||||
import logging
|
import logging
|
||||||
import uuid
|
import uuid
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
# Copyright (C) 2022 Intel Corporation.
|
||||||
|
# All rights reserved.
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
# Copyright (C) 2022 Intel Corporation.
|
||||||
|
# All rights reserved.
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import uuid
|
import uuid
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
# Copyright (C) 2022 Intel Corporation.
|
||||||
|
# All rights reserved.
|
||||||
|
|
||||||
import grpc
|
import grpc
|
||||||
|
|
||||||
from spdk.rpc.client import JSONRPCException
|
from spdk.rpc.client import JSONRPCException
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
# Copyright (C) 2022 Intel Corporation.
|
||||||
|
# All rights reserved.
|
||||||
|
|
||||||
from concurrent import futures
|
from concurrent import futures
|
||||||
from contextlib import contextmanager
|
from contextlib import contextmanager
|
||||||
from multiprocessing import Lock
|
from multiprocessing import Lock
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
# Copyright (C) 2022 Intel Corporation.
|
||||||
|
# All rights reserved.
|
||||||
|
|
||||||
from .volume import VolumeException
|
from .volume import VolumeException
|
||||||
from .volume import VolumeManager
|
from .volume import VolumeManager
|
||||||
from .crypto import CryptoEngine
|
from .crypto import CryptoEngine
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
# Copyright (C) 2022 Intel Corporation.
|
||||||
|
# All rights reserved.
|
||||||
|
|
||||||
import grpc
|
import grpc
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
# Copyright (C) 2022 Intel Corporation.
|
||||||
|
# All rights reserved.
|
||||||
|
|
||||||
import grpc
|
import grpc
|
||||||
import logging
|
import logging
|
||||||
import uuid
|
import uuid
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
# Copyright (C) 2022 Intel Corporation.
|
||||||
|
# All rights reserved.
|
||||||
|
|
||||||
import grpc
|
import grpc
|
||||||
import ipaddress
|
import ipaddress
|
||||||
import logging
|
import logging
|
||||||
|
@ -1 +1,5 @@
|
|||||||
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
# Copyright (C) 2018 Intel Corporation.
|
||||||
|
# All rights reserved.
|
||||||
|
|
||||||
from .ui_root import UIRoot
|
from .ui_root import UIRoot
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
# Copyright (C) 2018 Intel Corporation.
|
||||||
|
# All rights reserved.
|
||||||
|
|
||||||
from configshell_fb import ConfigNode, ExecutionError
|
from configshell_fb import ConfigNode, ExecutionError
|
||||||
from uuid import UUID
|
from uuid import UUID
|
||||||
from ..rpc.client import JSONRPCException
|
from ..rpc.client import JSONRPCException
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
# Copyright (C) 2018 Intel Corporation.
|
||||||
|
# All rights reserved.
|
||||||
|
|
||||||
from configshell_fb import ExecutionError
|
from configshell_fb import ExecutionError
|
||||||
from ..rpc.client import JSONRPCException
|
from ..rpc.client import JSONRPCException
|
||||||
from .ui_node import UINode
|
from .ui_node import UINode
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
# Copyright (C) 2018 Intel Corporation.
|
||||||
|
# All rights reserved.
|
||||||
|
|
||||||
from ..rpc.client import JSONRPCException
|
from ..rpc.client import JSONRPCException
|
||||||
from .ui_node import UINode
|
from .ui_node import UINode
|
||||||
|
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
# Copyright (C) 2018 Intel Corporation.
|
||||||
|
# All rights reserved.
|
||||||
|
|
||||||
from .ui_node import UINode, UIBdevs, UILvolStores, UIVhosts
|
from .ui_node import UINode, UIBdevs, UILvolStores, UIVhosts
|
||||||
from .ui_node_nvmf import UINVMf
|
from .ui_node_nvmf import UINVMf
|
||||||
from .ui_node_iscsi import UIISCSI
|
from .ui_node_iscsi import UIISCSI
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
# Copyright (C) 2018 Intel Corporation.
|
||||||
|
# All rights reserved.
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
import json
|
import json
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
# Copyright (C) 2020 Intel Corporation.
|
||||||
|
# All rights reserved.
|
||||||
|
|
||||||
bdevperf=$rootdir/build/examples/bdevperf
|
bdevperf=$rootdir/build/examples/bdevperf
|
||||||
|
|
||||||
function create_job() {
|
function create_job() {
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
# Copyright (C) 2021 Intel Corporation.
|
||||||
|
# All rights reserved.
|
||||||
|
|
||||||
from spdk.rpc.client import print_json
|
from spdk.rpc.client import print_json
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
# Copyright (C) 2021 Intel Corporation.
|
||||||
|
# All rights reserved.
|
||||||
|
|
||||||
testdir=$(readlink -f $(dirname $0))
|
testdir=$(readlink -f $(dirname $0))
|
||||||
rootdir=$(readlink -f $testdir/../..)
|
rootdir=$(readlink -f $testdir/../..)
|
||||||
source $rootdir/test/common/autotest_common.sh
|
source $rootdir/test/common/autotest_common.sh
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
# Copyright (C) 2021 Intel Corporation.
|
||||||
|
# All rights reserved.
|
||||||
|
|
||||||
curdir=$(dirname $(readlink -f "${BASH_SOURCE[0]}"))
|
curdir=$(dirname $(readlink -f "${BASH_SOURCE[0]}"))
|
||||||
rootdir=$(readlink -f $curdir/../../..)
|
rootdir=$(readlink -f $curdir/../../..)
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
# Copyright (C) 2020 Intel Corporation.
|
||||||
|
# All rights reserved.
|
||||||
|
|
||||||
from spdk.rpc.client import print_json
|
from spdk.rpc.client import print_json
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
# Copyright (C) 2021 Intel Corporation.
|
||||||
|
# All rights reserved.
|
||||||
|
|
||||||
check_cgroup() {
|
check_cgroup() {
|
||||||
# Try to work with both, cgroup-v1 and cgroup-v2. Verify which version is
|
# Try to work with both, cgroup-v1 and cgroup-v2. Verify which version is
|
||||||
# in use by looking up interfaces common for either of the versions.
|
# in use by looking up interfaces common for either of the versions.
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
# Copyright (C) 2020 Intel Corporation.
|
||||||
|
# All rights reserved.
|
||||||
|
|
||||||
# Select cores for the test
|
# Select cores for the test
|
||||||
xtrace_disable
|
xtrace_disable
|
||||||
|
|
||||||
|
@ -1,4 +1,8 @@
|
|||||||
#!/usr/bin/env perl
|
#!/usr/bin/env perl
|
||||||
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
# Copyright (C) 2020 Intel Corporation.
|
||||||
|
# All rights reserved.
|
||||||
|
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
# Copyright (C) 2022 Intel Corporation.
|
||||||
|
# All rights reserved.
|
||||||
|
|
||||||
from spdk.sma import DeviceManager
|
from spdk.sma import DeviceManager
|
||||||
from spdk.sma import CryptoEngine, get_crypto_engine
|
from spdk.sma import CryptoEngine, get_crypto_engine
|
||||||
from spdk.sma.proto import sma_pb2
|
from spdk.sma.proto import sma_pb2
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
# Copyright (C) 2022 Intel Corporation.
|
||||||
|
# All rights reserved.
|
||||||
|
|
||||||
from spdk.sma import DeviceManager
|
from spdk.sma import DeviceManager
|
||||||
from spdk.sma import CryptoEngine, get_crypto_engine
|
from spdk.sma import CryptoEngine, get_crypto_engine
|
||||||
from spdk.sma.proto import sma_pb2
|
from spdk.sma.proto import sma_pb2
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
# Copyright (C) 2022 Intel Corporation.
|
||||||
|
# All rights reserved.
|
||||||
|
|
||||||
function clean_vfio_user() {
|
function clean_vfio_user() {
|
||||||
trap - ERR
|
trap - ERR
|
||||||
print_backtrace
|
print_backtrace
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
# Copyright (C) 2022 Intel Corporation.
|
||||||
|
# All rights reserved.
|
||||||
|
|
||||||
function vfu_tgt_run() {
|
function vfu_tgt_run() {
|
||||||
local vhost_name=$1
|
local vhost_name=$1
|
||||||
local vfio_user_dir vfu_pid_file rpc_py
|
local vfio_user_dir vfu_pid_file rpc_py
|
||||||
|
Loading…
Reference in New Issue
Block a user