diff options
author | Moni Shoua <monis@mellanox.com> | 2016-11-23 07:23:24 +0100 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-12-13 19:38:27 +0100 |
commit | 477864c8fcd953e5a988073ca5be18bb7fd93410 (patch) | |
tree | 2eb3fe54b09acc5fb1fac80b63849e680b80d6e5 /drivers/infiniband/hw/mthca/mthca_provider.c | |
parent | IB/mlx5: Report that device has udata response in create_ah (diff) | |
download | linux-477864c8fcd953e5a988073ca5be18bb7fd93410.tar.xz linux-477864c8fcd953e5a988073ca5be18bb7fd93410.zip |
IB/core: Let create_ah return extended response to user
Add struct ib_udata to the signature of create_ah callback that is
implemented by IB device drivers. This allows HW drivers to return extra
data to the userspace library.
This patch prepares the ground for mlx5 driver to resolve destination
mac address for a given GID and return it to userspace.
This patch was previously submitted by Knut Omang as a part of the
patch set to support Oracle's Infiniband HCA (SIF).
Signed-off-by: Knut Omang <knut.omang@oracle.com>
Signed-off-by: Moni Shoua <monis@mellanox.com>
Reviewed-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/mthca/mthca_provider.c')
-rw-r--r-- | drivers/infiniband/hw/mthca/mthca_provider.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/mthca/mthca_provider.c b/drivers/infiniband/hw/mthca/mthca_provider.c index 358930a41e36..d31708742ba5 100644 --- a/drivers/infiniband/hw/mthca/mthca_provider.c +++ b/drivers/infiniband/hw/mthca/mthca_provider.c @@ -410,7 +410,9 @@ static int mthca_dealloc_pd(struct ib_pd *pd) } static struct ib_ah *mthca_ah_create(struct ib_pd *pd, - struct ib_ah_attr *ah_attr) + struct ib_ah_attr *ah_attr, + struct ib_udata *udata) + { int err; struct mthca_ah *ah; |