RDMA: Group create AH arguments in struct
Following patch adds additional argument to the create AH function, so it make sense to group ah_attr and flags arguments in struct. Link: https://lore.kernel.org/r/20200430192146.12863-13-maorg@mellanox.com Signed-off-by: Maor Gottlieb <maorg@mellanox.com> Acked-by: Devesh Sharma <devesh.sharma@broadcom.com> Acked-by: Gal Pressman <galpress@amazon.com> Acked-by: Weihang Li <liweihang@huawei.com> Reviewed-by: Jason Gunthorpe <jgg@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
This commit is contained in:

committed by
Jason Gunthorpe

parent
451c9fc77a
commit
fa5d010c56
@@ -388,14 +388,15 @@ static void mthca_dealloc_pd(struct ib_pd *pd, struct ib_udata *udata)
|
||||
mthca_pd_free(to_mdev(pd->device), to_mpd(pd));
|
||||
}
|
||||
|
||||
static int mthca_ah_create(struct ib_ah *ibah, struct rdma_ah_attr *ah_attr,
|
||||
u32 flags, struct ib_udata *udata)
|
||||
static int mthca_ah_create(struct ib_ah *ibah,
|
||||
struct rdma_ah_init_attr *init_attr,
|
||||
struct ib_udata *udata)
|
||||
|
||||
{
|
||||
struct mthca_ah *ah = to_mah(ibah);
|
||||
|
||||
return mthca_create_ah(to_mdev(ibah->device), to_mpd(ibah->pd), ah_attr,
|
||||
ah);
|
||||
return mthca_create_ah(to_mdev(ibah->device), to_mpd(ibah->pd),
|
||||
init_attr->ah_attr, ah);
|
||||
}
|
||||
|
||||
static void mthca_ah_destroy(struct ib_ah *ah, u32 flags)
|
||||
|
Reference in New Issue
Block a user