diff options
author | Selvin Xavier <selvin.xavier@broadcom.com> | 2016-02-05 20:06:39 +0530 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-02-05 15:14:28 -0500 |
commit | aff3ead9fa25b2a472d1a894365f66b28e1e2787 (patch) | |
tree | c9af2244cfea45234d94bb8403e79c95063e61b0 /drivers/infiniband/hw/ocrdma/ocrdma_verbs.c | |
parent | 7d82df1663e8a66961954258f3a99701f0126e73 (diff) | |
download | linux-aff3ead9fa25b2a472d1a894365f66b28e1e2787.tar.gz linux-aff3ead9fa25b2a472d1a894365f66b28e1e2787.tar.bz2 linux-aff3ead9fa25b2a472d1a894365f66b28e1e2787.zip |
RDMA/ocrdma: Fix pkey_index returned by driver in rq work completion
Currently returning the pkey value instead of pkey index.
pkey index is always zero since ocrdma supports only default
pkey.
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/ocrdma/ocrdma_verbs.c')
-rw-r--r-- | drivers/infiniband/hw/ocrdma/ocrdma_verbs.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/ocrdma/ocrdma_verbs.c b/drivers/infiniband/hw/ocrdma/ocrdma_verbs.c index 7cf1324ad081..37620b4baafb 100644 --- a/drivers/infiniband/hw/ocrdma/ocrdma_verbs.c +++ b/drivers/infiniband/hw/ocrdma/ocrdma_verbs.c @@ -2726,8 +2726,7 @@ static int ocrdma_update_ud_rcqe(struct ib_wc *ibwc, struct ocrdma_cqe *cqe) OCRDMA_CQE_UD_STATUS_MASK) >> OCRDMA_CQE_UD_STATUS_SHIFT; ibwc->src_qp = le32_to_cpu(cqe->flags_status_srcqpn) & OCRDMA_CQE_SRCQP_MASK; - ibwc->pkey_index = le32_to_cpu(cqe->ud.rxlen_pkey) & - OCRDMA_CQE_PKEY_MASK; + ibwc->pkey_index = 0; ibwc->wc_flags = IB_WC_GRH; ibwc->byte_len = (le32_to_cpu(cqe->ud.rxlen_pkey) >> OCRDMA_CQE_UD_XFER_LEN_SHIFT); |