95276abaaf
Add a new driver to support vDPA operations by Mellanox devices. The first Mellanox devices which support vDPA operations are ConnectX-6 Dx and Bluefield1 HCA for their PF ports and VF ports. This driver is depending on rdma-core like the mlx5 PMD, also it is going to use mlx5 DevX to create HW objects directly by the FW. Hence, the common/mlx5 library is linked to the mlx5_vdpa driver. This driver will not be compiled by default due to the above dependencies. Register a new log type for this driver. Signed-off-by: Matan Azrad <matan@mellanox.com> Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com> Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
21 lines
540 B
C
21 lines
540 B
C
/* SPDX-License-Identifier: BSD-3-Clause
|
|
* Copyright 2019 Mellanox Technologies, Ltd
|
|
*/
|
|
|
|
#ifndef RTE_PMD_MLX5_VDPA_UTILS_H_
|
|
#define RTE_PMD_MLX5_VDPA_UTILS_H_
|
|
|
|
#include <mlx5_common.h>
|
|
|
|
|
|
extern int mlx5_vdpa_logtype;
|
|
|
|
#define MLX5_VDPA_LOG_PREFIX "mlx5_vdpa"
|
|
/* Generic printf()-like logging macro with automatic line feed. */
|
|
#define DRV_LOG(level, ...) \
|
|
PMD_DRV_LOG_(level, mlx5_vdpa_logtype, MLX5_VDPA_LOG_PREFIX, \
|
|
__VA_ARGS__ PMD_DRV_LOG_STRIP PMD_DRV_LOG_OPAREN, \
|
|
PMD_DRV_LOG_CPAREN)
|
|
|
|
#endif /* RTE_PMD_MLX5_VDPA_UTILS_H_ */
|