examples/ip_pipeline: fix TC oversubscription weight
authorJasvinder Singh <jasvinder.singh@intel.com>
Tue, 6 Aug 2019 11:49:51 +0000 (12:49 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 6 Aug 2019 13:22:48 +0000 (15:22 +0200)
commit4aae2d28efc9393b20b03bacf5c20691a285deb3
tree529c58db3542494dcb0bfd58dee5ea9dedc05062
parent9a710863decb1cdb98efbdd5e11df3ebcfcc37b6
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 <jasvinder.singh@intel.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
examples/ip_pipeline/cli.c