ah.c (aaccf3c97418f169afdbb5855e9cbcbda34e90fd) | ah.c (b090c4e3a07c33ffdf95fb7601551b38fc2a4bbb) |
---|---|
1/* 2 * Copyright (c) 2007 Cisco Systems, Inc. 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: --- 130 unchanged lines hidden (view full) --- 139 140 memcpy(ah->av.eth.dgid, grh->dgid.raw, 16); 141 ah->av.eth.sl_tclass_flowlabel |= cpu_to_be32(rdma_ah_get_sl(ah_attr) 142 << 29); 143 return &ah->ibah; 144} 145 146struct ib_ah *mlx4_ib_create_ah(struct ib_pd *pd, struct rdma_ah_attr *ah_attr, | 1/* 2 * Copyright (c) 2007 Cisco Systems, Inc. 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: --- 130 unchanged lines hidden (view full) --- 139 140 memcpy(ah->av.eth.dgid, grh->dgid.raw, 16); 141 ah->av.eth.sl_tclass_flowlabel |= cpu_to_be32(rdma_ah_get_sl(ah_attr) 142 << 29); 143 return &ah->ibah; 144} 145 146struct ib_ah *mlx4_ib_create_ah(struct ib_pd *pd, struct rdma_ah_attr *ah_attr, |
147 struct ib_udata *udata) | 147 u32 flags, struct ib_udata *udata) |
148 149{ 150 struct mlx4_ib_ah *ah; 151 struct ib_ah *ret; 152 153 ah = kzalloc(sizeof *ah, GFP_ATOMIC); 154 if (!ah) 155 return ERR_PTR(-ENOMEM); --- 28 unchanged lines hidden (view full) --- 184 u16 vlan_tag) 185{ 186 struct rdma_ah_attr slave_attr = *ah_attr; 187 struct mlx4_ib_ah *mah; 188 struct ib_ah *ah; 189 190 slave_attr.grh.sgid_attr = NULL; 191 slave_attr.grh.sgid_index = slave_sgid_index; | 148 149{ 150 struct mlx4_ib_ah *ah; 151 struct ib_ah *ret; 152 153 ah = kzalloc(sizeof *ah, GFP_ATOMIC); 154 if (!ah) 155 return ERR_PTR(-ENOMEM); --- 28 unchanged lines hidden (view full) --- 184 u16 vlan_tag) 185{ 186 struct rdma_ah_attr slave_attr = *ah_attr; 187 struct mlx4_ib_ah *mah; 188 struct ib_ah *ah; 189 190 slave_attr.grh.sgid_attr = NULL; 191 slave_attr.grh.sgid_index = slave_sgid_index; |
192 ah = mlx4_ib_create_ah(pd, &slave_attr, NULL); | 192 ah = mlx4_ib_create_ah(pd, &slave_attr, 0, NULL); |
193 if (IS_ERR(ah)) 194 return ah; 195 196 ah->device = pd->device; 197 ah->pd = pd; 198 ah->type = ah_attr->type; 199 mah = to_mah(ah); 200 --- 57 unchanged lines hidden --- | 193 if (IS_ERR(ah)) 194 return ah; 195 196 ah->device = pd->device; 197 ah->pd = pd; 198 ah->type = ah_attr->type; 199 mah = to_mah(ah); 200 --- 57 unchanged lines hidden --- |