forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
When posting a UD WQE, the user-level buffer code provides the full address (destination GID), instead of AH handle. This seems to be unnecessary because it increases the message size and happens in the kernel anyway. Why do the same work twice?
To solve the issue, the following structure must be unshared from the user code (similar changes to be done in rdma-core repo)
linux/include/uapi/rdma/rdma_user_rxe.h
Lines 58 to 67 in ea2cec2
| struct rxe_av { | |
| __u8 port_num; | |
| __u8 network_type; | |
| __u8 dmac[6]; | |
| struct rxe_global_route grh; | |
| union { | |
| struct sockaddr_in _sockaddr_in; | |
| struct sockaddr_in6 _sockaddr_in6; | |
| } sgid_addr, dgid_addr; | |
| }; |
The API must be restructured to pass AH handle instead of AV.
The corresponding snippets in the rdma-core are following:
Metadata
Metadata
Assignees
Labels
No labels