Commit 35493294 authored by Jason Gunthorpe's avatar Jason Gunthorpe Committed by Doug Ledford

rdma UAPI: Use __kernel_sockaddr_storage

The kernel side is #ifdef'd to this type, and the UAPI header
should use it directly. It has slightly different alignment
requirments from the usual user space version.
Signed-off-by: default avatarJason Gunthorpe <jgunthorpe@obsidianresearch.com>
Reviewed-by: default avatarLeon Romanovsky <leonro@mellanox.com>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent 9fa240bb
...@@ -110,7 +110,7 @@ struct rdma_ucm_bind { ...@@ -110,7 +110,7 @@ struct rdma_ucm_bind {
__u32 id; __u32 id;
__u16 addr_size; __u16 addr_size;
__u16 reserved; __u16 reserved;
struct sockaddr_storage addr; struct __kernel_sockaddr_storage addr;
}; };
struct rdma_ucm_resolve_ip { struct rdma_ucm_resolve_ip {
...@@ -126,8 +126,8 @@ struct rdma_ucm_resolve_addr { ...@@ -126,8 +126,8 @@ struct rdma_ucm_resolve_addr {
__u16 src_size; __u16 src_size;
__u16 dst_size; __u16 dst_size;
__u32 reserved; __u32 reserved;
struct sockaddr_storage src_addr; struct __kernel_sockaddr_storage src_addr;
struct sockaddr_storage dst_addr; struct __kernel_sockaddr_storage dst_addr;
}; };
struct rdma_ucm_resolve_route { struct rdma_ucm_resolve_route {
...@@ -164,8 +164,8 @@ struct rdma_ucm_query_addr_resp { ...@@ -164,8 +164,8 @@ struct rdma_ucm_query_addr_resp {
__u16 pkey; __u16 pkey;
__u16 src_size; __u16 src_size;
__u16 dst_size; __u16 dst_size;
struct sockaddr_storage src_addr; struct __kernel_sockaddr_storage src_addr;
struct sockaddr_storage dst_addr; struct __kernel_sockaddr_storage dst_addr;
}; };
struct rdma_ucm_query_path_resp { struct rdma_ucm_query_path_resp {
...@@ -257,7 +257,7 @@ struct rdma_ucm_join_mcast { ...@@ -257,7 +257,7 @@ struct rdma_ucm_join_mcast {
__u32 id; __u32 id;
__u16 addr_size; __u16 addr_size;
__u16 join_flags; __u16 join_flags;
struct sockaddr_storage addr; struct __kernel_sockaddr_storage addr;
}; };
struct rdma_ucm_get_event { struct rdma_ucm_get_event {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment