numam-dpdk/drivers/net/enetc/enetc_logs.h
Gagandeep Singh 469c6111a7 net/enetc: enable Rx and Tx
Add RX and TX queue setup, datapath functions

Signed-off-by: Gagandeep Singh <g.singh@nxp.com>
Acked-by: Shreyansh Jain <shreyansh.jain@nxp.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
2018-10-11 18:53:49 +02:00

41 lines
1.2 KiB
C

/* SPDX-License-Identifier: BSD-3-Clause
* Copyright 2018 NXP
*/
#ifndef _ENETC_LOGS_H_
#define _ENETC_LOGS_H_
extern int enetc_logtype_pmd;
#define ENETC_PMD_LOG(level, fmt, args...) \
rte_log(RTE_LOG_ ## level, enetc_logtype_pmd, "enetc_net: " \
fmt "\n", ##args)
#define ENETC_PMD_DEBUG(fmt, args...) \
rte_log(RTE_LOG_DEBUG, enetc_logtype_pmd, "enetc_net: %s(): "\
fmt "\n", __func__, ##args)
#define PMD_INIT_FUNC_TRACE() ENETC_PMD_DEBUG(">>")
#define ENETC_PMD_CRIT(fmt, args...) \
ENETC_PMD_LOG(CRIT, fmt, ## args)
#define ENETC_PMD_INFO(fmt, args...) \
ENETC_PMD_LOG(INFO, fmt, ## args)
#define ENETC_PMD_ERR(fmt, args...) \
ENETC_PMD_LOG(ERR, fmt, ## args)
#define ENETC_PMD_WARN(fmt, args...) \
ENETC_PMD_LOG(WARNING, fmt, ## args)
/* DP Logs, toggled out at compile time if level lower than current level */
#define ENETC_PMD_DP_LOG(level, fmt, args...) \
RTE_LOG_DP(level, PMD, fmt, ## args)
#define ENETC_PMD_DP_DEBUG(fmt, args...) \
ENETC_PMD_DP_LOG(DEBUG, fmt, ## args)
#define ENETC_PMD_DP_INFO(fmt, args...) \
ENETC_PMD_DP_LOG(INFO, fmt, ## args)
#define ENETC_PMD_DP_WARN(fmt, args...) \
ENETC_PMD_DP_LOG(WARNING, fmt, ## args)
#endif /* _ENETC_LOGS_H_*/