Lines Matching refs:ah
1363 static int mlx5_set_path(struct mlx5_ib_dev *dev, const struct ib_ah_attr *ah, in mlx5_set_path() argument
1375 path->grh_mlid = ah->src_path_bits & 0x7f; in mlx5_set_path()
1376 path->rlid = cpu_to_be16(ah->dlid); in mlx5_set_path()
1378 if (ah->ah_flags & IB_AH_GRH) { in mlx5_set_path()
1379 if (ah->grh.sgid_index >= in mlx5_set_path()
1382 ah->grh.sgid_index, in mlx5_set_path()
1387 path->mgid_index = ah->grh.sgid_index; in mlx5_set_path()
1388 path->hop_limit = ah->grh.hop_limit; in mlx5_set_path()
1390 cpu_to_be32((ah->grh.traffic_class << 20) | in mlx5_set_path()
1391 (ah->grh.flow_label)); in mlx5_set_path()
1392 memcpy(path->rgid, ah->grh.dgid.raw, 16); in mlx5_set_path()
1395 err = ib_rate_to_mlx5(dev, ah->static_rate); in mlx5_set_path()
1404 path->sl = ah->sl & 0xf; in mlx5_set_path()
1841 memcpy(&dseg->av, &to_mah(ud_wr(wr)->ah)->av, sizeof(struct mlx5_av)); in set_datagram_seg()