Commit 98c80263 authored by Bob Pearson's avatar Bob Pearson Committed by Jason Gunthorpe

RDMA/rxe: Remove reliable datagram support

The rdma_rxe driver does not actually support the reliable datagram
transport but contains two references to RD opcodes in driver code.  This
commit removes these references to RD transport opcodes which are never
used.

Link: https://lore.kernel.org/r/cce0f07d-25fc-5880-69e7-001d951750b7@gmail.comSigned-off-by: default avatarBob Pearson <rpearsonhpe@gmail.com>
Signed-off-by: default avatarJason Gunthorpe <jgg@nvidia.com>
parent 409baed5
...@@ -413,8 +413,7 @@ static struct sk_buff *init_req_packet(struct rxe_qp *qp, ...@@ -413,8 +413,7 @@ static struct sk_buff *init_req_packet(struct rxe_qp *qp,
if (pkt->mask & RXE_ATMETH_MASK) { if (pkt->mask & RXE_ATMETH_MASK) {
atmeth_set_va(pkt, wqe->iova); atmeth_set_va(pkt, wqe->iova);
if (opcode == IB_OPCODE_RC_COMPARE_SWAP || if (opcode == IB_OPCODE_RC_COMPARE_SWAP) {
opcode == IB_OPCODE_RD_COMPARE_SWAP) {
atmeth_set_swap_add(pkt, ibwr->wr.atomic.swap); atmeth_set_swap_add(pkt, ibwr->wr.atomic.swap);
atmeth_set_comp(pkt, ibwr->wr.atomic.compare_add); atmeth_set_comp(pkt, ibwr->wr.atomic.compare_add);
} else { } else {
......
...@@ -576,8 +576,7 @@ static enum resp_states process_atomic(struct rxe_qp *qp, ...@@ -576,8 +576,7 @@ static enum resp_states process_atomic(struct rxe_qp *qp,
qp->resp.atomic_orig = *vaddr; qp->resp.atomic_orig = *vaddr;
if (pkt->opcode == IB_OPCODE_RC_COMPARE_SWAP || if (pkt->opcode == IB_OPCODE_RC_COMPARE_SWAP) {
pkt->opcode == IB_OPCODE_RD_COMPARE_SWAP) {
if (*vaddr == atmeth_comp(pkt)) if (*vaddr == atmeth_comp(pkt))
*vaddr = atmeth_swap_add(pkt); *vaddr = atmeth_swap_add(pkt);
} else { } else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment