From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from alln-iport-7.cisco.com (alln-iport-7.cisco.com [173.37.142.94]) by dpdk.org (Postfix) with ESMTP id 84F443784 for ; Wed, 8 Apr 2015 05:29:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=1825; q=dns/txt; s=iport; t=1428463768; x=1429673368; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=wtN8Eurbk0RKOweqstykFQAXXYZjhheygamo1N5WGzU=; b=h2X2PbDVTgjAL9AAugoVzA6yA4rXOhZsJhD2fMQgWe+a23FAStMirG1b rfn0SSEICRaGw1KZNDjWWKtHkWhVqJj1kKRdatyuf988/SXWcHbV3ksAp 6W1LJGBhGlqqkrKoStBXVsoA+Ttu5Q7eR48XkY37Hh0eWIeeBEUWVPYFY A=; X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0BfBABZoCRV/4UNJK1cgwiBLgXDbwmHTwKBLzgUAQEBAQEBAX2EHwEBBDo/EAIBCDYQMiUCBA4FiCrLcAEBAQEBAQEBAQEBAQEBAQEBAQEZiyuEfAeELQEEkHSKB5RbIoNvb4FEfwEBAQ X-IronPort-AV: E=Sophos;i="5.11,541,1422921600"; d="scan'208";a="139203024" Received: from alln-core-11.cisco.com ([173.36.13.133]) by alln-iport-7.cisco.com with ESMTP; 08 Apr 2015 03:29:27 +0000 Received: from xhc-aln-x09.cisco.com (xhc-aln-x09.cisco.com [173.36.12.83]) by alln-core-11.cisco.com (8.14.5/8.14.5) with ESMTP id t383TRwN018253 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Wed, 8 Apr 2015 03:29:27 GMT Received: from xmb-aln-x07.cisco.com ([169.254.2.91]) by xhc-aln-x09.cisco.com ([173.36.12.83]) with mapi id 14.03.0195.001; Tue, 7 Apr 2015 22:29:27 -0500 From: "Sujith Sankar (ssujith)" To: Thomas Monjalon Thread-Topic: [PATCH] enic: disable debug traces Thread-Index: AQHQcVoIg/fleuhsnUa7sikNO34U751DJc2A Date: Wed, 8 Apr 2015 03:29:26 +0000 Message-ID: References: <1428428419-25145-1-git-send-email-thomas.monjalon@6wind.com> In-Reply-To: <1428428419-25145-1-git-send-email-thomas.monjalon@6wind.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.3.9.131030 x-originating-ip: [10.127.144.221] Content-Type: text/plain; charset="us-ascii" Content-ID: <9C8B1916193109428B23C506F4D86B49@emea.cisco.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] [PATCH] enic: disable debug traces X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Apr 2015 03:29:28 -0000 On 07/04/15 11:10 pm, "Thomas Monjalon" wrote: >The function name is printed in each enic_ethdev function. >Disable it by default with a new build option. > >Signed-off-by: Thomas Monjalon >--- > config/common_bsdapp | 1 + > config/common_linuxapp | 1 + > lib/librte_pmd_enic/enic_ethdev.c | 4 ++++ > 3 files changed, 6 insertions(+) > >diff --git a/config/common_bsdapp b/config/common_bsdapp >index a8ba484..c2374c0 100644 >--- a/config/common_bsdapp >+++ b/config/common_bsdapp >@@ -214,6 +214,7 @@ CONFIG_RTE_LIBRTE_MLX4_SOFT_COUNTERS=3D1 > # Compile burst-oriented Cisco ENIC PMD driver > # > CONFIG_RTE_LIBRTE_ENIC_PMD=3Dy >+CONFIG_RTE_LIBRTE_ENIC_DEBUG=3Dn >=20 > # > # Compile burst-oriented VIRTIO PMD driver >diff --git a/config/common_linuxapp b/config/common_linuxapp >index 0b25f34..0078dc9 100644 >--- a/config/common_linuxapp >+++ b/config/common_linuxapp >@@ -211,6 +211,7 @@ CONFIG_RTE_LIBRTE_MLX4_SOFT_COUNTERS=3D1 > # Compile burst-oriented Cisco ENIC PMD driver > # > CONFIG_RTE_LIBRTE_ENIC_PMD=3Dy >+CONFIG_RTE_LIBRTE_ENIC_DEBUG=3Dn >=20 > # > # Compile burst-oriented VIRTIO PMD driver >diff --git a/lib/librte_pmd_enic/enic_ethdev.c >b/lib/librte_pmd_enic/enic_ethdev.c >index 4950ede..18fadfb 100644 >--- a/lib/librte_pmd_enic/enic_ethdev.c >+++ b/lib/librte_pmd_enic/enic_ethdev.c >@@ -48,8 +48,12 @@ > #include "vnic_enet.h" > #include "enic.h" >=20 >+#ifdef RTE_LIBRTE_ENIC_DEBUG > #define ENICPMD_FUNC_TRACE() \ > RTE_LOG(DEBUG, PMD, "ENICPMD trace: %s\n", __func__) >+#else >+#define ENICPMD_FUNC_TRACE() do {} while (0) >+#endif >=20 > /* > * The set of PCI devices this driver supports >--=20 >2.2.2 > Acked-by: Sujith Sankar >