RDMA: Remove minor pahole differences between 32/64
authorJason Gunthorpe <jgg@mellanox.com>
Tue, 20 Mar 2018 20:19:46 +0000 (14:19 -0600)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 27 Mar 2018 20:25:08 +0000 (14:25 -0600)
To help automatic detection we want pahole to report the same struct
layouts for 32 and 64 bit compiles. These cases are all implicit
padding added at the end of embedded structs as part of a union.

The added reserved fields have no impact on the ABI.

Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
include/uapi/rdma/rdma_user_rxe.h
include/uapi/rdma/vmw_pvrdma-abi.h

index b3b1bfc8fa21af572d2f8cdd798aa30372835514..231190b841c8166fdefff4d2bd886f96b79528da 100644 (file)
@@ -78,12 +78,14 @@ struct rxe_send_wr {
                struct {
                        __u64   remote_addr;
                        __u32   rkey;
+                       __u32   reserved;
                } rdma;
                struct {
                        __u64   remote_addr;
                        __u64   compare_add;
                        __u64   swap;
                        __u32   rkey;
+                       __u32   reserved;
                } atomic;
                struct {
                        __u32   remote_qpn;
index 02ca0d0f1eb7ea485cfb0196d3c1964cab25feed..edf5c722490189c894f493362c12489cbabdd87a 100644 (file)
@@ -262,6 +262,7 @@ struct pvrdma_sq_wqe_hdr {
                        __u32 length;
                        __u32 access_flags;
                        __u32 rkey;
+                       __u32 reserved;
                } fast_reg;
                struct {
                        __u32 remote_qpn;