Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Nov 2019 11:45:14 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r354727 - in head/sys: contrib/rdma/krping ofed/include/rdma
Message-ID:  <201911151145.xAFBjEn0042399@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Fri Nov 15 11:45:14 2019
New Revision: 354727
URL: https://svnweb.freebsd.org/changeset/base/354727

Log:
  Correct MR length field to be 64-bit in ibcore.
  
  Linux commit:
  edd31551148c09608feee6b8756ad148d550ee3b
  
  MFC after:	1 week
  Sponsored by:	Mellanox Technologies

Modified:
  head/sys/contrib/rdma/krping/krping.c
  head/sys/ofed/include/rdma/ib_verbs.h

Modified: head/sys/contrib/rdma/krping/krping.c
==============================================================================
--- head/sys/contrib/rdma/krping/krping.c	Fri Nov 15 11:00:03 2019	(r354726)
+++ head/sys/contrib/rdma/krping/krping.c	Fri Nov 15 11:45:14 2019	(r354727)
@@ -736,7 +736,7 @@ static u32 krping_rdma_rkey(struct krping_cb *cb, u64 
 		post_inv,
 		cb->reg_mr_wr.key,
 		cb->reg_mr->page_size,
-		cb->reg_mr->length,
+		(unsigned)cb->reg_mr->length,
 	        (unsigned long long)cb->reg_mr->iova);
 
 	if (post_inv)

Modified: head/sys/ofed/include/rdma/ib_verbs.h
==============================================================================
--- head/sys/ofed/include/rdma/ib_verbs.h	Fri Nov 15 11:00:03 2019	(r354726)
+++ head/sys/ofed/include/rdma/ib_verbs.h	Fri Nov 15 11:45:14 2019	(r354727)
@@ -1559,7 +1559,7 @@ struct ib_mr {
 	u32		   lkey;
 	u32		   rkey;
 	u64		   iova;
-	u32		   length;
+	u64		   length;
 	unsigned int	   page_size;
 	bool		   need_inval;
 	union {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201911151145.xAFBjEn0042399>