aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/i40iw/i40iw_verbs.c
diff options
context:
space:
mode:
authorKamal Heib <kamalheib1@gmail.com>2018-12-18 22:55:07 +0200
committerJason Gunthorpe <jgg@mellanox.com>2018-12-18 14:12:26 -0700
commitb81a327dbc0d07c219ac48b7daf155ea6a51672b (patch)
treebc5201097565339e0106c105a0177ff208c830c3 /drivers/infiniband/hw/i40iw/i40iw_verbs.c
parentRDMA/mlx5: Delete unreachable handle_atomic code by simplifying SW completion (diff)
downloadlinux-dev-b81a327dbc0d07c219ac48b7daf155ea6a51672b.tar.xz
linux-dev-b81a327dbc0d07c219ac48b7daf155ea6a51672b.zip
RDMA/i40iw: Make sure to initialize ib_device_ops
The initialization of the ib_device_ops was dropped by mistake when rebasing the ib_device_ops series, this patch fixes that. Fixes: 15644f57cb66 ("RDMA/i40iw: Initialize ib_device_ops struct") Signed-off-by: Kamal Heib <kamalheib1@gmail.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to '')
-rw-r--r--drivers/infiniband/hw/i40iw/i40iw_verbs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/i40iw/i40iw_verbs.c b/drivers/infiniband/hw/i40iw/i40iw_verbs.c
index 9e42ac2db3ca..475f32cf447e 100644
--- a/drivers/infiniband/hw/i40iw/i40iw_verbs.c
+++ b/drivers/infiniband/hw/i40iw/i40iw_verbs.c
@@ -2816,6 +2816,7 @@ static struct i40iw_ib_device *i40iw_init_rdma_device(struct i40iw_device *iwdev
iwibdev->ibdev.iwcm->destroy_listen = i40iw_destroy_listen;
memcpy(iwibdev->ibdev.iwcm->ifname, netdev->name,
sizeof(iwibdev->ibdev.iwcm->ifname));
+ ib_set_device_ops(&iwibdev->ibdev, &i40iw_dev_ops);
return iwibdev;
}