ah.c (b090c4e3a07c33ffdf95fb7601551b38fc2a4bbb) ah.c (2553ba217eea37dc6291635ecddb883fb5c36a8b)
1/*
2 * Copyright(c) 2016 Intel Corporation.
3 *
4 * This file is provided under a dual BSD/GPLv2 license. When using or
5 * redistributing this file, you may do so under either license.
6 *
7 * GPL LICENSE SUMMARY
8 *

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

132 dev->driver_f.notify_new_ah(pd->device, ah_attr, ah);
133
134 return &ah->ibah;
135}
136
137/**
138 * rvt_destory_ah - Destory an address handle
139 * @ibah: address handle
1/*
2 * Copyright(c) 2016 Intel Corporation.
3 *
4 * This file is provided under a dual BSD/GPLv2 license. When using or
5 * redistributing this file, you may do so under either license.
6 *
7 * GPL LICENSE SUMMARY
8 *

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

132 dev->driver_f.notify_new_ah(pd->device, ah_attr, ah);
133
134 return &ah->ibah;
135}
136
137/**
138 * rvt_destory_ah - Destory an address handle
139 * @ibah: address handle
140 * @destroy_flags: destroy address handle flags (see enum rdma_destroy_ah_flags)
140 *
141 * Return: 0 on success
142 */
141 *
142 * Return: 0 on success
143 */
143int rvt_destroy_ah(struct ib_ah *ibah)
144int rvt_destroy_ah(struct ib_ah *ibah, u32 destroy_flags)
144{
145 struct rvt_dev_info *dev = ib_to_rvt(ibah->device);
146 struct rvt_ah *ah = ibah_to_rvtah(ibah);
147 unsigned long flags;
148
149 if (atomic_read(&ah->refcount) != 0)
150 return -EBUSY;
151

--- 44 unchanged lines hidden ---
145{
146 struct rvt_dev_info *dev = ib_to_rvt(ibah->device);
147 struct rvt_ah *ah = ibah_to_rvtah(ibah);
148 unsigned long flags;
149
150 if (atomic_read(&ah->refcount) != 0)
151 return -EBUSY;
152

--- 44 unchanged lines hidden ---