RDMA/rxe: Remove duplicate settings
authorXiao Yang <yangx.jy@fujitsu.com>
Thu, 30 Sep 2021 09:48:13 +0000 (17:48 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Wed, 6 Oct 2021 22:45:30 +0000 (19:45 -0300)
Remove duplicate settings for vendor_err and qp_num.

Link: https://lore.kernel.org/r/20210930094813.226888-5-yangx.jy@fujitsu.com
Signed-off-by: Xiao Yang <yangx.jy@fujitsu.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/sw/rxe/rxe_resp.c

index 4af0dc95784a811cce142b2a99beb437db46f3c7..e8f435fa6e4d7e04b5fc50d604cf265c8bf6fce6 100644 (file)
@@ -860,7 +860,6 @@ static enum resp_states do_complete(struct rxe_qp *qp,
                wc->opcode = (pkt->mask & RXE_IMMDT_MASK &&
                                pkt->mask & RXE_WRITE_MASK) ?
                                        IB_WC_RECV_RDMA_WITH_IMM : IB_WC_RECV;
-               wc->vendor_err = 0;
                wc->byte_len = (pkt->mask & RXE_IMMDT_MASK &&
                                pkt->mask & RXE_WRITE_MASK) ?
                                        qp->resp.length : wqe->dma.length - wqe->dma.resid;
@@ -881,8 +880,6 @@ static enum resp_states do_complete(struct rxe_qp *qp,
                                uwc->ex.invalidate_rkey = ieth_rkey(pkt);
                        }
 
-                       uwc->qp_num             = qp->ibqp.qp_num;
-
                        if (pkt->mask & RXE_DETH_MASK)
                                uwc->src_qp = deth_sqp(pkt);
 
@@ -914,7 +911,6 @@ static enum resp_states do_complete(struct rxe_qp *qp,
                        if (pkt->mask & RXE_DETH_MASK)
                                wc->src_qp = deth_sqp(pkt);
 
-                       wc->qp                  = &qp->ibqp;
                        wc->port_num            = qp->attr.port_num;
                }
        }