summaryrefslogtreecommitdiff
path: root/drivers/infiniband/hw/ocrdma/ocrdma_hw.c
diff options
context:
space:
mode:
authorDevesh Sharma <devesh.sharma@emulex.com>2014-07-02 11:36:04 +0530
committerRoland Dreier <roland@purestorage.com>2014-08-12 22:07:30 -0700
commit0ea8726250cae3defa0c1065801017f26a269c93 (patch)
tree06712b6edb9ed314d049ad6bb6a1731a9704fc4f /drivers/infiniband/hw/ocrdma/ocrdma_hw.c
parent741742ed71c2cc12573ea6cf41ef1fbb3b2efe97 (diff)
RDMA/ocrdma: Obtain SL from device structure
Currently, driver obtains service level value from ah_attr->sl field. However, this field is set to zero all the times from rdma-cm. This patch allows create_ah to obtain service level from dev->sl. Signed-off-by: Devesh Sharma <devesh.sharma@emulex.com> Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband/hw/ocrdma/ocrdma_hw.c')
-rw-r--r--drivers/infiniband/hw/ocrdma/ocrdma_hw.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/infiniband/hw/ocrdma/ocrdma_hw.c b/drivers/infiniband/hw/ocrdma/ocrdma_hw.c
index a4d27c70528f..df68782b32d1 100644
--- a/drivers/infiniband/hw/ocrdma/ocrdma_hw.c
+++ b/drivers/infiniband/hw/ocrdma/ocrdma_hw.c
@@ -2314,10 +2314,8 @@ static int ocrdma_set_av_params(struct ocrdma_qp *qp,
cmd->params.vlan_dmac_b4_to_b5 |=
vlan_id << OCRDMA_QP_PARAMS_VLAN_SHIFT;
cmd->flags |= OCRDMA_QP_PARA_VLAN_EN_VALID;
- /* override the sl with default priority if 0 */
cmd->params.rnt_rc_sl_fl |=
- (ah_attr->sl ? ah_attr->sl :
- qp->dev->sl) << OCRDMA_QP_PARAMS_SL_SHIFT;
+ (qp->dev->sl & 0x07) << OCRDMA_QP_PARAMS_SL_SHIFT;
}
return 0;
}