numam-dpdk/drivers/net/axgbe/axgbe_logs.h
Ravi Kumar 8691632f92 net/axgbe: add minimal init and uninit support
Add ethernet poll mode driver for AMD 10G devices embedded in
AMD EPYC™ EMBEDDED 3000 family processors.

Signed-off-by: Ravi Kumar <ravi1.kumar@amd.com>
2018-04-14 00:41:44 +02:00

27 lines
697 B
C

/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2018 Advanced Micro Devices, Inc. All rights reserved.
*/
#ifndef _AXGBE_LOGS_H_
#define _AXGBE_LOGS_H_
#include <stdio.h>
extern int axgbe_logtype_init;
#define PMD_INIT_LOG(level, fmt, args...) \
rte_log(RTE_LOG_ ## level, axgbe_logtype_init, "%s(): " fmt "\n", \
__func__, ##args)
#ifdef RTE_LIBRTE_AXGBE_PMD_DEBUG
#define PMD_INIT_FUNC_TRACE() PMD_INIT_LOG(DEBUG, " >>")
#else
#define PMD_INIT_FUNC_TRACE() do { } while (0)
#endif
extern int axgbe_logtype_driver;
#define PMD_DRV_LOG(level, fmt, args...) \
rte_log(RTE_LOG_ ## level, axgbe_logtype_driver, "%s(): " fmt, \
__func__, ## args)
#endif /* _AXGBE_LOGS_H_ */