ah.c (b090c4e3a07c33ffdf95fb7601551b38fc2a4bbb) ah.c (2553ba217eea37dc6291635ecddb883fb5c36a8b)
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:

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

126 }
127 rdma_ah_set_dlid(ah_attr, be16_to_cpu(ah->av.rlid));
128 rdma_ah_set_static_rate(ah_attr, ah->av.stat_rate_sl >> 4);
129 rdma_ah_set_sl(ah_attr, ah->av.stat_rate_sl & 0xf);
130
131 return 0;
132}
133
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:

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

126 }
127 rdma_ah_set_dlid(ah_attr, be16_to_cpu(ah->av.rlid));
128 rdma_ah_set_static_rate(ah_attr, ah->av.stat_rate_sl >> 4);
129 rdma_ah_set_sl(ah_attr, ah->av.stat_rate_sl & 0xf);
130
131 return 0;
132}
133
134int mlx5_ib_destroy_ah(struct ib_ah *ah)
134int mlx5_ib_destroy_ah(struct ib_ah *ah, u32 flags)
135{
136 kfree(to_mah(ah));
137 return 0;
138}
135{
136 kfree(to_mah(ah));
137 return 0;
138}