[PATCH 0/3] Move more constant stuff into struct ib_device_ops

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Jason Gunthorpe <jgg@xxxxxxxxxxxx>

Each driver has a single constant value for
 - driver_id
 - uverbs_abi_ver
 - module owner

So set them in the ib_device_ops along with the other constant stuff.

Jason Gunthorpe (3):
  RDMA: Move driver_id into struct ib_device_ops
  RDMA: Move uverbs_abi_ver into struct ib_device_ops
  RDMA: Move owner into struct ib_device_ops

 drivers/infiniband/core/device.c              | 18 ++++++++++++++---
 drivers/infiniband/core/uverbs_main.c         |  8 ++++----
 drivers/infiniband/core/uverbs_uapi.c         |  2 +-
 drivers/infiniband/hw/bnxt_re/ib_verbs.c      |  6 +++---
 drivers/infiniband/hw/bnxt_re/main.c          |  7 ++++---
 drivers/infiniband/hw/cxgb3/iwch_provider.c   |  7 ++++---
 drivers/infiniband/hw/cxgb4/provider.c        |  7 ++++---
 drivers/infiniband/hw/efa/efa_main.c          |  7 ++++---
 drivers/infiniband/hw/hfi1/verbs.c            |  6 ++++--
 drivers/infiniband/hw/hns/hns_roce_main.c     |  7 ++++---
 drivers/infiniband/hw/i40iw/i40iw_verbs.c     |  7 +++++--
 drivers/infiniband/hw/mlx4/main.c             | 20 ++++++++++---------
 drivers/infiniband/hw/mlx5/main.c             |  7 ++++---
 drivers/infiniband/hw/mthca/mthca_provider.c  |  8 ++++----
 drivers/infiniband/hw/nes/nes_verbs.c         |  7 +++++--
 drivers/infiniband/hw/ocrdma/ocrdma_main.c    |  7 ++++---
 drivers/infiniband/hw/qedr/main.c             |  7 ++++---
 drivers/infiniband/hw/qib/qib_verbs.c         |  6 ++++--
 drivers/infiniband/hw/usnic/usnic_ib_main.c   |  7 ++++---
 .../infiniband/hw/vmw_pvrdma/pvrdma_main.c    |  7 ++++---
 drivers/infiniband/sw/rdmavt/vt.c             |  6 +++---
 drivers/infiniband/sw/rxe/rxe_verbs.c         |  7 ++++---
 include/rdma/ib_verbs.h                       |  7 ++++---
 include/rdma/rdma_vt.h                        |  2 +-
 24 files changed, 108 insertions(+), 72 deletions(-)

-- 
2.21.0




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux