Commit 8962d27
committed
UCT/IB: Fix RoCE version extraction with traffic class flag
The UCT_IB_ADDRESS_FLAG_TRAFFIC_CLASS at BIT(7) overlaps with the
RoCE version bits in the flags byte. The version extraction does
flags >> 5, which includes bit 7, corrupting the RoCE version when
traffic class is packed. Mask out the traffic class flag before
extracting the version.
Also initialize traffic_class in test pack_params to avoid reading
uninitialized memory when the traffic class flag is set.1 parent fddaa2b commit 8962d27
2 files changed
Lines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
356 | | - | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
357 | 361 | | |
358 | 362 | | |
359 | 363 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
106 | | - | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
107 | 108 | | |
108 | 109 | | |
109 | 110 | | |
| |||
0 commit comments