From: Pablo de Lara Date: Fri, 19 Jan 2018 14:37:13 +0000 (+0000) Subject: test/pmd_perf: declare variables as static X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=532e5242db15b311594c4a633d520ed3ae87b38d;p=dpdk.git test/pmd_perf: declare variables as static Some variables in the PMD perf test were declared as global, but they are only used in this test, so they should actually be declared as static. Fixes: 002ade70e933 ("app/test: measure cycles per packet in Rx/Tx") Signed-off-by: Pablo de Lara --- diff --git a/test/test/test_pmd_perf.c b/test/test/test_pmd_perf.c index ee148bc8ed..911dd762c3 100644 --- a/test/test/test_pmd_perf.c +++ b/test/test/test_pmd_perf.c @@ -292,10 +292,10 @@ alloc_lcore(uint16_t socketid) return (uint16_t)-1; } -volatile uint64_t stop; -uint64_t count; -uint64_t drop; -uint64_t idle; +static volatile uint64_t stop; +static uint64_t count; +static uint64_t drop; +static uint64_t idle; static void reset_count(void) @@ -528,7 +528,7 @@ main_loop(__rte_unused void *args) return 0; } -rte_atomic64_t start; +static rte_atomic64_t start; static inline int poll_burst(void *args)