5113f6f70
김현기
kernel add
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
|
/*
* Common DT bindings for Network QoS on Keystone SoCs
*
* Copyright (C) 2015 Texas Instruments, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
droppolicies: default-drop-policies {
no-drop {
default;
packet-units;
limit = <0>;
};
tail-drop-64pkts {
packet-units;
limit = <64>;
};
tail-drop-100pkts {
packet-units;
limit = <100>;
};
tail-drop-32kb {
byte-units;
limit = <32768>;
};
tail-drop-64kb {
byte-units;
limit = <65536>;
};
red-32kb-128kb {
byte-units;
limit = <196608>;
random-early-drop = <32768 131072 2 2000>;
};
red-32kb-64kb {
byte-units;
limit = <131072>;
random-early-drop = <32768 65536 2 2000>;
};
all-drop {
byte-units;
limit = <0>;
};
};
qostree0: qos-tree-0 {
strict-priority; /* or weighted-round-robin */
byte-units; /* packet-units or byte-units */
output-rate = <31250000 25000>;
overhead-bytes = <24>; /* valid only if units are bytes */
high-priority {
byte-units; /* packet-units or byte-units */
priority = <0>;
signaling {
input-queues = <8046 8071>;
stats-class = "fastpath-hp";
drop-policy = "no-drop";
};
linux-signaling {
input-queues = <8077>;
stats-class = "linux-hp";
drop-policy = "no-drop";
};
};
wrr-aggregator {
weighted-round-robin;
priority = <1>;
byte-units; /* packet-units or byte-units */
output-rate = <25000000 25000>;
overhead-bytes = <24>; /* valid only if units are
* bytes
*/
wrr-cos0 {
weighted-round-robin; /* or weighted-round-robin */
byte-units; /* packet-units or byte-units */
weight = <20>;
overhead-bytes = <24>; /* valid only if units are
* bytes
*/
4g-cos0 {
drop-policy = "tail-drop-32kb";
weight = <5>;
input-queues = <8010 8065>;
stats-class = "cos0";
};
3g-cos0 {
drop-policy = "tail-drop-32kb";
weight = <5>;
input-queues = <8012>;
stats-class = "cos0";
};
wifi-cos0 {
drop-policy = "tail-drop-32kb";
weight = <5>;
input-queues = <8014>;
stats-class = "cos0";
};
linux-cos0 {
drop-policy = "tail-drop-32kb";
weight = <5>;
input-queues = <8073>;
stats-class = "linux-cos0";
};
};
wrr-cos1 {
weighted-round-robin; /* or weighted-round-robin */
byte-units; /* packet-units or byte-units */
weight = <40>;
overhead-bytes = <24>; /* valid only if units are
* bytes
*/
4g-cos1 {
drop-policy = "red-32kb-128kb";
weight = <10>;
input-queues = <8018 8066>;
stats-class = "cos1";
};
3g-cos1 {
drop-policy = "red-32kb-128kb";
weight = <10>;
input-queues = <8020>;
stats-class = "cos1";
};
wifi-cos1 {
drop-policy = "red-32kb-128kb";
weight = <10>;
input-queues = <8022>;
stats-class = "cos1";
};
linux-cos1 {
drop-policy = "red-32kb-128kb";
weight = <10>;
input-queues = <8074>;
stats-class = "linux-cos1";
};
};
wrr-cos2 {
weighted-round-robin; /* or weighted-round-robin */
byte-units; /* packet-units or byte-units */
weight = <60>;
overhead-bytes = <24>; /* valid only if units are
* bytes
*/
4g-cos2 {
drop-policy = "red-32kb-64kb";
weight = <15>;
input-queues = <8026 8067>;
stats-class = "cos2";
};
3g-cos2 {
drop-policy = "red-32kb-64kb";
weight = <15>;
input-queues = <8028>;
stats-class = "cos2";
};
wifi-cos2 {
drop-policy = "red-32kb-64kb";
weight = <15>;
input-queues = <8030>;
stats-class = "cos2";
};
linux-cos2 {
drop-policy = "red-32kb-64kb";
weight = <15>;
input-queues = <8075>;
stats-class = "linux-cos2";
};
};
wrr-cos3 {
weighted-round-robin; /* or weighted-round-robin */
byte-units; /* packet-units or byte-units */
weight = <80>;
overhead-bytes = <24>; /* valid only if units are
* bytes
*/
4g-cos3 {
drop-policy = "tail-drop-64kb";
weight = <20>;
input-queues = <8034 8068>;
stats-class = "cos3";
};
3g-cos3 {
drop-policy = "tail-drop-64kb";
weight = <20>;
input-queues = <8036>;
stats-class = "cos3";
};
wifi-cos3 {
drop-policy = "tail-drop-64kb";
weight = <20>;
input-queues = <8038>;
stats-class = "cos3";
};
linux-cos3 {
drop-policy = "tail-drop-64kb";
weight = <20>;
input-queues = <8076>;
stats-class = "linux-cos3";
};
};
};
best-effort {
byte-units; /* packet-units or byte-units */
priority = <2>;
drop-policy = "tail-drop-64kb";
fastpath-best-effort {
/* queues between 8000 to 8063 not assigned
* in the above nodes are assigned below as
* unclassified DSCP values
* queues between 8064 to 8071 not assigned
* in the above nodes are assigned below as
* unclassified VLAN p-bit values
*/
input-queues = <8000 8001 8002 8003 8004
8005 8006 8007 8008 8009 8011
8013 8015 8016 8017 8019 8021
8023 8024 8025 8027 8029 8031
8032 8033 8035 8037 8039 8040
8041 8042 8043 8044 8045 8047
8048 8049 8050 8051 8052 8053
8054 8055 8056 8057 8058 8059
8060 8061 8062 8063
8064 8069 8070>;
stats-class = "fastpath-be";
};
linux-best-effort {
input-queues = <8072>;
stats-class = "linux-be";
};
};
};
qostree1: qos-tree-1 {
strict-priority; /* or weighted-round-robin */
byte-units; /* packet-units or byte-units */
output-rate = <31250000 25000>;
overhead-bytes = <24>; /* valid only if units are bytes */
high-priority {
byte-units; /* packet-units or byte-units */
priority = <0>;
signaling {
input-queues = <6446 6471>;
stats-class = "fastpath-hp";
drop-policy = "no-drop";
};
linux-signaling {
input-queues = <6477>;
stats-class = "linux-hp";
drop-policy = "no-drop";
};
};
wrr-aggregator {
weighted-round-robin;
priority = <1>;
byte-units; /* packet-units or byte-units */
output-rate = <25000000 25000>;
overhead-bytes = <24>; /* valid only if units are
* bytes
*/
wrr-cos0 {
weighted-round-robin; /* or weighted-round-robin */
byte-units; /* packet-units or byte-units */
weight = <20>;
overhead-bytes = <24>; /* valid only if units are
* bytes
*/
4g-cos0 {
drop-policy = "tail-drop-32kb";
weight = <5>;
input-queues = <6410 6465>;
stats-class = "cos0";
};
3g-cos0 {
drop-policy = "tail-drop-32kb";
weight = <5>;
input-queues = <6412>;
stats-class = "cos0";
};
wifi-cos0 {
drop-policy = "tail-drop-32kb";
weight = <5>;
input-queues = <6414>;
stats-class = "cos0";
};
linux-cos0 {
drop-policy = "tail-drop-32kb";
weight = <5>;
input-queues = <6473>;
stats-class = "linux-cos0";
};
};
wrr-cos1 {
weighted-round-robin; /* or weighted-round-robin */
byte-units; /* packet-units or byte-units */
weight = <40>;
overhead-bytes = <24>; /* valid only if units are
* bytes
*/
4g-cos1 {
drop-policy = "red-32kb-128kb";
weight = <10>;
input-queues = <6418 6466>;
stats-class = "cos1";
};
3g-cos1 {
drop-policy = "red-32kb-128kb";
weight = <10>;
input-queues = <6420>;
stats-class = "cos1";
};
wifi-cos1 {
drop-policy = "red-32kb-128kb";
weight = <10>;
input-queues = <6422>;
stats-class = "cos1";
};
linux-cos1 {
drop-policy = "red-32kb-128kb";
weight = <10>;
input-queues = <6474>;
stats-class = "linux-cos1";
};
};
wrr-cos2 {
weighted-round-robin; /* or weighted-round-robin */
byte-units; /* packet-units or byte-units */
weight = <60>;
overhead-bytes = <24>; /* valid only if units are
* bytes
*/
4g-cos2 {
drop-policy = "red-32kb-64kb";
weight = <15>;
input-queues = <6426 6467>;
stats-class = "cos2";
};
3g-cos2 {
drop-policy = "red-32kb-64kb";
weight = <15>;
input-queues = <6428>;
stats-class = "cos2";
};
wifi-cos2 {
drop-policy = "red-32kb-64kb";
weight = <15>;
input-queues = <6430>;
stats-class = "cos2";
};
linux-cos2 {
drop-policy = "red-32kb-64kb";
weight = <15>;
input-queues = <6475>;
stats-class = "linux-cos2";
};
};
wrr-cos3 {
weighted-round-robin; /* or weighted-round-robin */
byte-units; /* packet-units or byte-units */
weight = <80>;
overhead-bytes = <24>; /* valid only if units are
* bytes
*/
4g-cos3 {
drop-policy = "tail-drop-64kb";
weight = <20>;
input-queues = <6434 6468>;
stats-class = "cos3";
};
3g-cos3 {
drop-policy = "tail-drop-64kb";
weight = <20>;
input-queues = <6436>;
stats-class = "cos3";
};
wifi-cos3 {
drop-policy = "tail-drop-64kb";
weight = <20>;
input-queues = <6438>;
stats-class = "cos3";
};
linux-cos3 {
drop-policy = "tail-drop-64kb";
weight = <20>;
input-queues = <6476>;
stats-class = "linux-cos3";
};
};
};
best-effort {
byte-units; /* packet-units or byte-units */
priority = <2>;
drop-policy = "tail-drop-64kb";
fastpath-best-effort {
/* queues between 6000 to 6063 not assigned
* in the above nodes are assigned below as
* unclassified DSCP values
* queues between 6064 to 6071 not assigned
* in the above nodes are assigned below as
* unclassified VLAN p-bit values
*/
input-queues = <6400 6401 6402 6403 6404
6405 6406 6407 6408 6409 6411
6413 6415 6416 6417 6419 6421
6423 6424 6425 6427 6429 6431
6432 6433 6435 6437 6439 6440
6441 6442 6443 6444 6445 6447
6448 6449 6450 6451 6452 6453
6454 6455 6456 6457 6458 6459
6460 6461 6462 6463
6464 6469 6470>;
stats-class = "fastpath-be";
};
linux-best-effort {
input-queues = <6472>;
stats-class = "linux-be";
};
};
};
|