xref: /spdk/module/accel/mlx5/accel_mlx5.h (revision 60241941e6cfa4fc04cfcf6840c79f941ccf85d0)
1 /*   SPDX-License-Identifier: BSD-3-Clause
2  *   Copyright (c) 2022-2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3  */
4 
5 #include "spdk/stdinc.h"
6 
7 struct accel_mlx5_attr {
8 	/* The number of entries in qp submission/receive queue */
9 	uint16_t qp_size;
10 	/* The number of requests in the global pool */
11 	uint32_t num_requests;
12 	/* Comma separated list of allowed device names */
13 	char *allowed_devs;
14 	/* Apply crypto operation for each X data blocks. Works only if multiblock crypto operation is supported by HW.
15 	 * 0 means no limit */
16 	uint16_t crypto_split_blocks;
17 };
18 
19 void accel_mlx5_get_default_attr(struct accel_mlx5_attr *attr);
20 int accel_mlx5_enable(struct accel_mlx5_attr *attr);
21