1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2010-2014 Intel Corporation
5 #ifndef _VMXNET3_LOGS_H_
6 #define _VMXNET3_LOGS_H_
8 extern int vmxnet3_logtype_init;
9 #define PMD_INIT_LOG(level, fmt, args...) \
10 rte_log(RTE_LOG_ ## level, vmxnet3_logtype_driver, \
11 "%s(): " fmt "\n", __func__, ## args)
12 #define PMD_INIT_FUNC_TRACE() PMD_INIT_LOG(DEBUG, " >>")
14 #ifdef RTE_LIBRTE_VMXNET3_DEBUG_RX
15 #define PMD_RX_LOG(level, fmt, args...) \
16 RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ## args)
18 #define PMD_RX_LOG(level, fmt, args...) do { } while(0)
21 #ifdef RTE_LIBRTE_VMXNET3_DEBUG_TX
22 #define PMD_TX_LOG(level, fmt, args...) \
23 RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ## args)
25 #define PMD_TX_LOG(level, fmt, args...) do { } while(0)
28 #ifdef RTE_LIBRTE_VMXNET3_DEBUG_TX_FREE
29 #define PMD_TX_FREE_LOG(level, fmt, args...) \
30 RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ## args)
32 #define PMD_TX_FREE_LOG(level, fmt, args...) do { } while(0)
35 extern int vmxnet3_logtype_driver;
36 #define PMD_DRV_LOG(level, fmt, args...) \
37 rte_log(RTE_LOG_ ## level, vmxnet3_logtype_driver, \
38 "%s(): " fmt "\n", __func__, ## args)
40 #endif /* _VMXNET3_LOGS_H_ */