summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIntel <intel.com>2013-07-23 00:00:00 +0200
committerThomas Monjalon <thomas.monjalon@6wind.com>2013-09-17 14:16:10 +0200
commit624148d2b11f52228075d0a65f9840e7c47fac70 (patch)
treef90f920ef3a1cd60b6be5282f711d90738a982fa
parente93b24a3da57166218598d116bd3a2df7865974a (diff)
downloaddpdk-624148d2b11f52228075d0a65f9840e7c47fac70.zip
dpdk-624148d2b11f52228075d0a65f9840e7c47fac70.tar.gz
dpdk-624148d2b11f52228075d0a65f9840e7c47fac70.tar.xz
examples/qos_sched: minor changes
Signed-off-by: Intel
-rwxr-xr-xexamples/qos_sched/init.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/examples/qos_sched/init.c b/examples/qos_sched/init.c
index b2e7b71..6a1d830 100755
--- a/examples/qos_sched/init.c
+++ b/examples/qos_sched/init.c
@@ -201,7 +201,7 @@ static struct rte_sched_pipe_params pipe_profiles[RTE_SCHED_PIPE_PROFILES_PER_PO
};
struct rte_sched_port_params port_params = {
- .name = "port_0",
+ .name = "port_scheduler_0",
.socket = 0, /* computed */
.rate = 0, /* computed */
.mtu = 6 + 6 + 4 + 4 + 2 + 1500,
@@ -210,7 +210,7 @@ struct rte_sched_port_params port_params = {
.n_pipes_per_subport = 4096,
.qsize = {64, 64, 64, 64},
.pipe_profiles = pipe_profiles,
- .n_pipe_profiles = 1,
+ .n_pipe_profiles = sizeof(pipe_profiles) / sizeof(struct rte_sched_pipe_params),
#ifdef RTE_SCHED_RED
.red_params = {
@@ -354,8 +354,6 @@ int app_init(void)
if (qos_conf[i].mbuf_pool == NULL)
rte_exit(EXIT_FAILURE, "Cannot init mbuf pool for socket %u\n", i);
- //printf("MP = %d\n", rte_mempool_count(qos_conf[i].app_pktmbuf_pool));
-
app_init_port(qos_conf[i].rx_port, qos_conf[i].mbuf_pool);
app_init_port(qos_conf[i].tx_port, qos_conf[i].mbuf_pool);