From: Thomas Monjalon Date: Tue, 7 Apr 2015 17:17:06 +0000 (+0200) Subject: enic: disable debug traces X-Git-Tag: spdx-start~9326 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=277d8a3e0b3e11070ed1a2771db7d5f314ba9a7f;p=dpdk.git enic: disable debug traces The function name is printed in each enic_ethdev function. Disable it by default with a new build option. Signed-off-by: Thomas Monjalon Acked-by: Sujith Sankar Reviewed-by: Adrien Mazarguil --- diff --git a/config/common_bsdapp b/config/common_bsdapp index a8ba48424b..c2374c03dc 100644 --- a/config/common_bsdapp +++ b/config/common_bsdapp @@ -214,6 +214,7 @@ CONFIG_RTE_LIBRTE_MLX4_SOFT_COUNTERS=1 # Compile burst-oriented Cisco ENIC PMD driver # CONFIG_RTE_LIBRTE_ENIC_PMD=y +CONFIG_RTE_LIBRTE_ENIC_DEBUG=n # # Compile burst-oriented VIRTIO PMD driver diff --git a/config/common_linuxapp b/config/common_linuxapp index 0b25f340e7..0078dc9e0e 100644 --- a/config/common_linuxapp +++ b/config/common_linuxapp @@ -211,6 +211,7 @@ CONFIG_RTE_LIBRTE_MLX4_SOFT_COUNTERS=1 # Compile burst-oriented Cisco ENIC PMD driver # CONFIG_RTE_LIBRTE_ENIC_PMD=y +CONFIG_RTE_LIBRTE_ENIC_DEBUG=n # # 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 4950edeb16..3f45f19637 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" +#ifdef RTE_LIBRTE_ENIC_DEBUG #define ENICPMD_FUNC_TRACE() \ RTE_LOG(DEBUG, PMD, "ENICPMD trace: %s\n", __func__) +#else +#define ENICPMD_FUNC_TRACE() (void)0 +#endif /* * The set of PCI devices this driver supports