enic: disable debug traces
authorThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 7 Apr 2015 17:17:06 +0000 (19:17 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 13 Apr 2015 19:48:27 +0000 (21:48 +0200)
The function name is printed in each enic_ethdev function.
Disable it by default with a new build option.

Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
Acked-by: Sujith Sankar <ssujith@cisco.com>
Reviewed-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
config/common_bsdapp
config/common_linuxapp
lib/librte_pmd_enic/enic_ethdev.c

index a8ba484..c2374c0 100644 (file)
@@ -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
index 0b25f34..0078dc9 100644 (file)
@@ -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
index 4950ede..3f45f19 100644 (file)
 #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