OSDN Git Service

RDMA/ocrdma: Fix structure layout for ocrdma_alloc_pd
authorJason Gunthorpe <jgg@mellanox.com>
Mon, 19 Mar 2018 17:30:43 +0000 (11:30 -0600)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 23 Mar 2018 20:53:29 +0000 (14:53 -0600)
commitf64705b8715a090cd5526a2c082eeb199a51e8b2
tree32d1e6690944133feb30bd3b32d038bf9aa0640a
parentf215a3d2448ae77253f0b93dcc37114779f51778
RDMA/ocrdma: Fix structure layout for ocrdma_alloc_pd

The udata's for alloc_pd cannot contain u64s due to alignment
constraints. Switch the two never-used u64's to arrays of u32 to reduce
the required struct alignment to 4 bytes.

These reserved fields are totally unnecessary, never written and never
read.

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