Commit a6545ae3 authored by Alexey Marchuk's avatar Alexey Marchuk Committed by Jim Harris
Browse files

test/blockdev: Use regualr RPC socket for mlx5 config



When RPC server is used for configuration, rpc_cmd
function waits 15 seconds to read all replies. If
mlx5 dpdk driver is used on slow machines or in
container, RPC framework_start_init may take more
than 15 seconds to execute. As result, rpc_cmd
exits earlier and output of some comamnds
remains in the pipe. Next call of rpc_cmd may
read wrong data, that leads to malformed json
config. To avoid this problem, redirect RPCs to
a regualr rpc socket.

Signed-off-by: default avatarAlexey Marchuk <alexeymar@nvidia.com>
Change-Id: Ibfcf56bb0a7f84f69394846d83746c91a4024b9e
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16389


Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
parent db6297b5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -244,7 +244,7 @@ function setup_crypto_mlx5_conf() {
	fi

	# Malloc0 will use MLX5 AES_XTS
	"$rpc_py" <<- RPC
	"$rootdir/scripts/rpc.py" <<- RPC
		dpdk_cryptodev_scan_accel_module
		dpdk_cryptodev_set_driver -d mlx5_pci
		accel_assign_opc -o encrypt -m dpdk_cryptodev