From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 98A95C4BA37 for ; Thu, 27 Feb 2020 03:11:26 +0000 (UTC) Received: from dpdk.org (dpdk.org [92.243.14.124]) by mail.kernel.org (Postfix) with ESMTP id 4FE0724683 for ; Thu, 27 Feb 2020 03:11:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4FE0724683 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=dev-bounces@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E95C31BFB3; Thu, 27 Feb 2020 04:11:23 +0100 (CET) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 4C1151F1C; Thu, 27 Feb 2020 04:11:21 +0100 (CET) X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Feb 2020 19:11:10 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,490,1574150400"; d="scan'208";a="238261044" Received: from yexl-server.sh.intel.com (HELO localhost) ([10.67.117.17]) by orsmga003.jf.intel.com with ESMTP; 26 Feb 2020 19:11:09 -0800 Date: Thu, 27 Feb 2020 11:09:12 +0800 From: Ye Xiaolong To: Wei Zhao Cc: dev@dpdk.org, stable@dpdk.org Message-ID: <20200227030912.GA20899@intel.com> References: <1582760662-9263-1-git-send-email-wei.zhao1@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1582760662-9263-1-git-send-email-wei.zhao1@intel.com> User-Agent: Mutt/1.9.4 (2018-02-28) Subject: Re: [dpdk-dev] [PATCH] net/ixgbe: fix issue for change definitions of bool X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi, On 02/27, Wei Zhao wrote: >We had better not to change code in base folder, that patch will >introduce a bug for etag/etag_strip for x550 NIC. So change back >to the aboriginal definition. > >Cc: stable@dpdk.org >Fixes: ad43b7bce95b ("net/ixgbe: avoid multiple definitions of bool") I think this patch makes sense to remove local bool type to avoid possible multiple definitions of 'bool', could you try to investigate the root cause of the bug that this patch revealed? Thanks, Xiaolong > >Signed-off-by: Wei Zhao >--- > drivers/net/ixgbe/base/ixgbe_osdep.h | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > >diff --git a/drivers/net/ixgbe/base/ixgbe_osdep.h b/drivers/net/ixgbe/base/ixgbe_osdep.h >index 844d1701f..19ce2d1c8 100644 >--- a/drivers/net/ixgbe/base/ixgbe_osdep.h >+++ b/drivers/net/ixgbe/base/ixgbe_osdep.h >@@ -9,7 +9,6 @@ > #include > #include > #include >-#include > #include > #include > #include >@@ -84,6 +83,10 @@ typedef uint32_t u32; > typedef int32_t s32; > typedef uint64_t u64; > >+#ifndef __cplusplus >+typedef int bool; >+#endif >+ > #define mb() rte_mb() > #define wmb() rte_wmb() > #define rmb() rte_rmb() >-- >2.17.1 >