Skip to content

Commit

Permalink
examples/qos_sched: fix number of subport profiles
Browse files Browse the repository at this point in the history
[ upstream commit 85ea681 ]

Removed unused subport field from profile.cfg
Correctly using subport profile id in subport config load.

Fixes: 802d214 ("examples/qos_sched: update subport rate dynamically")

Signed-off-by: Megha Ajmera <megha.ajmera@intel.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
  • Loading branch information
megha-ajmera authored and kevintraynor committed Nov 7, 2022
1 parent 7ab7b88 commit fbc3630
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion examples/qos_sched/cfg_file.c
Expand Up @@ -155,7 +155,7 @@ cfg_load_subport_profile(struct rte_cfgfile *cfg,

profiles = rte_cfgfile_num_sections(cfg, "subport profile",
sizeof("subport profile") - 1);
subport_params[0].n_pipe_profiles = profiles;
port_params.n_subport_profiles = profiles;

for (i = 0; i < profiles; i++) {
char sec_name[32];
Expand Down
2 changes: 0 additions & 2 deletions examples/qos_sched/profile.cfg
Expand Up @@ -26,8 +26,6 @@ number of subports per port = 1
number of pipes per subport = 4096
queue sizes = 64 64 64 64 64 64 64 64 64 64 64 64 64

subport 0-8 = 0 ; These subports are configured with subport profile 0

[subport profile 0]
tb rate = 1250000000 ; Bytes per second
tb size = 1000000 ; Bytes
Expand Down

0 comments on commit fbc3630

Please sign in to comment.