RDMA/core: Introduce ib_device_ops
authorKamal Heib <kamalheib1@gmail.com>
Mon, 10 Dec 2018 19:09:30 +0000 (21:09 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 11 Dec 2018 22:14:09 +0000 (15:14 -0700)
commit521ed0d92ab0db3edd17a5f4716b7f698f4fce61
tree1854ac8b981f9041d1e5b193a2d2b01178172511
parent2dd8e44cb4f3893f26ca29e9593450f289a0b48a
RDMA/core: Introduce ib_device_ops

This change introduces the ib_device_ops structure that defines all the
InfiniBand device operations in one place, so the code will be more
readable and clean, unlike today when the ops are mixed with ib_device
data members.

The providers will need to define the supported operations and assign them
using ib_set_device_ops(), that will also make the providers code more
readable and clean.

Signed-off-by: Kamal Heib <kamalheib1@gmail.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/device.c
include/rdma/ib_verbs.h