1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2010-2015 Intel Corporation
8 #define PMD_INIT_LOG(level, fmt, args...) \
9 rte_log(RTE_LOG_ ## level, RTE_LOGTYPE_PMD, \
10 "PMD: %s(): " fmt "\n", __func__, ##args)
12 #ifdef RTE_LIBRTE_PMD_QAT_DEBUG_INIT
13 #define PMD_INIT_FUNC_TRACE() PMD_INIT_LOG(DEBUG, " >>")
15 #define PMD_INIT_FUNC_TRACE() do { } while (0)
18 #ifdef RTE_LIBRTE_PMD_QAT_DEBUG_RX
19 #define PMD_RX_LOG(level, fmt, args...) \
20 RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ## args)
22 #define PMD_RX_LOG(level, fmt, args...) do { } while (0)
25 #ifdef RTE_LIBRTE_PMD_QAT_DEBUG_TX
26 #define PMD_TX_LOG(level, fmt, args...) \
27 RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ## args)
29 #define PMD_TX_LOG(level, fmt, args...) do { } while (0)
32 #ifdef RTE_LIBRTE_PMD_QAT_DEBUG_TX_FREE
33 #define PMD_TX_FREE_LOG(level, fmt, args...) \
34 RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ## args)
36 #define PMD_TX_FREE_LOG(level, fmt, args...) do { } while (0)
39 #ifdef RTE_LIBRTE_PMD_QAT_DEBUG_DRIVER
40 #define PMD_DRV_LOG_RAW(level, fmt, args...) \
41 RTE_LOG(level, PMD, "%s(): " fmt, __func__, ## args)
43 #define PMD_DRV_LOG_RAW(level, fmt, args...) do { } while (0)
46 #define PMD_DRV_LOG(level, fmt, args...) \
47 PMD_DRV_LOG_RAW(level, fmt "\n", ## args)
49 #endif /* _QAT_LOGS_H_ */