Skip to content

Commit

Permalink
examples/qos_sched: fix config entries in wrong sections
Browse files Browse the repository at this point in the history
[ upstream commit 86dfed2a8ed704e013f054985a92d46f07ff48d1 ]

When specifying the QoS config, the profiles to be used for each pipe
within a subport must be specified in the subport section, not in the
section for the subport profile itself. Similarly for subport profiles,
those should be specified in the port section.

Fixes: de3cfa2 ("sched: initial import")

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
  • Loading branch information
bruce-richardson authored and bluca committed Mar 28, 2023
1 parent 019f31b commit e3779bd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions examples/qos_sched/profile.cfg
Expand Up @@ -26,6 +26,8 @@ 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

pipe 0-4095 = 0 ; These pipes are configured with pipe profile 0

[subport profile 0]
tb rate = 1250000000 ; Bytes per second
tb size = 1000000 ; Bytes
Expand All @@ -46,8 +48,6 @@ tc 12 rate = 1250000000 ; Bytes per second

tc period = 10 ; Milliseconds

pipe 0-4095 = 0 ; These pipes are configured with pipe profile 0

; Pipe configuration
[pipe profile 0]
tb rate = 305175 ; Bytes per second
Expand Down
6 changes: 3 additions & 3 deletions examples/qos_sched/profile_ov.cfg
Expand Up @@ -6,12 +6,14 @@
frame overhead = 24
number of subports per port = 1

subport 0-8 = 0

; Subport configuration
[subport 0]
number of pipes per subport = 32
queue sizes = 64 64 64 64 64 64 64 64 64 64 64 64 64

subport 0-8 = 0
pipe 0-31 = 0 ; These pipes are configured with pipe profile 0

[subport profile 0]
tb rate = 8400000 ; Bytes per second
Expand All @@ -32,8 +34,6 @@ tc 11 rate = 8400000 ; Bytes per second
tc 12 rate = 8400000 ; Bytes per second
tc period = 10 ; Milliseconds

pipe 0-31 = 0 ; These pipes are configured with pipe profile 0

; Pipe configuration
[pipe profile 0]
tb rate = 16800000 ; Bytes per second
Expand Down

0 comments on commit e3779bd

Please sign in to comment.