From 4aae2d28efc9393b20b03bacf5c20691a285deb3 Mon Sep 17 00:00:00 2001 From: Jasvinder Singh Date: Tue, 6 Aug 2019 12:49:51 +0100 Subject: [PATCH] examples/ip_pipeline: fix TC oversubscription weight The sched library checks the subport tc ov weight value regardless of whether RTE_SCHED_SUBPORT_TC_OV flag is enabled or not. This fix allows application to always set valid tc ov weight value. error log SCHED: pipe_profile_check: Incorrect value for tc ov weight SCHED: rte_sched_port_check_params: Pipe profile check failed(-22) Command "tmgr" failed. Fixes: 25961ff3bcb9 ("examples/ip_pipeline: add traffic manager object") Cc: stable@dpdk.org Signed-off-by: Jasvinder Singh Acked-by: Cristian Dumitrescu --- examples/ip_pipeline/cli.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/examples/ip_pipeline/cli.c b/examples/ip_pipeline/cli.c index f4c2be8b8d..c6cf4204e2 100644 --- a/examples/ip_pipeline/cli.c +++ b/examples/ip_pipeline/cli.c @@ -469,12 +469,10 @@ cmd_tmgr_pipe_profile(char **tokens, return; } -#ifdef RTE_SCHED_SUBPORT_TC_OV if (parser_read_uint8(&p.tc_ov_weight, tokens[19]) != 0) { snprintf(out, out_size, MSG_ARG_INVALID, "tc_ov_weight"); return; } -#endif for (i = 0; i < RTE_SCHED_BE_QUEUES_PER_PIPE; i++) if (parser_read_uint8(&p.wrr_weights[i], tokens[20 + i]) != 0) { -- 2.20.1