Skip to contentSkip to conversation

Fix 32 bit libipathverbs

PATCH Applied Jason Gunthorpe 2 participants 2 messages Oct 22, 2010 – Oct 25, 2010 1 message not in the archive InfiniBand

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix 32 bit libipathverbs

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.

---
 src/ipathverbs.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
src/ipathverbs.h +1 -0
index 5ebd79d..e824fd6 100644
@@ -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];
 };
 
Signature · 6 lines
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

A message that is not in the archive (sent off-list or not yet received): 20101022224343.GA3573-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org

#2 lore raw

Thanks, applied.

Quoted 6 lines · Jason Gunthorpe

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.

--
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