numam-dpdk/drivers/net/hns3/hns3_logs.h
Min Hu (Connor) 53e6f86cf5 net/hns3: fix copyright date
This patch updates copyright date for hns3 PMD files.

Fixes: 565829db8b ("net/hns3: add build and doc infrastructure")
Fixes: 952ebacce4 ("net/hns3: support SVE Rx")
Fixes: e31f123db0 ("net/hns3: support NEON Tx")
Fixes: c09c7847d8 ("net/hns3: support traffic management")

Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
2021-04-08 17:55:35 +02:00

35 lines
1.0 KiB
C

/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2018-2021 HiSilicon Limited.
*/
#ifndef _HNS3_LOGS_H_
#define _HNS3_LOGS_H_
extern int hns3_logtype_init;
#define PMD_INIT_LOG(level, fmt, args...) \
rte_log(RTE_LOG_ ## level, hns3_logtype_init, "%s(): " fmt "\n", \
__func__, ##args)
#define PMD_INIT_FUNC_TRACE() PMD_INIT_LOG(DEBUG, " >>")
extern int hns3_logtype_driver;
#define PMD_DRV_LOG_RAW(hw, level, fmt, args...) \
rte_log(level, hns3_logtype_driver, "%s %s(): " fmt, \
(hw)->data->name, __func__, ## args)
#define hns3_err(hw, fmt, args...) \
PMD_DRV_LOG_RAW(hw, RTE_LOG_ERR, fmt "\n", ## args)
#define hns3_warn(hw, fmt, args...) \
PMD_DRV_LOG_RAW(hw, RTE_LOG_WARNING, fmt "\n", ## args)
#define hns3_notice(hw, fmt, args...) \
PMD_DRV_LOG_RAW(hw, RTE_LOG_NOTICE, fmt "\n", ## args)
#define hns3_info(hw, fmt, args...) \
PMD_DRV_LOG_RAW(hw, RTE_LOG_INFO, fmt "\n", ## args)
#define hns3_dbg(hw, fmt, args...) \
PMD_DRV_LOG_RAW(hw, RTE_LOG_DEBUG, fmt "\n", ## args)
#endif /* _HNS3_LOGS_H_ */