X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=app%2Ftest%2Ftest_sched.c;h=bd2776d38ef4e1300367f0551fae696e01971ebb;hb=2ee926f1fd00ff3565ac7bf05957e36b8be5aa61;hp=c7239f80ab4555c021385cda621e67e0275a73f7;hpb=ea0c20ea95fd5d71a10757e6598ac66233ea1495;p=dpdk.git diff --git a/app/test/test_sched.c b/app/test/test_sched.c index c7239f80ab..bd2776d38e 100644 --- a/app/test/test_sched.c +++ b/app/test/test_sched.c @@ -46,10 +46,10 @@ #include -#define SUBPORT 0 -#define PIPE 1 -#define TC 2 -#define QUEUE 3 +#define SUBPORT 0 +#define PIPE 1 +#define TC 2 +#define QUEUE 3 static struct rte_sched_subport_params subport_param[] = { { @@ -79,16 +79,15 @@ static struct rte_sched_port_params port_param = { .mtu = 1522, .frame_overhead = RTE_SCHED_FRAME_OVERHEAD_DEFAULT, .n_subports_per_port = 1, - .n_pipes_per_subport = 4096, - .qsize = {64, 64, 64, 64}, + .n_pipes_per_subport = 1024, + .qsize = {32, 32, 32, 32}, .pipe_profiles = pipe_profile, .n_pipe_profiles = 1, }; #define NB_MBUF 32 #define MBUF_DATA_SZ (2048 + RTE_PKTMBUF_HEADROOM) -#define PKT_BURST_SZ 32 -#define MEMPOOL_CACHE_SZ PKT_BURST_SZ +#define MEMPOOL_CACHE_SZ 0 #define SOCKET 0 @@ -214,8 +213,4 @@ test_sched(void) return 0; } -static struct test_command sched_cmd = { - .command = "sched_autotest", - .callback = test_sched, -}; -REGISTER_TEST_COMMAND(sched_cmd); +REGISTER_TEST_COMMAND(sched_autotest, test_sched);