All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH rdma-core 00/10] Rework the verb init scheme
@ 2017-09-19 21:18 Jason Gunthorpe
       [not found] ` <1505855931-4956-1-git-send-email-jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
  0 siblings, 1 reply; 31+ messages in thread
From: Jason Gunthorpe @ 2017-09-19 21:18 UTC (permalink / raw)
  To: linux-rdma-u79uwXL29TY76Z2rM5mHXA

This changes how verbs providers register with the core and are bound to
drivers.

The end goal is to have textual a list of 'modalias' that each provider
supports, similar to the kernel. This list can then ultimately be used to
demand load the modules instead of loading every module like we do today.

This series does the work to bring all providers to use common code to match
their supported devices, and provides the core code the supported device
list. This is done by extending the verbs_driver_ops to include the matching
information that the driver needs.

Quite a lot of duplicated driver code is removed in the process, and verbs
startup reads fewer sysfs files.

https://github.com/linux-rdma/rdma-core/pull/214

Jason Gunthorpe (10):
  verbs: Change verbs_register_driver to accept the ops struct directly
  cxgb4: Move sysconf up to driver_init
  verbs: Split init_device into a match and alloc/bind step
  providers: Use the new match_device and allocate_device ops
  verbs: Remove the init_device entry point
  verbs: Provide common code to match providers against kernel devices
  providers: Use the new common PCI matching infrastructure
  cxgb: Use the new common PCI matching infrastructure
  hns: Use the generic modalias matcher
  rxe: Use VERBS_NAME_MATCH to match the rxe device

 libibverbs/driver.h                |  77 +++++++++++++++++-
 libibverbs/init.c                  | 162 +++++++++++++++++++++++++++++--------
 providers/bnxt_re/main.c           |  69 ++++------------
 providers/cxgb3/iwch.c             | 102 ++++++++---------------
 providers/cxgb4/dev.c              | 110 ++++++++++---------------
 providers/hfi1verbs/hfiverbs.c     |  65 +++++----------
 providers/hns/hns_roce_u.c         |  80 +++++-------------
 providers/hns/hns_roce_u.h         |   1 +
 providers/hns/hns_roce_u_hw_v1.c   |   1 +
 providers/i40iw/i40iw_umain.c      |  69 +++++-----------
 providers/ipathverbs/ipathverbs.c  |  66 +++++----------
 providers/mlx4/mlx4.c              |  75 +++++------------
 providers/mlx5/mlx5.c              |  77 +++++-------------
 providers/mthca/mthca.c            |  75 +++++------------
 providers/nes/nes_umain.c          |  80 +++++-------------
 providers/ocrdma/ocrdma_main.c     |  84 +++++--------------
 providers/qedr/qelr_main.c         |  73 ++++-------------
 providers/rxe/rxe.c                |  50 +++++-------
 providers/vmw_pvrdma/pvrdma_main.c |  76 +++++------------
 19 files changed, 530 insertions(+), 862 deletions(-)

-- 
2.7.4

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 31+ messages in thread

end of thread, other threads:[~2017-09-28 15:56 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-19 21:18 [PATCH rdma-core 00/10] Rework the verb init scheme Jason Gunthorpe
     [not found] ` <1505855931-4956-1-git-send-email-jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2017-09-19 21:18   ` [PATCH rdma-core 01/10] verbs: Change verbs_register_driver to accept the ops struct directly Jason Gunthorpe
     [not found]     ` <1505855931-4956-2-git-send-email-jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2017-09-19 21:31       ` Steve Wise
2017-09-25  6:46         ` Devesh Sharma
2017-09-19 21:18   ` [PATCH rdma-core 02/10] cxgb4: Move sysconf up to driver_init Jason Gunthorpe
     [not found]     ` <1505855931-4956-3-git-send-email-jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2017-09-19 21:23       ` Steve Wise
2017-09-19 21:18   ` [PATCH rdma-core 03/10] verbs: Split init_device into a match and alloc/bind step Jason Gunthorpe
     [not found]     ` <1505855931-4956-4-git-send-email-jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2017-09-26 16:00       ` Yishai Hadas
     [not found]         ` <5a30e4a3-e22c-5d1a-435d-d3c5d94333fd-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2017-09-27  7:55           ` Leon Romanovsky
     [not found]             ` <20170927075552.GC2297-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-09-27 13:49               ` Yishai Hadas
2017-09-28 15:56           ` Jason Gunthorpe
2017-09-19 21:18   ` [PATCH rdma-core 04/10] providers: Use the new match_device and allocate_device ops Jason Gunthorpe
     [not found]     ` <1505855931-4956-5-git-send-email-jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2017-09-19 21:29       ` Steve Wise
2017-09-19 22:32         ` Jason Gunthorpe
2017-09-24 13:44       ` Amrani, Ram
     [not found]         ` <BN3PR07MB257813BD7D36694EBF97BA91F8650-EldUQEzkDQfpW3VS/XPqkOFPX92sqiQdvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2017-09-24 20:10           ` Jason Gunthorpe
     [not found]             ` <20170924201053.GA31652-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2017-09-25 12:52               ` Amrani, Ram
2017-09-25  7:41       ` Devesh Sharma
2017-09-19 21:18   ` [PATCH rdma-core 05/10] verbs: Remove the init_device entry point Jason Gunthorpe
2017-09-19 21:18   ` [PATCH rdma-core 06/10] verbs: Provide common code to match providers against kernel devices Jason Gunthorpe
2017-09-19 21:18   ` [PATCH rdma-core 07/10] providers: Use the new common PCI matching infrastructure Jason Gunthorpe
     [not found]     ` <1505855931-4956-8-git-send-email-jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2017-09-24 13:29       ` Amrani, Ram
     [not found]         ` <BN3PR07MB2578333789DA041401297EC0F8650-EldUQEzkDQfpW3VS/XPqkOFPX92sqiQdvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2017-09-24 15:58           ` Jason Gunthorpe
     [not found]             ` <20170924155845.GB14796-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2017-09-25 12:52               ` Amrani, Ram
2017-09-25  7:48       ` Devesh Sharma
2017-09-19 21:18   ` [PATCH rdma-core 08/10] cxgb: " Jason Gunthorpe
     [not found]     ` <1505855931-4956-9-git-send-email-jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2017-09-19 21:24       ` Steve Wise
2017-09-19 21:18   ` [PATCH rdma-core 09/10] hns: Use the generic modalias matcher Jason Gunthorpe
     [not found]     ` <1505855931-4956-10-git-send-email-jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2017-09-20  3:28       ` oulijun
2017-09-19 21:18   ` [PATCH rdma-core 10/10] rxe: Use VERBS_NAME_MATCH to match the rxe device Jason Gunthorpe
2017-09-28 14:03   ` [PATCH rdma-core 00/10] Rework the verb init scheme Leon Romanovsky

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.