mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-30 14:06:51 +07:00
IB/ehca: Set SEND_GRH flag for all non-LL UD QPs on eHCA2
Signed-off-by: Joachim Fenkes <fenkes@de.ibm.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
This commit is contained in:
parent
472803dab8
commit
85f003172f
@ -1054,6 +1054,17 @@ static int internal_modify_qp(struct ib_qp *ibqp,
|
||||
"ehca_qp=%p qp_num=%x <VALID STATE CHANGE> qp_state_xsit=%x",
|
||||
my_qp, ibqp->qp_num, statetrans);
|
||||
|
||||
/* eHCA2 rev2 and higher require the SEND_GRH_FLAG to be set
|
||||
* in non-LL UD QPs.
|
||||
*/
|
||||
if ((my_qp->qp_type == IB_QPT_UD) &&
|
||||
(my_qp->ext_type != EQPT_LLQP) &&
|
||||
(statetrans == IB_QPST_INIT2RTR) &&
|
||||
(shca->hw_level >= 0x22)) {
|
||||
update_mask |= EHCA_BMASK_SET(MQPCB_MASK_SEND_GRH_FLAG, 1);
|
||||
mqpcb->send_grh_flag = 1;
|
||||
}
|
||||
|
||||
/* sqe -> rts: set purge bit of bad wqe before actual trans */
|
||||
if ((my_qp->qp_type == IB_QPT_UD ||
|
||||
my_qp->qp_type == IB_QPT_GSI ||
|
||||
|
Loading…
Reference in New Issue
Block a user