RDMA/core: Ultra Ethernet transport verbs
Get series with b4
b4 am [email protected] change-id 20260929-uet-ib-core-d82e941f5e52Versions newest first
- v3 Latest13 patches 15 repliesIn review
- v213 patches 4 repliesSuperseded
- v113 patches 21 repliesSuperseded
Changes in v3 from the cover letter · 26 lines
- Rebase on rdma for-next
- Never default RDMA-CM to a UET GID type (2)
- Refuse an RU QP whose number another QP on the device already has,
until restrack keys RU QPs by more than their number (4)
- Call uverbs_finalize_uobj_create() in AH_EX_CREATE (5), JOB_ALLOC
and JOB_IMPORT (7)
- Refuse reserved bits in a remote QPN (5, 7)
- Report only the semantics fields and bits uverbs defines, and refuse
the driver QP type (6)
- Keep a job's address entries on its port, and refuse an import once
the exporting context is gone (7)
- Release a queried address entry's sgid_attr when the query fails (7)
- Keep the early attr_mask check in ex_modify_qp (8)
- Refuse an RU QP on a device without RU support before any attribute
is read, and test only the QP type in the create helpers (9, 10)
- Limit a modify of an RU QP to its create attributes, and auto-bind
its counter on create (9)
- Check and copy only the QP semantics fields comp_mask selects (10)
- Refuse an ordering whose data-ordering size is given as 0 (10)
- Keep a derived region in its parent's job, and refuse a negative
dma-buf fd (11)
- Order the attached MR's usecnt decrement after clearing attached_qp
on QP destroy (13)
- Order the attach and detach usecnt updates before the MR's lock is released (13)
- Document driver duties for job lifetime, sgid_attr, JobID uniqueness, derived regions, rereg of 64-bit keys, unattached regions and QPN assignment (3, 4, 7, 11, 12, 13)
- Link to v2: https://patch.msgid.link/[email protected]
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/13 | RDMA/core: widen the uverbs object keyinclude/ | +2 | 0 replies | |
| 2/13 | RDMA/core: add the UET GID typesdrivers/ drivers/ drivers/ +5 more | +73 | 0 replies | |
| 3/13 | RDMA/core: report the reliable unconnected device capabilitiesdrivers/ include/ include/ | +44 | 1 reply | |
| 4/13 | RDMA/core: add the reliable unconnected queue pair typedrivers/ drivers/ drivers/ +2 more | +63 | 1 reply | |
| 5/13 | RDMA/core: extended address handle attributesdrivers/ drivers/ drivers/ +5 more | +173 | 1 reply | |
| 6/13 | RDMA/core: query the semantics a queue pair type guaranteesdrivers/ drivers/ drivers/ +3 more | +189 | 1 reply | |
| 7/13 | RDMA/core: job and job key objectsdrivers/ drivers/ drivers/ +10 more | +866 | 0 replies | |
| 8/13 | RDMA/uverbs: factor out the queue pair attribute copydrivers/ drivers/ | +105 | 0 replies | |
| 9/13 | RDMA/core: create a queue pair ready to senddrivers/ drivers/ drivers/ +2 more | +93 | 1 reply | |
| 10/13 | RDMA/core: queue pair attributes for unconnected transportsdrivers/ drivers/ include/ +1 more | +195 | 2 replies | |
| 11/13 | RDMA/core: extended memory registrationdrivers/ drivers/ drivers/ +4 more | +260 | 2 replies | |
| 12/13 | RDMA/core: 64-bit memory keysdrivers/ include/ include/ | +55 | 0 replies | |
| 13/13 | RDMA/core: attach a memory region to a queue pairdrivers/ drivers/ drivers/ +3 more | +154 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.
Cover letter [PATCH rdma-next v3 00/13] RDMA/core: Ultra Ethernet transport verbs
Ultra Ethernet defines a reliable unconnected transport. A queue pair sends to any peer in its job without a connection, incoming traffic is demultiplexed on a JobID rather than on a connection, and what a device orders is far weaker than IB or RoCE and varies between devices. None of that has a home in the current uverbs ABI.
This series adds the generic half. The objects, methods, and attributes any UET device implements. No driver is part of it, though two already exist against this ABI. A reference device model that implements all of it, and HPE's Slingshot driver implementing a large subset. That is the argument for ib_core carrying this. What is device specific should come from private interfaces per vendor.
Patch 1 widens the uverbs object key. The three new core objects would otherwise leave drivers fewer object keys than mlx5 alone uses.
Patches 2-4 expose the transport. The two UET encapsulations as GID types, the capabilities and limits a device advertises, and IB_QPT_RU with its 32-bit queue pair number.
Patch 5 widens address handles, which an unconnected peer needs since it is named by both a network address and a queue pair number.
Patch 6 adds a query for what a queue pair type actually orders.
Patch 7 adds jobs and job keys, the objects an unconnected transport demultiplexes and authorizes on. A job can be exported to a file descriptor, so an unprivileged process can join one set up for it.
Patches 8-10 let a queue pair be created ready to send, since a transport with nothing to negotiate gains nothing from the modify sequence. Patch 8 is a no-functional-change refactor pulling the attribute copy out of modify_qp. Patch 9 lets create take those attributes. Patch 10 adds the attributes a reliable unconnected transport needs.
Patches 11-13 cover memory registration with a job binding, a chosen key, derived regions, 64-bit keys for devices whose keys do not fit in 32 bits, and attaching a region to one queue pair so the network reaches it only over that QP.
New attributes are optional, so existing userspace is unaffected and a device without a feature reports it absent rather than failing. The attributes that restrict access are sent mandatory by userspace, so a kernel that does not know one refuses the request rather than creating an object with less protection than was asked for.
Tested against a reference device implementing the ABI, and against rxe to confirm nothing already upstream regressed. The userspace half is a matching rdma-core series.
---
Changes in v3:
- Rebase on rdma for-next
- Never default RDMA-CM to a UET GID type (2)
- Refuse an RU QP whose number another QP on the device already has,
until restrack keys RU QPs by more than their number (4)
- Call uverbs_finalize_uobj_create() in AH_EX_CREATE (5), JOB_ALLOC
and JOB_IMPORT (7)
- Refuse reserved bits in a remote QPN (5, 7)
- Report only the semantics fields and bits uverbs defines, and refuse
the driver QP type (6)
- Keep a job's address entries on its port, and refuse an import once
the exporting context is gone (7)
- Release a queried address entry's sgid_attr when the query fails (7)
- Keep the early attr_mask check in ex_modify_qp (8)
- Refuse an RU QP on a device without RU support before any attribute
is read, and test only the QP type in the create helpers (9, 10)
- Limit a modify of an RU QP to its create attributes, and auto-bind
its counter on create (9)
- Check and copy only the QP semantics fields comp_mask selects (10)
- Refuse an ordering whose data-ordering size is given as 0 (10)
- Keep a derived region in its parent's job, and refuse a negative
dma-buf fd (11)
- Order the attached MR's usecnt decrement after clearing attached_qp
on QP destroy (13)
- Order the attach and detach usecnt updates before the MR's lock is released (13)
- Document driver duties for job lifetime, sgid_attr, JobID uniqueness, derived regions, rereg of 64-bit keys, unattached regions and QPN assignment (3, 4, 7, 11, 12, 13)
- Link to v2: https://patch.msgid.link/[email protected]
Changes in v2:
- Rebase on rdma for-next
- Refuse the write post_send and post_recv commands on an RU QP (4)
- Read the extended AH attribute with uverbs_copy_from_or_zero() (5, 7)
- Export a job as a uverbs FD object, import it through a raw fd, and
drop the job revoke on device removal (7)
- Drop the job and job key flags attributes, none was defined (7)
- Require the address table size at job allocation and check each
index against it (7)
- Use uverbs_finalize_uobj_create() in JKEY_CREATE and uverbs_copy_to_struct_or_zero() in JOB_ADDR_QUERY (7)
- Drop IS_ERR() checks on mandatory handles (5, 7)
- Simplify the REG_MR optional attribute handling (11, 12)
- Reword the commit messages of patches 1 and 6
- Link to v1: https://patch.msgid.link/[email protected]
---
Eric Davis (13):
RDMA/core: widen the uverbs object key
RDMA/core: add the UET GID types
RDMA/core: report the reliable unconnected device capabilities RDMA/core: add the reliable unconnected queue pair type RDMA/core: extended address handle attributes RDMA/core: query the semantics a queue pair type guarantees RDMA/core: job and job key objects
RDMA/uverbs: factor out the queue pair attribute copy RDMA/core: create a queue pair ready to send RDMA/core: queue pair attributes for unconnected transports RDMA/core: extended memory registration
RDMA/core: 64-bit memory keys
RDMA/core: attach a memory region to a queue pair
drivers/infiniband/core/Makefile | 3 +- drivers/infiniband/core/cache.c | 12 +- drivers/infiniband/core/cma.c | 9 +- drivers/infiniband/core/device.c | 16 +- drivers/infiniband/core/nldev.c | 10 + drivers/infiniband/core/rdma_core.h | 2 + drivers/infiniband/core/restrack.c | 19 +- drivers/infiniband/core/roce_gid_mgmt.c | 6 +- drivers/infiniband/core/user_mad.c | 4 +- drivers/infiniband/core/uverbs.h | 35 ++ drivers/infiniband/core/uverbs_cmd.c | 266 +++++---- drivers/infiniband/core/uverbs_std_types.c | 74 ++- drivers/infiniband/core/uverbs_std_types_device.c | 90 ++- drivers/infiniband/core/uverbs_std_types_job.c | 644 ++++++++++++++++++++++ drivers/infiniband/core/uverbs_std_types_mr.c | 226 +++++++- drivers/infiniband/core/uverbs_std_types_qp.c | 363 +++++++++++- drivers/infiniband/core/uverbs_uapi.c | 2 + drivers/infiniband/core/verbs.c | 130 ++++- include/rdma/ib_verbs.h | 245 +++++++- include/rdma/restrack.h | 8 + include/rdma/uverbs_ioctl.h | 6 +- include/uapi/rdma/ib_user_ioctl_cmds.h | 115 ++++ include/uapi/rdma/ib_user_ioctl_verbs.h | 107 ++++ include/uapi/rdma/ib_user_verbs.h | 27 + 24 files changed, 2264 insertions(+), 155 deletions(-)
---
base-commit: e50525a486300e5ff8014c9985b8477b2fca0368
change-id: 20260929-uet-ib-core-d82e941f5e52
Best regards,
Signature · 1 line
Eric Davis <[email protected]>