[dpdk-dev] [PATCH] app/testpmd: consolidate two duplicate ifdefs into one.

Rami Rosen rami.rosen at intel.com
Tue Apr 18 00:56:30 CEST 2017


Cnsolidate the duplicate #ifdef RTE_TEST_PMD_RECORD_CORE_CYCLES 
into one #ifdef.

Signed-off-by: Rami Rosen <rami.rosen at intel.com>
---

 app/test-pmd/rxonly.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/app/test-pmd/rxonly.c b/app/test-pmd/rxonly.c
index dcc8346..dcd1d85 100644
--- a/app/test-pmd/rxonly.c
+++ b/app/test-pmd/rxonly.c
@@ -101,9 +101,7 @@ pkt_burst_receive(struct fwd_stream *fs)
 	uint64_t start_tsc;
 	uint64_t end_tsc;
 	uint64_t core_cycles;
-#endif
 
-#ifdef RTE_TEST_PMD_RECORD_CORE_CYCLES
 	start_tsc = rte_rdtsc();
 #endif
 
-- 
2.9.3



More information about the dev mailing list