Commit 9ed4659
authored
UCT/GDAKI: Fix wqe_idx overflow (#10881)
uct_gdaki_wqe_prepare_put_or_atomic assumes
wqe_idx is at most UINT16_T_MAX but atomic & single
APIs passed sq_rsvd_index, an ever-incrementing
uint64_t counter.
Other submit APIs avoid this issue by using inc_mask() per lane,
which properly masks the WQE index down to uint16_t.
Signed-off-by: Itay Alroy <ialroy@nvidia.com>1 parent 0b2825b commit 9ed4659
2 files changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
| 112 | + | |
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| |||
0 commit comments