Skip to content

Add OPA extended LID support

Don Hiatt linux-rdma 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest8 patches 3 repliesIn review
  2. v37 patches 4 repliesSuperseded
  3. v18 patches 2 repliesSuperseded

Changes in v4 from the cover letter

---------------
* Add 'IB/core: Add functions to convert 32 bit lids to 16 bits' and use them in place of casts.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8IB/core: Convert ah_attr from OPA to IB when copying to userdrivers/infiniband/core/ucm.c drivers/infiniband/core/ucma.c drivers/infiniband/core/uverbs_marshall.c +1 more+54 -120 replies
2/8IB/srpt: Increase lid and sm_lid to 32 bitsdrivers/infiniband/ulp/srpt/ib_srpt.h+2 -20 replies
3/8IB/IPoIB: Increase local_lid to 32 bitsdrivers/infiniband/ulp/ipoib/ipoib.h+1 -10 replies
4/8IB/mad: Change slid in RMPP recv from 16 to 32 bitsdrivers/infiniband/core/mad_rmpp.c+1 -10 replies
5/8IB/core: Add functions to convert 32 bit lids to 16 bitsinclude/rdma/ib_verbs.h+12 -01 reply
6/8IB/core: Change port_attr.lid size from 16 to 32 bitsdrivers/infiniband/core/core_priv.h drivers/infiniband/core/uverbs_cmd.c drivers/infiniband/hw/mlx4/alias_GUID.c +4 more+18 -60 replies
7/8IB/core: Change port_attr.sm_lid from 16 to 32 bitsdrivers/infiniband/core/uverbs_cmd.c include/rdma/ib_verbs.h+6 -40 replies
8/8IB/core: Change wc.slid from 16 to 32 bitsdrivers/infiniband/core/cm.c drivers/infiniband/core/user_mad.c drivers/infiniband/core/uverbs_cmd.c +7 more+20 -160 replies

Reviews trailers per patch

All 8 patches have a Reviewed-by or Acked-by.

PatchDon HiattIra WeinyDennis Dalessandro
1/8R-b R-b
2/8R-b
3/8R-b
4/8R-b
5/8R-b
6/8R-b
7/8R-b
8/8R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v4 thread

Cover letter [PATCH rdma-next v4 0/8] Add OPA extended LID support

This patch series primarily increases sizes of variables that hold lid values from 16 to 32 bits. Additionally, it adds a check in the IB mad stack to verify a properly formatted MAD when OPA extended LIDs are used.

Changes from v3:
---------------
* Add 'IB/core: Add functions to convert 32 bit lids to 16 bits' and use them in place of casts.

Changes from v2:
---------------
* Remove 'IB/mad: Ensure DR MADs are correctly specified when using OPA devices' as this will be handled in a lower layer.

Changes from v1:
---------------
* Remove extraneous slid set.
* Replace slid casts with helper function.
* Return default subnet prefix on rdma_ah_conv_opa_to_ib() failure.

The patches are origanized as follows:

* Patch 1 converts an OPA ah_attr to an IB ah_attr when copying from kernel to user. Since OPA ah_attr is only defined in the kernel, the function takes care of adding OPA GIDs that contain the extended LID before copying to user.
* Patch 2 increases the lid and sm_lid variables in srpt to 32 bits.
* Patch 3 increases the local_lid variable in IPoIB to 32 bits.
* Patch 4 increases the slid variable in MAD RMPP to 32 bits.
* Patch 5 Adds functions to convert 32 bit lids to 16 bits.
* Patch 6 increases the lid field in struct ib_port_attr from 16 to 32 bits.
* Patch 7 increases the sm_lid field in struct ib_port_attr from 16 to 32 bits.
* Patch 8 increases the slid field in struct ib_wc from 16 to 32 bits.

Dasaratharaman Chandramouli (6):
IB/core: Convert ah_attr from OPA to IB when copying to user IB/srpt: Increase lid and sm_lid to 32 bits IB/IPoIB: Increase local_lid to 32 bits
IB/mad: Change slid in RMPP recv from 16 to 32 bits IB/core: Change port_attr.lid size from 16 to 32 bits IB/core: Change port_attr.sm_lid from 16 to 32 bits

Don Hiatt (2):
IB/core: Add functions to convert 32 bit lids to 16 bits IB/core: Change wc.slid from 16 to 32 bits

 drivers/infiniband/core/cm.c              |  4 ++--
 drivers/infiniband/core/core_priv.h       |  1 +
 drivers/infiniband/core/mad_rmpp.c        |  2 +-
 drivers/infiniband/core/ucm.c             |  2 +-
 drivers/infiniband/core/ucma.c            | 10 +++++----
 drivers/infiniband/core/user_mad.c        |  2 +-
 drivers/infiniband/core/uverbs_cmd.c      | 26 +++++++++++++++++-----
 drivers/infiniband/core/uverbs_marshall.c | 48 ++++++++++++++++++++++++++++++++++++-----
 drivers/infiniband/hw/hfi1/mad.c          |  2 +-
 drivers/infiniband/hw/mlx4/alias_GUID.c   |  2 +-
 drivers/infiniband/hw/mlx4/mad.c          |  8 +++----
 drivers/infiniband/hw/mlx5/mad.c          |  2 +-
 drivers/infiniband/hw/mthca/mthca_cmd.c   |  4 ++--
 drivers/infiniband/hw/mthca/mthca_mad.c   |  4 ++--
 drivers/infiniband/sw/rdmavt/cq.c         |  2 +-
 drivers/infiniband/ulp/ipoib/ipoib.h      |  2 +-
 drivers/infiniband/ulp/srpt/ib_srpt.h     |  4 ++--
 include/rdma/ib_marshall.h                |  6 ++++--
 include/rdma/ib_verbs.h                   | 18 +++++++++++++---
 include/rdma/opa_addr.h                   |  3 ++-
 20 files changed, 112 insertions(+), 40 deletions(-)
Signature · 6 lines
1.8.3.1

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html