examples/qos_sched: add TC and queue config flexibility
[dpdk.git] / examples / qos_sched / profile.cfg
1 ;   BSD LICENSE
2 ;
3 ;   Copyright(c) 2010-2019 Intel Corporation. All rights reserved.
4 ;   All rights reserved.
5 ;
6 ;   Redistribution and use in source and binary forms, with or without
7 ;   modification, are permitted provided that the following conditions
8 ;   are met:
9 ;
10 ;     * Redistributions of source code must retain the above copyright
11 ;       notice, this list of conditions and the following disclaimer.
12 ;     * Redistributions in binary form must reproduce the above copyright
13 ;       notice, this list of conditions and the following disclaimer in
14 ;       the documentation and/or other materials provided with the
15 ;       distribution.
16 ;     * Neither the name of Intel Corporation nor the names of its
17 ;       contributors may be used to endorse or promote products derived
18 ;       from this software without specific prior written permission.
19 ;
20 ;   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21 ;   "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22 ;   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23 ;   A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24 ;   OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25 ;   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26 ;   LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27 ;   DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28 ;   THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29 ;   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30 ;   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31
32 ; This file enables the following hierarchical scheduler configuration for each
33 ; 10GbE output port:
34 ;       * Single subport (subport 0):
35 ;               - Subport rate set to 100% of port rate
36 ;               - Each of the 13 traffic classes has rate set to 100% of port rate
37 ;       * 4K pipes per subport 0 (pipes 0 .. 4095) with identical configuration:
38 ;               - Pipe rate set to 1/4K of port rate
39 ;               - Each of the 13 traffic classes has rate set to 100% of pipe rate
40 ;               - Within lowest priority traffic class (best-effort), the byte-level
41 ;                 WRR weights for the 4 queues of best effort traffic class are set
42 ;                 to 1:1:1:1
43 ;
44 ; For more details, please refer to chapter "Quality of Service (QoS) Framework"
45 ; of Data Plane Development Kit (DPDK) Programmer's Guide.
46
47 ; Port configuration
48 [port]
49 frame overhead = 24
50 number of subports per port = 1
51 number of pipes per subport = 4096
52 queue sizes = 64 64 64 64 64 64 64 64 64 64 64 64 64
53
54 ; Subport configuration
55 [subport 0]
56 tb rate = 1250000000           ; Bytes per second
57 tb size = 1000000              ; Bytes
58
59 tc 0 rate = 1250000000         ; Bytes per second
60 tc 1 rate = 1250000000         ; Bytes per second
61 tc 2 rate = 1250000000         ; Bytes per second
62 tc 3 rate = 1250000000         ; Bytes per second
63 tc 4 rate = 1250000000         ; Bytes per second
64 tc 5 rate = 1250000000         ; Bytes per second
65 tc 6 rate = 1250000000         ; Bytes per second
66 tc 7 rate = 1250000000         ; Bytes per second
67 tc 8 rate = 1250000000         ; Bytes per second
68 tc 9 rate = 1250000000         ; Bytes per second
69 tc 10 rate = 1250000000        ; Bytes per second
70 tc 11 rate = 1250000000        ; Bytes per second
71 tc 12 rate = 1250000000        ; Bytes per second
72
73 tc period = 10                 ; Milliseconds
74
75 pipe 0-4095 = 0                ; These pipes are configured with pipe profile 0
76
77 ; Pipe configuration
78 [pipe profile 0]
79 tb rate = 305175               ; Bytes per second
80 tb size = 1000000              ; Bytes
81
82 tc 0 rate = 305175             ; Bytes per second
83 tc 1 rate = 305175             ; Bytes per second
84 tc 2 rate = 305175             ; Bytes per second
85 tc 3 rate = 305175             ; Bytes per second
86 tc 4 rate = 305175             ; Bytes per second
87 tc 5 rate = 305175             ; Bytes per second
88 tc 6 rate = 305175             ; Bytes per second
89 tc 7 rate = 305175             ; Bytes per second
90 tc 8 rate = 305175             ; Bytes per second
91 tc 9 rate = 305175             ; Bytes per second
92 tc 10 rate = 305175            ; Bytes per second
93 tc 11 rate = 305175            ; Bytes per second
94 tc 12 rate = 305175            ; Bytes per second
95
96 tc period = 40                ; Milliseconds
97
98 tc 12 oversubscription weight = 1
99
100 tc 12 wrr weights = 1 1 1 1
101
102 ; RED params per traffic class and color (Green / Yellow / Red)
103 [red]
104 tc 0 wred min = 48 40 32
105 tc 0 wred max = 64 64 64
106 tc 0 wred inv prob = 10 10 10
107 tc 0 wred weight = 9 9 9
108
109 tc 1 wred min = 48 40 32
110 tc 1 wred max = 64 64 64
111 tc 1 wred inv prob = 10 10 10
112 tc 1 wred weight = 9 9 9
113
114 tc 2 wred min = 48 40 32
115 tc 2 wred max = 64 64 64
116 tc 2 wred inv prob = 10 10 10
117 tc 2 wred weight = 9 9 9
118
119 tc 3 wred min = 48 40 32
120 tc 3 wred max = 64 64 64
121 tc 3 wred inv prob = 10 10 10
122 tc 3 wred weight = 9 9 9
123
124 tc 4 wred min = 48 40 32
125 tc 4 wred max = 64 64 64
126 tc 4 wred inv prob = 10 10 10
127 tc 4 wred weight = 9 9 9
128
129 tc 5 wred min = 48 40 32
130 tc 5 wred max = 64 64 64
131 tc 5 wred inv prob = 10 10 10
132 tc 5 wred weight = 9 9 9
133
134 tc 6 wred min = 48 40 32
135 tc 6 wred max = 64 64 64
136 tc 6 wred inv prob = 10 10 10
137 tc 6 wred weight = 9 9 9
138
139 tc 7 wred min = 48 40 32
140 tc 7 wred max = 64 64 64
141 tc 7 wred inv prob = 10 10 10
142 tc 7 wred weight = 9 9 9
143
144 tc 8 wred min = 48 40 32
145 tc 8 wred max = 64 64 64
146 tc 8 wred inv prob = 10 10 10
147 tc 8 wred weight = 9 9 9