aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/core/device.c
diff options
context:
space:
mode:
authorKamal Heib <kamalheib1@gmail.com>2019-04-29 07:59:06 -0400
committerJason Gunthorpe <jgg@mellanox.com>2019-05-03 09:56:56 -0400
commitdd05cb828d0ebecd3d772075fccb85ec3618bedf (patch)
treef209a5fe272c5c41638b3ea7bb024193dea441d5 /drivers/infiniband/core/device.c
parenteb15c78b05bd9fbac45ee5b56aaf29b2570b5238 (diff)
RDMA: Get rid of iw_cm_verbs
Integrate iw_cm_verbs data members into ib_device_ops and ib_device structs, this is done to achieve the following: 1) Avoid memory related bugs durring error unwind 2) Make the code more cleaner 3) Reduce code duplication Signed-off-by: Kamal Heib <kamalheib1@gmail.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/core/device.c')
-rw-r--r--drivers/infiniband/core/device.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/infiniband/core/device.c b/drivers/infiniband/core/device.c
index 2123cc693a29..9665c3796cfb 100644
--- a/drivers/infiniband/core/device.c
+++ b/drivers/infiniband/core/device.c
@@ -2370,6 +2370,14 @@ void ib_set_device_ops(struct ib_device *dev, const struct ib_device_ops *ops)
2370 SET_DEVICE_OP(dev_ops, get_vf_config); 2370 SET_DEVICE_OP(dev_ops, get_vf_config);
2371 SET_DEVICE_OP(dev_ops, get_vf_stats); 2371 SET_DEVICE_OP(dev_ops, get_vf_stats);
2372 SET_DEVICE_OP(dev_ops, init_port); 2372 SET_DEVICE_OP(dev_ops, init_port);
2373 SET_DEVICE_OP(dev_ops, iw_accept);
2374 SET_DEVICE_OP(dev_ops, iw_add_ref);
2375 SET_DEVICE_OP(dev_ops, iw_connect);
2376 SET_DEVICE_OP(dev_ops, iw_create_listen);
2377 SET_DEVICE_OP(dev_ops, iw_destroy_listen);
2378 SET_DEVICE_OP(dev_ops, iw_get_qp);
2379 SET_DEVICE_OP(dev_ops, iw_reject);
2380 SET_DEVICE_OP(dev_ops, iw_rem_ref);
2373 SET_DEVICE_OP(dev_ops, map_mr_sg); 2381 SET_DEVICE_OP(dev_ops, map_mr_sg);
2374 SET_DEVICE_OP(dev_ops, map_phys_fmr); 2382 SET_DEVICE_OP(dev_ops, map_phys_fmr);
2375 SET_DEVICE_OP(dev_ops, mmap); 2383 SET_DEVICE_OP(dev_ops, mmap);