On Wed, 9 Feb 2022 11:02:16 +0800
Weiguo Li <liwg06@foxmail.com> wrote:
> Supplement define guards to prevent multiple inclusion.
>
> Signed-off-by: Weiguo Li <liwg06@foxmail.com>
This is a driver specific include, not required
@@ -2,6 +2,9 @@
* Copyright 2017 Mellanox Technologies, Ltd
*/
+#ifndef TAP_BPF_INSNS_H
+#define TAP_BPF_INSNS_H
+
#include <tap_bpf.h>
/* bpf_insn array matching cls_q section. See tap_bpf_program.c file */
@@ -1694,3 +1697,5 @@ static struct bpf_insn l3_l4_hash_insns[] = {
{0xbf, 0, 7, 0, 0x00000000},
{0x95, 0, 0, 0, 0x00000000},
};
+
+#endif /* TAP_BPF_INSNS_H */
@@ -3,8 +3,13 @@
* Copyright 2017 Mellanox Technologies, Ltd
*/
+#ifndef TAP_LOG_H
+#define TAP_LOG_H
+
extern int tap_logtype;
#define TAP_LOG(level, fmt, args...) \
rte_log(RTE_LOG_ ## level, tap_logtype, "%s(): " fmt "\n", \
__func__, ## args)
+
+#endif /* TAP_LOG_H */