mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
bnxt_re: Fix compare and swap atomic operands
Driver must assign the user supplied compare/swap values in the wqe to successfully complete the atomic compare and swap operation. Signed-off-by: Devesh Sharma <[email protected]> Signed-off-by: Somnath Kotur <[email protected]> Signed-off-by: Doug Ledford <[email protected]>
This commit is contained in:
parent
2b6376305d
commit
55311d0551
1 changed files with 1 additions and 0 deletions
|
|
@ -1916,6 +1916,7 @@ static int bnxt_re_build_atomic_wqe(struct ib_send_wr *wr,
|
|||
switch (wr->opcode) {
|
||||
case IB_WR_ATOMIC_CMP_AND_SWP:
|
||||
wqe->type = BNXT_QPLIB_SWQE_TYPE_ATOMIC_CMP_AND_SWP;
|
||||
wqe->atomic.cmp_data = atomic_wr(wr)->compare_add;
|
||||
wqe->atomic.swap_data = atomic_wr(wr)->swap;
|
||||
break;
|
||||
case IB_WR_ATOMIC_FETCH_AND_ADD:
|
||||
|
|
|
|||
Loading…
Reference in a new issue