Lines Matching refs:uverb_attr
1640 static void copy_ah_attr_to_uverbs(struct ib_uverbs_qp_dest *uverb_attr,
1645 uverb_attr->dlid = rdma_ah_get_dlid(rdma_attr);
1646 uverb_attr->sl = rdma_ah_get_sl(rdma_attr);
1647 uverb_attr->src_path_bits = rdma_ah_get_path_bits(rdma_attr);
1648 uverb_attr->static_rate = rdma_ah_get_static_rate(rdma_attr);
1649 uverb_attr->is_global = !!(rdma_ah_get_ah_flags(rdma_attr) &
1651 if (uverb_attr->is_global) {
1653 memcpy(uverb_attr->dgid, grh->dgid.raw, 16);
1654 uverb_attr->flow_label = grh->flow_label;
1655 uverb_attr->sgid_index = grh->sgid_index;
1656 uverb_attr->hop_limit = grh->hop_limit;
1657 uverb_attr->traffic_class = grh->traffic_class;
1659 uverb_attr->port_num = rdma_ah_get_port_num(rdma_attr);
1755 struct ib_uverbs_qp_dest *uverb_attr)
1757 rdma_attr->type = rdma_ah_find_type(dev, uverb_attr->port_num);
1758 if (uverb_attr->is_global) {
1760 uverb_attr->flow_label,
1761 uverb_attr->sgid_index,
1762 uverb_attr->hop_limit,
1763 uverb_attr->traffic_class);
1764 rdma_ah_set_dgid_raw(rdma_attr, uverb_attr->dgid);
1768 rdma_ah_set_dlid(rdma_attr, uverb_attr->dlid);
1769 rdma_ah_set_sl(rdma_attr, uverb_attr->sl);
1770 rdma_ah_set_path_bits(rdma_attr, uverb_attr->src_path_bits);
1771 rdma_ah_set_static_rate(rdma_attr, uverb_attr->static_rate);
1772 rdma_ah_set_port_num(rdma_attr, uverb_attr->port_num);