Lines Matching refs:ah_attr
39 static inline u16 get_ah_udp_sport(const struct rdma_ah_attr *ah_attr) in get_ah_udp_sport() argument
41 u32 fl = ah_attr->grh.flow_label; in get_ah_udp_sport()
58 struct rdma_ah_attr *ah_attr = init_attr->ah_attr; in hns_roce_create_ah() local
59 const struct ib_global_route *grh = rdma_ah_read_grh(ah_attr); in hns_roce_create_ah()
67 ah->av.port = rdma_ah_get_port_num(ah_attr); in hns_roce_create_ah()
70 if (rdma_ah_get_static_rate(ah_attr)) in hns_roce_create_ah()
75 ah->av.udp_sport = get_ah_udp_sport(ah_attr); in hns_roce_create_ah()
76 ah->av.sl = rdma_ah_get_sl(ah_attr); in hns_roce_create_ah()
80 memcpy(ah->av.mac, ah_attr->roce.dmac, ETH_ALEN); in hns_roce_create_ah()
84 ret = rdma_read_gid_l2_fields(ah_attr->grh.sgid_attr, in hns_roce_create_ah()
95 int hns_roce_query_ah(struct ib_ah *ibah, struct rdma_ah_attr *ah_attr) in hns_roce_query_ah() argument
99 memset(ah_attr, 0, sizeof(*ah_attr)); in hns_roce_query_ah()
101 rdma_ah_set_sl(ah_attr, ah->av.sl); in hns_roce_query_ah()
102 rdma_ah_set_port_num(ah_attr, ah->av.port); in hns_roce_query_ah()
103 rdma_ah_set_static_rate(ah_attr, ah->av.stat_rate); in hns_roce_query_ah()
104 rdma_ah_set_grh(ah_attr, NULL, ah->av.flowlabel, in hns_roce_query_ah()
106 rdma_ah_set_dgid_raw(ah_attr, ah->av.dgid); in hns_roce_query_ah()