diff options
author | Kamal Heib <kamalheib1@gmail.com> | 2018-12-10 21:09:35 +0200 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2018-12-11 15:15:08 -0700 |
commit | 7f645a58d00155b93800fdd4e157c8f58fb3122f (patch) | |
tree | e85560dd7de9fe412cc0c2544e1bbac334455bf3 /drivers/infiniband/hw/hns/hns_roce_device.h | |
parent | RDMA/hfi1: Initialize ib_device_ops struct (diff) | |
download | linux-dev-7f645a58d00155b93800fdd4e157c8f58fb3122f.tar.xz linux-dev-7f645a58d00155b93800fdd4e157c8f58fb3122f.zip |
RDMA/hns: Initialize ib_device_ops struct
Initialize ib_device_ops with the supported operations using
ib_set_device_ops().
Signed-off-by: Kamal Heib <kamalheib1@gmail.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/hw/hns/hns_roce_device.h')
-rw-r--r-- | drivers/infiniband/hw/hns/hns_roce_device.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/hns/hns_roce_device.h b/drivers/infiniband/hw/hns/hns_roce_device.h index 779dd4c409cb..67609cc6a45e 100644 --- a/drivers/infiniband/hw/hns/hns_roce_device.h +++ b/drivers/infiniband/hw/hns/hns_roce_device.h @@ -883,6 +883,8 @@ struct hns_roce_hw { int (*query_srq)(struct ib_srq *ibsrq, struct ib_srq_attr *attr); int (*post_srq_recv)(struct ib_srq *ibsrq, const struct ib_recv_wr *wr, const struct ib_recv_wr **bad_wr); + const struct ib_device_ops *hns_roce_dev_ops; + const struct ib_device_ops *hns_roce_dev_srq_ops; }; struct hns_roce_dev { |