ah.c (f366d3854ec0fec0f9949dac46431598614a956b) ah.c (b090c4e3a07c33ffdf95fb7601551b38fc2a4bbb)
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 *

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

86 return 0;
87}
88EXPORT_SYMBOL(rvt_check_ah);
89
90/**
91 * rvt_create_ah - create an address handle
92 * @pd: the protection domain
93 * @ah_attr: the attributes of the AH
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 *

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

86 return 0;
87}
88EXPORT_SYMBOL(rvt_check_ah);
89
90/**
91 * rvt_create_ah - create an address handle
92 * @pd: the protection domain
93 * @ah_attr: the attributes of the AH
94 * @create_flags: create address handle flags (see enum rdma_create_ah_flags)
94 * @udata: pointer to user's input output buffer information.
95 *
96 * This may be called from interrupt context.
97 *
98 * Return: newly allocated ah
99 */
100struct ib_ah *rvt_create_ah(struct ib_pd *pd,
101 struct rdma_ah_attr *ah_attr,
95 * @udata: pointer to user's input output buffer information.
96 *
97 * This may be called from interrupt context.
98 *
99 * Return: newly allocated ah
100 */
101struct ib_ah *rvt_create_ah(struct ib_pd *pd,
102 struct rdma_ah_attr *ah_attr,
103 u32 create_flags,
102 struct ib_udata *udata)
103{
104 struct rvt_ah *ah;
105 struct rvt_dev_info *dev = ib_to_rvt(pd->device);
106 unsigned long flags;
107
108 if (rvt_check_ah(pd->device, ah_attr))
109 return ERR_PTR(-EINVAL);

--- 84 unchanged lines hidden ---
104 struct ib_udata *udata)
105{
106 struct rvt_ah *ah;
107 struct rvt_dev_info *dev = ib_to_rvt(pd->device);
108 unsigned long flags;
109
110 if (rvt_check_ah(pd->device, ah_attr))
111 return ERR_PTR(-EINVAL);

--- 84 unchanged lines hidden ---