a7c86884f1
Add a new PMD for Mellanox devices- crypto PMD. The crypto PMD will be supported starting Nvidia ConnectX6 and BlueField2. The crypto PMD will add the support of encryption and decryption using the AES-XTS symmetric algorithm. The crypto PMD requires rdma-core and uses mlx5 DevX. This patch adds the PCI probing, basic functions, build files and log utility. Signed-off-by: Shiri Kuzin <shirik@nvidia.com> Acked-by: Matan Azrad <matan@nvidia.com> Acked-by: Akhil Goyal <gakhil@marvell.com>
20 lines
564 B
C
20 lines
564 B
C
/* SPDX-License-Identifier: BSD-3-Clause
|
|
* Copyright (c) 2021 NVIDIA Corporation & Affiliates
|
|
*/
|
|
|
|
#ifndef RTE_PMD_MLX5_CRYPTO_UTILS_H_
|
|
#define RTE_PMD_MLX5_CRYPTO_UTILS_H_
|
|
|
|
#include <mlx5_common.h>
|
|
|
|
extern int mlx5_crypto_logtype;
|
|
|
|
#define MLX5_CRYPTO_LOG_PREFIX "mlx5_crypto"
|
|
/* Generic printf()-like logging macro with automatic line feed. */
|
|
#define DRV_LOG(level, ...) \
|
|
PMD_DRV_LOG_(level, mlx5_crypto_logtype, MLX5_CRYPTO_LOG_PREFIX, \
|
|
__VA_ARGS__ PMD_DRV_LOG_STRIP PMD_DRV_LOG_OPAREN, \
|
|
PMD_DRV_LOG_CPAREN)
|
|
|
|
#endif /* RTE_PMD_MLX5_CRYPTO_UTILS_H_ */
|