mbox series

[0/2] Add Auxiliary driver support

Message ID 20220724231458.93830-1-ajit.khaparde@broadcom.com (mailing list archive)
Headers show
Series Add Auxiliary driver support | expand

Message

Ajit Khaparde July 24, 2022, 11:14 p.m. UTC
Add auxiliary device driver for Broadcom devices.
The bnxt_en driver will register and initialize an aux device
if RDMA is enabled in the underlying device.
The bnxt_re driver will then probe and initialize the
RoCE interfaces with the infiniband stack.

Please apply.

Ajit Khaparde (2):
  net/bnxt: Add auxiliary driver support
  RDMA/bnxt_re: Use auxiliary driver interface

 drivers/infiniband/hw/bnxt_re/bnxt_re.h       |   9 +-
 drivers/infiniband/hw/bnxt_re/main.c          | 405 +++++++-----------
 drivers/net/ethernet/broadcom/bnxt/bnxt.c     |   8 +-
 drivers/net/ethernet/broadcom/bnxt/bnxt.h     |   8 +
 drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c | 200 +++++++--
 drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.h |   8 +-
 6 files changed, 339 insertions(+), 299 deletions(-)

Comments

Ajit Khaparde Oct. 25, 2022, 5:31 p.m. UTC | #1
Add auxiliary device driver for Broadcom devices.
The bnxt_en driver will register and initialize an aux device
if RDMA is enabled in the underlying device.
The bnxt_re driver will then probe and initialize the
RoCE interfaces with the infiniband stack.

v1->v2:
- Incorporated review comments including usage of ulp_id &
  complex function indirections.
- Used function calls provided by auxiliary bus interface 
  instead of proprietary calls.
- Refactor code to remove ROCE driver's access to bnxt structure.

Please apply. Thanks.

Ajit Khaparde (5):
  bnxt_en: Add auxiliary driver support
  RDMA/bnxt_re: Use auxiliary driver interface
  bnxt_en: Remove usage of ulp_id
  bnxt_en: Use direct API instead of indirection
  bnxt_en: Use auxiliary bus calls over proprietary calls

Hongguang Gao (1):
  bnxt_en: Remove struct bnxt access from RoCE driver

 drivers/infiniband/hw/bnxt_re/bnxt_re.h       |   9 +-
 drivers/infiniband/hw/bnxt_re/main.c          | 576 +++++++-----------
 drivers/net/ethernet/broadcom/bnxt/bnxt.c     |  10 +-
 drivers/net/ethernet/broadcom/bnxt/bnxt.h     |   8 +
 drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c | 401 ++++++------
 drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.h |  51 +-
 6 files changed, 494 insertions(+), 561 deletions(-)