ah.c (aaccf3c97418f169afdbb5855e9cbcbda34e90fd) ah.c (b090c4e3a07c33ffdf95fb7601551b38fc2a4bbb)
1/*
2 * Copyright (c) 2013-2015, Mellanox Technologies. All rights reserved.
3 *
4 * This software is available to you under a choice of one of two
5 * licenses. You may choose to be licensed under the terms of the GNU
6 * General Public License (GPL) Version 2, available from the file
7 * COPYING in the main directory of this source tree, or the
8 * OpenIB.org BSD license below:

--- 58 unchanged lines hidden (view full) ---

67 ah->av.fl_mlid = rdma_ah_get_path_bits(ah_attr) & 0x7f;
68 ah->av.stat_rate_sl |= (rdma_ah_get_sl(ah_attr) & 0xf);
69 }
70
71 return &ah->ibah;
72}
73
74struct ib_ah *mlx5_ib_create_ah(struct ib_pd *pd, struct rdma_ah_attr *ah_attr,
1/*
2 * Copyright (c) 2013-2015, Mellanox Technologies. All rights reserved.
3 *
4 * This software is available to you under a choice of one of two
5 * licenses. You may choose to be licensed under the terms of the GNU
6 * General Public License (GPL) Version 2, available from the file
7 * COPYING in the main directory of this source tree, or the
8 * OpenIB.org BSD license below:

--- 58 unchanged lines hidden (view full) ---

67 ah->av.fl_mlid = rdma_ah_get_path_bits(ah_attr) & 0x7f;
68 ah->av.stat_rate_sl |= (rdma_ah_get_sl(ah_attr) & 0xf);
69 }
70
71 return &ah->ibah;
72}
73
74struct ib_ah *mlx5_ib_create_ah(struct ib_pd *pd, struct rdma_ah_attr *ah_attr,
75 struct ib_udata *udata)
75 u32 flags, struct ib_udata *udata)
76
77{
78 struct mlx5_ib_ah *ah;
79 struct mlx5_ib_dev *dev = to_mdev(pd->device);
80 enum rdma_ah_attr_type ah_type = ah_attr->type;
81
82 if ((ah_type == RDMA_AH_ATTR_TYPE_ROCE) &&
83 !(rdma_ah_get_ah_flags(ah_attr) & IB_AH_GRH))

--- 55 unchanged lines hidden ---
76
77{
78 struct mlx5_ib_ah *ah;
79 struct mlx5_ib_dev *dev = to_mdev(pd->device);
80 enum rdma_ah_attr_type ah_type = ah_attr->type;
81
82 if ((ah_type == RDMA_AH_ATTR_TYPE_ROCE) &&
83 !(rdma_ah_get_ah_flags(ah_attr) & IB_AH_GRH))

--- 55 unchanged lines hidden ---