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 F2C5DA034E; Wed, 9 Feb 2022 04:03:29 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C065A41181; Wed, 9 Feb 2022 04:02:55 +0100 (CET) Received: from out162-62-57-64.mail.qq.com (out162-62-57-64.mail.qq.com [162.62.57.64]) by mails.dpdk.org (Postfix) with ESMTP id 9905B41144 for ; Wed, 9 Feb 2022 04:02:49 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1644375768; bh=pvObum4JV9dfcDM0jpWOqq5lw1/Doh9HwXvBBqUK9g4=; h=From:To:Subject:Date:In-Reply-To:References; b=jDtAi2FXeZmT/yuZycomzOJKXPm9G9oBofVb1oJlujYL+ROwd7YaoOgZQ1mgJq39G pajVzJtLwbwIlr19ut7iVLmr/quFs2jWbjUqrZ/usboABkRBxCxf9ZtmUQ774m0Cw2 Sl1ksoDgxduLKMtN4+Zbq9hd033DaHMDAr8uZeW0= Received: from liwg-ubuntu.lan ([111.193.130.237]) by newxmesmtplogicsvrszb7.qq.com (NewEsmtp) with SMTP id 98A6079; Wed, 09 Feb 2022 11:02:24 +0800 X-QQ-mid: xmsmtpt1644375767tuwcoah8s Message-ID: X-QQ-XMAILINFO: OEaI/iTChbug6vdv1hddYjDDHQGfBR0GL4uzaDiDtYOLYFFhzAlBi86jRrqt09 s+UwusyykCXRrOcH1jgtzNtZIV1oCxZgIhwoI0Qj88eQ77NXw6EZj6ZFUxA4HHQ6pj48W+9HPCMY rGpglk5N+lsjhJJdPnbgwk6x68MxdUbm27gTO6daawec7yvAxNf/jKIsbTzED+9MAN/Ll5EUjEwn XR9W41kYJnM254fCup7ZmJJwOH0e3Nry+w0Jwt1iMX4a2xQkzXWpuPhTVdSkJ4N873KbjPBiLcM/ g1/cCKJJ1yWJxVjwjgXUsHEqBC7G9SAswlMcCo9rL0SlFcfZElnargwU4Vas4+r4hvHr7hUonivI PwzNZ8orL1uPAeLKdIp8+jQcHyP5u1bicupukyNeNxYPj1v8gxkDq0+6Ae7Op0fbrRn3ReKkShjU t8Ivttq2yFGE6XEbjj9qxXyx8HQWkHCcQHt9C5xrTBZ9VSX5g343xHjnhf6fAk+1bl+PUYJpuhdu 14nmUOXzssyMmxcxHyD3GbvtMGSFT9Bm8WZEc26VxaySVcHB+DehMKKdL7PhcbQdTnx7DGmyWWqT pyvmabsupF2BdRgaW+BJ4x8UdNZFSLNv7cFuCMvA23EcXUXGY4cHAQ0b512+M8Dv1+G2eAadjpx8 Aq7QB5PNTrN9VgpLZREICP90G/EeZkd8XuGKIueKJa5LlnckYiseDh2qcITX+eq7sCi5GdFFPSUS tK8RgRhib4Ktv0GzE1ytxlcCJft1hAbG7TxAZ39SxOuIOZFl7QaM71B4bd5oV1Bd9q7ZiZdZufwJ sFE6iLilE8B3d+cT0JPEhcl/AKZ3cUsLMp6qyypNamttSFseAf59y+w43WjznfguTYmIEMOQPVy1 jgy/M+ZmMbL5M0R2zO4bgD7YDwe7wbuAep2FdHc86a From: Weiguo Li To: dev@dpdk.org Subject: [PATCH v2 08/16] net/tap: add define guards to avoid multi-inclusion Date: Wed, 9 Feb 2022 11:02:16 +0800 X-OQ-MSGID: <354ef35fa29853736299350ee7d551c83c225ceb.1644374873.git.liwg06@foxmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: 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..c190793b89 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..5e4f0ebabb 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