From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 8761CA034E; Sun, 6 Feb 2022 04:59:38 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A83A141163; Sun, 6 Feb 2022 04:59:08 +0100 (CET) Received: from out203-205-221-153.mail.qq.com (out203-205-221-153.mail.qq.com [203.205.221.153]) by mails.dpdk.org (Postfix) with ESMTP id 8B70F410E7 for ; Sun, 6 Feb 2022 04:59:03 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1644119941; bh=zj0ejPnA66iQadF87Vk3srre+fLo8OhXu9iBIwZfcnQ=; h=From:To:Subject:Date:In-Reply-To:References; b=GUxGLd1EVIgycMF6RL12uwd2vEHHryOTnZ5dZd38YXKxF95jA9ocVrT7nnq+0ELuA iGeF4L0PyP7otfJyynVhgwNQ3zIPWjnkHj8VBkhH9b6Jp0Lgy0idaJ3X+Xv5hukBm+ g0EyLzMPxKPYSuTHbeSUFhf3SmOwtLfP7e0G8fbs= Received: from liwg-ubuntu.lan ([111.193.130.237]) by newxmesmtplogicsvrszc10.qq.com (NewEsmtp) with SMTP id EAE16474; Sun, 06 Feb 2022 11:58:46 +0800 X-QQ-mid: xmsmtpt1644119940tm0geag4b Message-ID: X-QQ-XMAILINFO: MFX4IRS9whvrhSjfsCP9HUrT7s7BC3v6YjdUMQ7RdTzJydi4sJFE1E24d1JKVc WMPII0KAoEXy/trhpaiXT+tXQ2ezz3bHK/UF+NreR1wcEa+E0CZ7Vwy8ONDUKIgdLx96Kbda7/ks HxzRy2rBKwq51usl+TvZxIbudtzcBhD+CJAowXxqWBjWomASQ/VJVaT9X7+oKbfADWnHLCFS8VDz OmCgfBQRy1F52lYHxfBIxowaxn5hZLlAMsKBc+JZvCj1KcJ6ZmVn6PMaem+1pX68iDKZbq37YDqW t8rhYq1uKisCZs0Fqod72c5TWLurm3yjRZYZxH6YQDgHL0Ny9Jui0up4r5W5gUjCm7pmHP/PWSyv ZYlLR2tFKcR6HUkYEaA7XZg6olgoebUhfvEFUJwUanqQUzxEOhdXsflY0IwER0tDfsfqxaisf9ML owVX6fXbKTvuHuX0kSRbbuvpI0NojdMRjfR5JYaEMUSItltvqZWpfp3ptbzDdQSZ5uxC1o3jJHEB bPcbF8yrorqh9T16ZblZfJOt+4l6hBhXIWdyoi69eUsd/bHvDfwpuCEsC6ZpPoOnW3OUsRMAyzTK bZD2jfIjOyN9Nmj7V2YNuVcnvp5+jwyfeM2LD5T/SJ4Is5jPcaOMqB65DmWqLZlhfv9aExMDlA6v ZJnngeatcXgtTDSMEkSEKNKOQ2c+e6e+aUNYpKRKeSNdtlp2Gn2j1Dxi0YD0CtfkH8KcS4hxMbso fz5WKN5jyofzxEwRYsO055MVMtaO/kUwXRBIaCHv8xWBYjbsMizW7d8P/ZW0uA2CGp6toQk+TCGI mg+PtSDHL3vq6mwgNe7kEM5XZEGw87rreCJ+piN1MXnCJ/5RKWR+N2NlWhsgBS34k= From: Weiguo Li To: dev@dpdk.org Subject: [PATCH 08/16] net/tap: add define guards to avoid multi-inclusion Date: Sun, 6 Feb 2022 11:58:38 +0800 X-OQ-MSGID: <20220206035846.2840462-8-liwg06@foxmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220206035846.2840462-1-liwg06@foxmail.com> References: <20220206035846.2840462-1-liwg06@foxmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Supplement define guards to prevent multiple inclusion. Signed-off-by: Weiguo Li --- drivers/net/tap/tap_bpf_insns.h | 5 +++++ drivers/net/tap/tap_log.h | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/drivers/net/tap/tap_bpf_insns.h b/drivers/net/tap/tap_bpf_insns.h index 1a91bbad13..d4e6bea3d7 100644 --- a/drivers/net/tap/tap_bpf_insns.h +++ b/drivers/net/tap/tap_bpf_insns.h @@ -2,6 +2,9 @@ * Copyright 2017 Mellanox Technologies, Ltd */ +#ifndef _TAP_BPF_INSNS_H_ +#define _TAP_BPF_INSNS_H_ + #include /* 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_ */ diff --git a/drivers/net/tap/tap_log.h b/drivers/net/tap/tap_log.h index fa06843a4c..667d9e6ab0 100644 --- a/drivers/net/tap/tap_log.h +++ b/drivers/net/tap/tap_log.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_ */ -- 2.25.1