The mlx5 accel module supports crypto operations. Data buffer is split into `block_size` chunks and each chunk is enrypted individually. mlx5 library contains some utility functions that will later be used by other libraries, this lib will be exntended later. Signed-off-by: Alexey Marchuk <alexeymar@nvidia.com> Change-Id: Iacdd8caaade477277d5a95cfd53e9910e280a73b Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15420 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Paul Luse <paul.e.luse@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
16 lines
450 B
C
16 lines
450 B
C
/* SPDX-License-Identifier: BSD-3-Clause
|
|
* Copyright (c) 2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
|
*/
|
|
|
|
#include "spdk/stdinc.h"
|
|
|
|
struct accel_mlx5_attr {
|
|
/* The number of entries in qp submission/receive queue */
|
|
uint16_t qp_size;
|
|
/* The number of requests in the global pool */
|
|
uint32_t num_requests;
|
|
};
|
|
|
|
void accel_mlx5_get_default_attr(struct accel_mlx5_attr *attr);
|
|
int accel_mlx5_enable(struct accel_mlx5_attr *attr);
|