X-Git-Url: http://git.droids-corp.org/?p=dpdk.git;a=blobdiff_plain;f=app%2Ftest%2Ftest_distributor_perf.c;h=8a6b85543815e5fac304c1985eee0925d18a3879;hp=1031baabb4262ae2a60e236fae2b76b81b66e712;hb=942405f9e2f2c22aa817be374ccfe939a72df2ce;hpb=727909c5923147d0c7c0091a0f791432fa954431 diff --git a/app/test/test_distributor_perf.c b/app/test/test_distributor_perf.c index 1031baabb4..8a6b855438 100644 --- a/app/test/test_distributor_perf.c +++ b/app/test/test_distributor_perf.c @@ -212,7 +212,7 @@ quit_workers(struct rte_distributor *d, struct rte_mempool *p) #define MBUF_SIZE (2048 + sizeof(struct rte_mbuf) + RTE_PKTMBUF_HEADROOM) -int +static int test_distributor_perf(void) { static struct rte_distributor *d; @@ -261,15 +261,9 @@ test_distributor_perf(void) return 0; } -#else - -#include - -int -test_distributor_perf(void) -{ - printf("Distributor is not enabled in configuration\n"); - return 0; -} - +static struct test_command distributor_perf_cmd = { + .command = "distributor_perf_autotest", + .callback = test_distributor_perf, +}; +REGISTER_TEST_COMMAND(distributor_perf_cmd); #endif