2020-07-20 06:26:06 +00:00
|
|
|
/* SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
* Copyright 2020 Mellanox Technologies, Ltd
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef RTE_PMD_MLX5_REGEX_UTILS_H_
|
|
|
|
#define RTE_PMD_MLX5_REGEX_UTILS_H_
|
|
|
|
|
|
|
|
#include <mlx5_common.h>
|
|
|
|
|
|
|
|
extern int mlx5_regex_logtype;
|
|
|
|
|
2021-03-15 21:05:54 +00:00
|
|
|
#define MLX5_REGEX_LOG_PREFIX "mlx5_regex"
|
2020-07-20 06:26:06 +00:00
|
|
|
/* Generic printf()-like logging macro with automatic line feed. */
|
|
|
|
#define DRV_LOG(level, ...) \
|
|
|
|
PMD_DRV_LOG_(level, mlx5_regex_logtype, MLX5_REGEX_LOG_PREFIX, \
|
|
|
|
__VA_ARGS__ PMD_DRV_LOG_STRIP PMD_DRV_LOG_OPAREN, \
|
|
|
|
PMD_DRV_LOG_CPAREN)
|
|
|
|
|
|
|
|
#endif /* RTE_PMD_MLX5_REGEX_UTILS_H_ */
|