Lines Matching refs:udp_info
718 struct irdma_udp_offload_info *udp_info; in irdma_roce_fill_and_set_qpctx_info() local
720 udp_info = &iwqp->udp_info; in irdma_roce_fill_and_set_qpctx_info()
721 udp_info->snd_mss = ib_mtu_enum_to_int(ib_mtu_int_to_enum(iwdev->vsi.mtu)); in irdma_roce_fill_and_set_qpctx_info()
722 udp_info->cwnd = iwdev->roce_cwnd; in irdma_roce_fill_and_set_qpctx_info()
723 udp_info->rexmit_thresh = 2; in irdma_roce_fill_and_set_qpctx_info()
724 udp_info->rnr_nak_thresh = 2; in irdma_roce_fill_and_set_qpctx_info()
725 udp_info->src_port = 0xc000; in irdma_roce_fill_and_set_qpctx_info()
726 udp_info->dst_port = ROCE_V2_UDP_DPORT; in irdma_roce_fill_and_set_qpctx_info()
748 ctx_info->udp_info = &iwqp->udp_info; in irdma_roce_fill_and_set_qpctx_info()
1091 attr->path_mtu = ib_mtu_int_to_enum(iwqp->udp_info.snd_mss); in irdma_query_qp()
1093 attr->rq_psn = iwqp->udp_info.epsn; in irdma_query_qp()
1094 attr->sq_psn = iwqp->udp_info.psn_nxt; in irdma_query_qp()
1097 attr->retry_cnt = iwqp->udp_info.rexmit_thresh; in irdma_query_qp()
1098 attr->rnr_retry = iwqp->udp_info.rnr_nak_thresh; in irdma_query_qp()
1147 struct irdma_udp_offload_info *udp_info; in irdma_modify_qp_roce() local
1157 udp_info = &iwqp->udp_info; in irdma_modify_qp_roce()
1183 udp_info->snd_mss = ib_mtu_enum_to_int(attr->path_mtu); in irdma_modify_qp_roce()
1186 udp_info->psn_nxt = attr->sq_psn; in irdma_modify_qp_roce()
1187 udp_info->lsn = 0xffff; in irdma_modify_qp_roce()
1188 udp_info->psn_una = attr->sq_psn; in irdma_modify_qp_roce()
1189 udp_info->psn_max = attr->sq_psn; in irdma_modify_qp_roce()
1193 udp_info->epsn = attr->rq_psn; in irdma_modify_qp_roce()
1196 udp_info->rnr_nak_thresh = attr->rnr_retry; in irdma_modify_qp_roce()
1199 udp_info->rexmit_thresh = attr->retry_cnt; in irdma_modify_qp_roce()
1211 udp_info->ttl = attr->ah_attr.grh.hop_limit; in irdma_modify_qp_roce()
1212 udp_info->flow_label = attr->ah_attr.grh.flow_label; in irdma_modify_qp_roce()
1213 udp_info->tos = attr->ah_attr.grh.traffic_class; in irdma_modify_qp_roce()
1214 udp_info->src_port = in irdma_modify_qp_roce()
1215 rdma_get_udp_sport(udp_info->flow_label, in irdma_modify_qp_roce()
1220 ctx_info->user_pri = rt_tos2priority(udp_info->tos); in irdma_modify_qp_roce()
1235 udp_info->insert_vlan_tag = true; in irdma_modify_qp_roce()
1236 udp_info->vlan_tag = vlan_id | in irdma_modify_qp_roce()
1239 udp_info->insert_vlan_tag = false; in irdma_modify_qp_roce()
1251 irdma_copy_ip_ntohl(&udp_info->dest_ip_addr[0], daddr); in irdma_modify_qp_roce()
1252 irdma_copy_ip_ntohl(&udp_info->local_ipaddr[0], saddr); in irdma_modify_qp_roce()
1254 udp_info->ipv4 = false; in irdma_modify_qp_roce()
1257 udp_info->arp_idx = irdma_arp_table(iwdev->rf, in irdma_modify_qp_roce()
1267 udp_info->ipv4 = true; in irdma_modify_qp_roce()
1268 udp_info->dest_ip_addr[0] = 0; in irdma_modify_qp_roce()
1269 udp_info->dest_ip_addr[1] = 0; in irdma_modify_qp_roce()
1270 udp_info->dest_ip_addr[2] = 0; in irdma_modify_qp_roce()
1271 udp_info->dest_ip_addr[3] = local_ip[0]; in irdma_modify_qp_roce()
1273 udp_info->local_ipaddr[0] = 0; in irdma_modify_qp_roce()
1274 udp_info->local_ipaddr[1] = 0; in irdma_modify_qp_roce()
1275 udp_info->local_ipaddr[2] = 0; in irdma_modify_qp_roce()
1276 udp_info->local_ipaddr[3] = ntohl(saddr); in irdma_modify_qp_roce()
1278 udp_info->arp_idx = in irdma_modify_qp_roce()
1279 irdma_add_arp(iwdev->rf, local_ip, udp_info->ipv4, in irdma_modify_qp_roce()
1433 ctx_info->rem_endpoint_idx = udp_info->arp_idx; in irdma_modify_qp_roce()