verbs.c (b090c4e3a07c33ffdf95fb7601551b38fc2a4bbb) verbs.c (2553ba217eea37dc6291635ecddb883fb5c36a8b)
1/* QLogic qedr NIC Driver
2 * Copyright (c) 2015-2016 QLogic Corporation
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:

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

2623 if (!ah)
2624 return ERR_PTR(-ENOMEM);
2625
2626 rdma_copy_ah_attr(&ah->attr, attr);
2627
2628 return &ah->ibah;
2629}
2630
1/* QLogic qedr NIC Driver
2 * Copyright (c) 2015-2016 QLogic Corporation
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:

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

2623 if (!ah)
2624 return ERR_PTR(-ENOMEM);
2625
2626 rdma_copy_ah_attr(&ah->attr, attr);
2627
2628 return &ah->ibah;
2629}
2630
2631int qedr_destroy_ah(struct ib_ah *ibah)
2631int qedr_destroy_ah(struct ib_ah *ibah, u32 flags)
2632{
2633 struct qedr_ah *ah = get_qedr_ah(ibah);
2634
2635 rdma_destroy_ah_attr(&ah->attr);
2636 kfree(ah);
2637 return 0;
2638}
2639

--- 1615 unchanged lines hidden ---
2632{
2633 struct qedr_ah *ah = get_qedr_ah(ibah);
2634
2635 rdma_destroy_ah_attr(&ah->attr);
2636 kfree(ah);
2637 return 0;
2638}
2639

--- 1615 unchanged lines hidden ---