Commit 7e8b1bb
add NIC_TRAFFIC_CLASS and NIC_SERVICE_LEVEL env vars for DSCP marking (#315)
Adds support for marking RoCE/IB traffic with specific DSCP/QoS values.
- NIC_TRAFFIC_CLASS (default=0): sets the DSCP/traffic class byte in the
RoCE GRH (grh.traffic_class) when transitioning QPs to RTR state.
- NIC_SERVICE_LEVEL (default=0): sets the IB service level (ah_attr.sl)
on QPs. This applies to IB and RoCE connections.
- NicOptions: I added uint8_t serviceLevel and uint8_t trafficClass fields
- TransitionQpToRtr(): accepts trafficClass and serviceLevel as parameters;
sets grh.traffic_class (RoCE only) and ah_attr.sl (all QP types)
---------
Co-authored-by: Pak Nin Lui <paklui@smc300x-ccs-aus-gpuf2c9.prov.aus.ccs.cpe.ice.amd.com>1 parent e923e24 commit 7e8b1bb
3 files changed
Lines changed: 35 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| 123 | + | |
| 124 | + | |
123 | 125 | | |
124 | 126 | | |
125 | 127 | | |
| |||
185 | 187 | | |
186 | 188 | | |
187 | 189 | | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
188 | 202 | | |
189 | 203 | | |
190 | 204 | | |
| |||
366 | 380 | | |
367 | 381 | | |
368 | 382 | | |
| 383 | + | |
| 384 | + | |
369 | 385 | | |
370 | 386 | | |
371 | 387 | | |
| |||
504 | 520 | | |
505 | 521 | | |
506 | 522 | | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
507 | 527 | | |
508 | 528 | | |
509 | 529 | | |
| |||
725 | 745 | | |
726 | 746 | | |
727 | 747 | | |
| 748 | + | |
| 749 | + | |
728 | 750 | | |
729 | 751 | | |
730 | 752 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
| 273 | + | |
| 274 | + | |
273 | 275 | | |
274 | 276 | | |
275 | 277 | | |
| |||
2000 | 2002 | | |
2001 | 2003 | | |
2002 | 2004 | | |
| 2005 | + | |
| 2006 | + | |
2003 | 2007 | | |
2004 | 2008 | | |
2005 | 2009 | | |
| |||
3284 | 3288 | | |
3285 | 3289 | | |
3286 | 3290 | | |
3287 | | - | |
| 3291 | + | |
| 3292 | + | |
| 3293 | + | |
3288 | 3294 | | |
3289 | 3295 | | |
3290 | 3296 | | |
| |||
3300 | 3306 | | |
3301 | 3307 | | |
3302 | 3308 | | |
| 3309 | + | |
3303 | 3310 | | |
3304 | 3311 | | |
3305 | 3312 | | |
3306 | 3313 | | |
3307 | | - | |
| 3314 | + | |
3308 | 3315 | | |
3309 | 3316 | | |
3310 | 3317 | | |
| |||
3588 | 3595 | | |
3589 | 3596 | | |
3590 | 3597 | | |
3591 | | - | |
| 3598 | + | |
3592 | 3599 | | |
3593 | 3600 | | |
3594 | 3601 | | |
| |||
3603 | 3610 | | |
3604 | 3611 | | |
3605 | 3612 | | |
3606 | | - | |
| 3613 | + | |
3607 | 3614 | | |
3608 | 3615 | | |
3609 | 3616 | | |
| |||
0 commit comments