net/bnxt: ignore VLAN priority mask
[dpdk.git] / drivers / common / qat / qat_logs.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2015-2018 Intel Corporation
3  */
4
5 #ifndef _QAT_LOGS_H_
6 #define _QAT_LOGS_H_
7
8 extern int qat_gen_logtype;
9 extern int qat_dp_logtype;
10
11 #define QAT_LOG(level, fmt, args...)                    \
12         rte_log(RTE_LOG_ ## level, qat_gen_logtype,             \
13                         "%s(): " fmt "\n", __func__, ## args)
14
15 #define QAT_DP_LOG(level, fmt, args...)                 \
16         rte_log(RTE_LOG_ ## level, qat_dp_logtype,              \
17                         "%s(): " fmt "\n", __func__, ## args)
18
19 #define QAT_DP_HEXDUMP_LOG(level, title, buf, len)              \
20         qat_hexdump_log(RTE_LOG_ ## level, qat_dp_logtype, title, buf, len)
21
22 /**
23  * qat_hexdump_log - Dump out memory in a special hex dump format.
24  *
25  * Dump out the message buffer in a special hex dump output format with
26  * characters printed for each line of 16 hex values. The message will be sent
27  * to the stream used by the rte_log infrastructure.
28  */
29 int
30 qat_hexdump_log(uint32_t level, uint32_t logtype, const char *title,
31                 const void *buf, unsigned int len);
32
33 #endif /* _QAT_LOGS_H_ */