832a4cf1d1
Add a new compress PMD for Mellanox devices. The MLX5 compress driver library provides support for Mellanox BlueField 2 families of 25/50/100/200 Gb/s adapters. GGAs (Generic Global Accelerators) are offload engines that can be used to do memory to memory tasks on data. These engines are part of the ARM complex of the BlueField 2 chip, and as such they do not use NIC related resources (e.g. RX/TX bandwidth). They do share the same PCI and memory bandwidth. So, using the BlueField 2 device, the compress class operations can be run in parallel to the net, vdpa, and regex class operations. This driver is depending on rdma-core like the other mlx5 PMDs, also it is going to use mlx5 DevX to create HW objects directly by the FW. Add the probing functions, PCI bus connectivity, HW capabilities checks and some basic objects preparations. Signed-off-by: Matan Azrad <matan@nvidia.com> Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
21 lines
572 B
C
21 lines
572 B
C
/* SPDX-License-Identifier: BSD-3-Clause
|
|
* Copyright 2021 Mellanox Technologies, Ltd
|
|
*/
|
|
|
|
#ifndef RTE_PMD_MLX5_COMPRESS_UTILS_H_
|
|
#define RTE_PMD_MLX5_COMPRESS_UTILS_H_
|
|
|
|
#include <mlx5_common.h>
|
|
|
|
|
|
extern int mlx5_compress_logtype;
|
|
|
|
#define MLX5_COMPRESS_LOG_PREFIX "mlx5_compress"
|
|
/* Generic printf()-like logging macro with automatic line feed. */
|
|
#define DRV_LOG(level, ...) \
|
|
PMD_DRV_LOG_(level, mlx5_compress_logtype, MLX5_COMPRESS_LOG_PREFIX, \
|
|
__VA_ARGS__ PMD_DRV_LOG_STRIP PMD_DRV_LOG_OPAREN, \
|
|
PMD_DRV_LOG_CPAREN)
|
|
|
|
#endif /* RTE_PMD_MLX5_COMPRESS_UTILS_H_ */
|