Skip to content

tests: Add query port speed and export dmabuf FD support#1713

Open
ShacharKagan wants to merge 4 commits intolinux-rdma:masterfrom
ShacharKagan:pyverbs_dmabuf_port_speed
Open

tests: Add query port speed and export dmabuf FD support#1713
ShacharKagan wants to merge 4 commits intolinux-rdma:masterfrom
ShacharKagan:pyverbs_dmabuf_port_speed

Conversation

@ShacharKagan
Copy link
Copy Markdown
Contributor

Add pyverbs support for query_port_speed and export dmabuf FD of DM/UAR.
Add tests that validate the new verbs.

Elyashiv Cohen and others added 4 commits March 15, 2026 14:27
1. Add query_port_speed() method to the Context class to query port
speed using ibv_query_port_speed().

2. Add support for IBV_EVENT_DEVICE_SPEED_CHANGE event type to handle
device speed change notifications.

Signed-off-by: Elyashiv Cohen <elyashivc@nvidia.com>
Signed-off-by: Shachar Kagan <skagan@nvidia.com>
Verify the new query_port_speed() verb by ensuring it returns a positive
port speed value.
Accept 0 as a legal value, as it is the value returned when the port is
in down state.

Signed-off-by: Elyashiv Cohen <elyashivc@nvidia.com>
Signed-off-by: Shachar Kagan <skagan@nvidia.com>
Add export_dmabuf_fd() methods to enable exporting dmabuf file
descriptors from Device Memory (DM) and MLX5 UAR objects for use with
memory registration APIs.

Signed-off-by: Shachar Kagan <skagan@nvidia.com>
Add tests that verify exporting UAR and DM as a dmabuf FD

Signed-off-by: Daniel Hayon <dhayon@nvidia.com>
Signed-off-by: Shachar Kagan <skagan@nvidia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant