Skip to content

Commit 3fe26c0

Browse files
hz-chengrleon
authored andcommitted
RDMA/erdma: Fix some typos
FAA is short for atomic fetch and add, not FAD. Fix this. Fixes: 0ca9c2e ("RDMA/erdma: Implement atomic operations support") Signed-off-by: Cheng Xu <chengyou@linux.alibaba.com> Link: https://lore.kernel.org/r/20230320084652.16807-2-chengyou@linux.alibaba.com Signed-off-by: Leon Romanovsky <leon@kernel.org>
1 parent 88c9483 commit 3fe26c0

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

drivers/infiniband/hw/erdma/erdma_cq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ static const enum ib_wc_opcode wc_mapping_table[ERDMA_NUM_OPCODES] = {
6565
[ERDMA_OP_LOCAL_INV] = IB_WC_LOCAL_INV,
6666
[ERDMA_OP_READ_WITH_INV] = IB_WC_RDMA_READ,
6767
[ERDMA_OP_ATOMIC_CAS] = IB_WC_COMP_SWAP,
68-
[ERDMA_OP_ATOMIC_FAD] = IB_WC_FETCH_ADD,
68+
[ERDMA_OP_ATOMIC_FAA] = IB_WC_FETCH_ADD,
6969
};
7070

7171
static const struct {

drivers/infiniband/hw/erdma/erdma_hw.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ enum erdma_opcode {
491491
ERDMA_OP_LOCAL_INV = 15,
492492
ERDMA_OP_READ_WITH_INV = 16,
493493
ERDMA_OP_ATOMIC_CAS = 17,
494-
ERDMA_OP_ATOMIC_FAD = 18,
494+
ERDMA_OP_ATOMIC_FAA = 18,
495495
ERDMA_NUM_OPCODES = 19,
496496
ERDMA_OP_INVALID = ERDMA_NUM_OPCODES + 1
497497
};

drivers/infiniband/hw/erdma/erdma_qp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ static int erdma_push_one_sqe(struct erdma_qp *qp, u16 *pi,
439439
cpu_to_le64(atomic_wr(send_wr)->compare_add);
440440
} else {
441441
wqe_hdr |= FIELD_PREP(ERDMA_SQE_HDR_OPCODE_MASK,
442-
ERDMA_OP_ATOMIC_FAD);
442+
ERDMA_OP_ATOMIC_FAA);
443443
atomic_sqe->fetchadd_swap_data =
444444
cpu_to_le64(atomic_wr(send_wr)->compare_add);
445445
}

0 commit comments

Comments
 (0)