Trying to use a 64 bit kernel with a 32 bit userspace results in
local protection violations reported to the CQ. This is caused by
a difference in padding for ipath_rwe, so make the padding 64 bit
uses explicit.

Signed-off-by: Jason Gunthorpe <[email protected]>
---
 src/ipathverbs.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/ipathverbs.h b/src/ipathverbs.h
index 5ebd79d..e824fd6 100644
--- a/src/ipathverbs.h
+++ b/src/ipathverbs.h
@@ -101,6 +101,7 @@ struct ipath_cq {
 struct ipath_rwqe {
        uint64_t                wr_id;
        uint8_t                 num_sge;
+       uint8_t                 padding[7];
        struct ibv_sge          sg_list[0];
 };
 
-- 
1.5.4.2

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to