Lines Matching refs:qp_params
1130 *qp_params) in get_gid_info_from_table()
1140 ret = rdma_read_gid_l2_fields(gid_attr, &qp_params->vlan_id, NULL); in get_gid_info_from_table()
1147 memcpy(&qp_params->sgid.bytes[0], &gid_attr->gid.raw[0], in get_gid_info_from_table()
1148 sizeof(qp_params->sgid)); in get_gid_info_from_table()
1149 memcpy(&qp_params->dgid.bytes[0], in get_gid_info_from_table()
1151 sizeof(qp_params->dgid)); in get_gid_info_from_table()
1152 qp_params->roce_mode = ROCE_V2_IPV6; in get_gid_info_from_table()
1153 SET_FIELD(qp_params->modify_flags, in get_gid_info_from_table()
1157 memcpy(&qp_params->sgid.bytes[0], &gid_attr->gid.raw[0], in get_gid_info_from_table()
1158 sizeof(qp_params->sgid)); in get_gid_info_from_table()
1159 memcpy(&qp_params->dgid.bytes[0], in get_gid_info_from_table()
1161 sizeof(qp_params->dgid)); in get_gid_info_from_table()
1162 qp_params->roce_mode = ROCE_V1; in get_gid_info_from_table()
1165 memset(&qp_params->sgid, 0, sizeof(qp_params->sgid)); in get_gid_info_from_table()
1166 memset(&qp_params->dgid, 0, sizeof(qp_params->dgid)); in get_gid_info_from_table()
1168 qp_params->sgid.ipv4_addr = ipv4_addr; in get_gid_info_from_table()
1171 qp_params->dgid.ipv4_addr = ipv4_addr; in get_gid_info_from_table()
1172 SET_FIELD(qp_params->modify_flags, in get_gid_info_from_table()
1174 qp_params->roce_mode = ROCE_V2_IPV4; in get_gid_info_from_table()
1181 qp_params->sgid.dwords[i] = ntohl(qp_params->sgid.dwords[i]); in get_gid_info_from_table()
1182 qp_params->dgid.dwords[i] = ntohl(qp_params->dgid.dwords[i]); in get_gid_info_from_table()
1185 if (qp_params->vlan_id >= VLAN_CFI_MASK) in get_gid_info_from_table()
1186 qp_params->vlan_id = 0; in get_gid_info_from_table()
2470 struct qed_rdma_modify_qp_in_params qp_params = { 0 }; in qedr_modify_qp() local
2505 SET_FIELD(qp_params.modify_flags, in qedr_modify_qp()
2507 qp_params.new_state = qedr_get_state_from_ibqp(attr->qp_state); in qedr_modify_qp()
2511 qp_params.sqd_async = true; in qedr_modify_qp()
2514 SET_FIELD(qp_params.modify_flags, in qedr_modify_qp()
2521 qp_params.pkey = QEDR_ROCE_PKEY_DEFAULT; in qedr_modify_qp()
2528 SET_FIELD(qp_params.modify_flags, in qedr_modify_qp()
2530 qp_params.incoming_rdma_read_en = attr->qp_access_flags & in qedr_modify_qp()
2532 qp_params.incoming_rdma_write_en = attr->qp_access_flags & in qedr_modify_qp()
2534 qp_params.incoming_atomic_en = attr->qp_access_flags & in qedr_modify_qp()
2560 SET_FIELD(qp_params.modify_flags, in qedr_modify_qp()
2563 qp_params.traffic_class_tos = grh->traffic_class; in qedr_modify_qp()
2564 qp_params.flow_label = grh->flow_label; in qedr_modify_qp()
2565 qp_params.hop_limit_ttl = grh->hop_limit; in qedr_modify_qp()
2569 rc = get_gid_info_from_table(ibqp, attr, attr_mask, &qp_params); in qedr_modify_qp()
2578 qp_params.remote_mac_addr); in qedr_modify_qp()
2582 qp_params.use_local_mac = true; in qedr_modify_qp()
2583 ether_addr_copy(qp_params.local_mac_addr, dev->ndev->dev_addr); in qedr_modify_qp()
2586 qp_params.dgid.dwords[0], qp_params.dgid.dwords[1], in qedr_modify_qp()
2587 qp_params.dgid.dwords[2], qp_params.dgid.dwords[3]); in qedr_modify_qp()
2589 qp_params.sgid.dwords[0], qp_params.sgid.dwords[1], in qedr_modify_qp()
2590 qp_params.sgid.dwords[2], qp_params.sgid.dwords[3]); in qedr_modify_qp()
2592 qp_params.remote_mac_addr); in qedr_modify_qp()
2594 qp_params.mtu = qp->mtu; in qedr_modify_qp()
2595 qp_params.lb_indication = false; in qedr_modify_qp()
2598 if (!qp_params.mtu) { in qedr_modify_qp()
2601 qp_params.mtu = qp->mtu; in qedr_modify_qp()
2603 qp_params.mtu = in qedr_modify_qp()
2608 SET_FIELD(qp_params.modify_flags, in qedr_modify_qp()
2622 qp_params.ack_timeout = in qedr_modify_qp()
2625 qp_params.ack_timeout = 0; in qedr_modify_qp()
2631 SET_FIELD(qp_params.modify_flags, in qedr_modify_qp()
2633 qp_params.retry_cnt = attr->retry_cnt; in qedr_modify_qp()
2637 SET_FIELD(qp_params.modify_flags, in qedr_modify_qp()
2639 qp_params.rnr_retry_cnt = attr->rnr_retry; in qedr_modify_qp()
2643 SET_FIELD(qp_params.modify_flags, in qedr_modify_qp()
2645 qp_params.rq_psn = attr->rq_psn; in qedr_modify_qp()
2659 SET_FIELD(qp_params.modify_flags, in qedr_modify_qp()
2661 qp_params.max_rd_atomic_req = attr->max_rd_atomic; in qedr_modify_qp()
2665 SET_FIELD(qp_params.modify_flags, in qedr_modify_qp()
2667 qp_params.min_rnr_nak_timer = attr->min_rnr_timer; in qedr_modify_qp()
2671 SET_FIELD(qp_params.modify_flags, in qedr_modify_qp()
2673 qp_params.sq_psn = attr->sq_psn; in qedr_modify_qp()
2689 SET_FIELD(qp_params.modify_flags, in qedr_modify_qp()
2691 qp_params.max_rd_atomic_resp = attr->max_dest_rd_atomic; in qedr_modify_qp()
2695 SET_FIELD(qp_params.modify_flags, in qedr_modify_qp()
2698 qp_params.dest_qp = attr->dest_qp_num; in qedr_modify_qp()
2710 !udata && qp_params.new_state == QED_ROCE_QP_STATE_ERR) in qedr_modify_qp()
2715 qp->qed_qp, &qp_params); in qedr_modify_qp()
2720 qp_params.new_state); in qedr_modify_qp()
2721 qp->state = qp_params.new_state; in qedr_modify_qp()