This change introduce the ib_device_ops structure that defines all the
InfiniBand device operations, providers will need to define the
supported operations and assigning them using ib_set_device_ops().
Signed-off-by: Kamal Heib
---
drivers/infiniband/core/device.c | 98
This patchset introduce a new structure that will contain all the
infiniband device operations, the structure will be used by the
providers to initialize their supported operations. This patchset also
includes the required changes in the core and ulps to start using it.
Thanks,
Kamal
Kamal Heib
Initialize ib_device_ops with the supported operations.
Signed-off-by: Kamal Heib
---
drivers/infiniband/hw/mlx4/main.c | 94 +++
1 file changed, 94 insertions(+)
diff --git a/drivers/infiniband/hw/mlx4/main.c
b/drivers/infiniband/hw/mlx4/main.c
index
Initialize ib_device_ops with the supported operations.
Signed-off-by: Kamal Heib
---
drivers/infiniband/hw/i40iw/i40iw_verbs.c | 35 +++
1 file changed, 35 insertions(+)
diff --git a/drivers/infiniband/hw/i40iw/i40iw_verbs.c
b/drivers/infiniband/hw/i40iw
Initialize ib_device_ops with the supported operations.
Signed-off-by: Kamal Heib
---
drivers/infiniband/sw/rxe/rxe_verbs.c | 48 +++
1 file changed, 48 insertions(+)
diff --git a/drivers/infiniband/sw/rxe/rxe_verbs.c
b/drivers/infiniband/sw/rxe/rxe_verbs.c
Initialize ib_device_ops with the supported operations.
Signed-off-by: Kamal Heib
---
drivers/infiniband/hw/qib/qib_verbs.c | 6 ++
1 file changed, 6 insertions(+)
diff --git a/drivers/infiniband/hw/qib/qib_verbs.c
b/drivers/infiniband/hw/qib/qib_verbs.c
index 8a45964c4700..8fe2519e34d9
Initialize ib_device_ops with the supported operations.
Signed-off-by: Kamal Heib
---
drivers/infiniband/hw/usnic/usnic_ib_main.c | 32 +
1 file changed, 32 insertions(+)
diff --git a/drivers/infiniband/hw/usnic/usnic_ib_main.c
b/drivers/infiniband/hw/usnic
This change makes all the required change to start use the ib_device_ops
structure.
Signed-off-by: Kamal Heib
---
drivers/infiniband/core/cache.c| 12 +-
drivers/infiniband/core/core_priv.h| 12 +-
drivers/infiniband/core/cq.c | 6
Initialize ib_device_ops with the supported operations.
Signed-off-by: Kamal Heib
---
drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c | 46 ++
1 file changed, 46 insertions(+)
diff --git a/drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c
b/drivers/infiniband/hw/vmw_pvrdma
Initialize ib_device_ops with the supported operations.
Signed-off-by: Kamal Heib
---
drivers/infiniband/hw/ocrdma/ocrdma_main.c | 47 ++
1 file changed, 47 insertions(+)
diff --git a/drivers/infiniband/hw/ocrdma/ocrdma_main.c
b/drivers/infiniband/hw/ocrdma
Initialize ib_device_ops with the supported operations.
Signed-off-by: Kamal Heib
---
drivers/infiniband/hw/qedr/main.c | 52 +++
1 file changed, 52 insertions(+)
diff --git a/drivers/infiniband/hw/qedr/main.c
b/drivers/infiniband/hw/qedr/main.c
index
Initialize ib_device_ops with the supported operations.
Signed-off-by: Kamal Heib
---
drivers/infiniband/hw/mlx5/main.c | 126 +-
1 file changed, 125 insertions(+), 1 deletion(-)
diff --git a/drivers/infiniband/hw/mlx5/main.c
b/drivers/infiniband/hw/mlx5
Initialize ib_device_ops with the supported operations.
Signed-off-by: Kamal Heib
---
drivers/infiniband/hw/mthca/mthca_provider.c | 97 ++--
1 file changed, 93 insertions(+), 4 deletions(-)
diff --git a/drivers/infiniband/hw/mthca/mthca_provider.c
b/drivers/infiniband
Initialize ib_device_ops with the supported operations.
Signed-off-by: Kamal Heib
---
drivers/infiniband/hw/nes/nes_verbs.c | 34 ++
1 file changed, 34 insertions(+)
diff --git a/drivers/infiniband/hw/nes/nes_verbs.c
b/drivers/infiniband/hw/nes/nes_verbs.c
Initialize ib_device_ops with the supported operations.
Signed-off-by: Kamal Heib
---
drivers/infiniband/hw/hfi1/verbs.c | 11 +++
1 file changed, 11 insertions(+)
diff --git a/drivers/infiniband/hw/hfi1/verbs.c
b/drivers/infiniband/hw/hfi1/verbs.c
index bc7f00ba1988..c63f331dbf7a
Initialize ib_device_ops with the supported operations.
Signed-off-by: Kamal Heib
---
drivers/infiniband/hw/cxgb4/provider.c | 39 ++
1 file changed, 39 insertions(+)
diff --git a/drivers/infiniband/hw/cxgb4/provider.c
b/drivers/infiniband/hw/cxgb4/provider.c
Initialize ib_device_ops with the supported operations.
Signed-off-by: Kamal Heib
---
drivers/infiniband/hw/hns/hns_roce_device.h | 1 +
drivers/infiniband/hw/hns/hns_roce_hw_v1.c | 11
drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 11
drivers/infiniband/hw/hns
Initialize ib_device_ops with the supported operations.
Signed-off-by: Kamal Heib
---
drivers/infiniband/hw/bnxt_re/main.c | 45
1 file changed, 45 insertions(+)
diff --git a/drivers/infiniband/hw/bnxt_re/main.c
b/drivers/infiniband/hw/bnxt_re/main.c
index
Initialize ib_device_ops with the supported operations.
Signed-off-by: Kamal Heib
---
drivers/infiniband/hw/cxgb3/iwch_provider.c | 34 +
1 file changed, 34 insertions(+)
diff --git a/drivers/infiniband/hw/cxgb3/iwch_provider.c
b/drivers/infiniband/hw/cxgb3
On Tue, Oct 09, 2018 at 02:31:27PM -0400, Doug Ledford wrote:
> On Tue, 2018-10-09 at 19:27 +0300, Kamal Heib wrote:
> > This patchset introduce a new structure that will contain all the
> > infiniband device operations, the structure will be used by the
> > providers to initi
20 matches
Mail list logo