RDMA/ocrdma: Fix traffic class shift
Use correct value for obtaining traffic class from device response for Query QP request. Signed-off-by: Devesh Sharma <devesh.sharma@emulex.com> Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Roland Dreier <roland@purestorage.com>
This commit is contained in:
parent
38dbfb59d1
commit
a61d93d92f
1 changed files with 1 additions and 1 deletions
|
@ -1416,7 +1416,7 @@ int ocrdma_query_qp(struct ib_qp *ibqp,
|
|||
OCRDMA_QP_PARAMS_HOP_LMT_MASK) >>
|
||||
OCRDMA_QP_PARAMS_HOP_LMT_SHIFT;
|
||||
qp_attr->ah_attr.grh.traffic_class = (params.tclass_sq_psn &
|
||||
OCRDMA_QP_PARAMS_SQ_PSN_MASK) >>
|
||||
OCRDMA_QP_PARAMS_TCLASS_MASK) >>
|
||||
OCRDMA_QP_PARAMS_TCLASS_SHIFT;
|
||||
|
||||
qp_attr->ah_attr.ah_flags = IB_AH_GRH;
|
||||
|
|
Loading…
Reference in a new issue