All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch-jcswGhMUV9g@public.gmane.org>
To: dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org
Cc: bart.vanassche-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org,
	swise-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org,
	sagi-NQWnxTmZq1alnMjI0IkVqw@public.gmane.org,
	linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	target-devel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH 02/11] IB/core: allow passing mapping an offset into the SG in ib_map_mr_sg
Date: Sun, 8 May 2016 10:08:57 +0200	[thread overview]
Message-ID: <20160508080857.GA11016@lst.de> (raw)
In-Reply-To: <1462291273-22403-3-git-send-email-hch-jcswGhMUV9g@public.gmane.org>

i40iw grew MR support since the last version, so we'll need the fixup
below as well.  Doug, what's your plan for the series?  Should I repost
with this folded?  It would be really great to get this in before the
merge window ends in a week..

---
>From c1bbcbeabf333cbf8ac5739af69b05998576b721 Mon Sep 17 00:00:00 2001
From: Christoph Hellwig <hch-jcswGhMUV9g@public.gmane.org>
Date: Sun, 8 May 2016 10:05:12 +0200
Subject: IB/i40iw: pass through MR offset

Signed-off-by: Christoph Hellwig <hch-jcswGhMUV9g@public.gmane.org>
---
 drivers/infiniband/hw/i40iw/i40iw_verbs.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/infiniband/hw/i40iw/i40iw_verbs.c b/drivers/infiniband/hw/i40iw/i40iw_verbs.c
index eaa79c9..141eaba 100644
--- a/drivers/infiniband/hw/i40iw/i40iw_verbs.c
+++ b/drivers/infiniband/hw/i40iw/i40iw_verbs.c
@@ -1573,12 +1573,13 @@ static int i40iw_set_page(struct ib_mr *ibmr, u64 addr)
  * @sg: scatter gather list for fmr
  * @sg_nents: number of sg pages
  */
-static int i40iw_map_mr_sg(struct ib_mr *ibmr, struct scatterlist *sg, int sg_nents)
+static int i40iw_map_mr_sg(struct ib_mr *ibmr, struct scatterlist *sg,
+		int sg_nents, unsigned int sg_offset)
 {
 	struct i40iw_mr *iwmr = to_iwmr(ibmr);
 
 	iwmr->npages = 0;
-	return ib_sg_to_pages(ibmr, sg, sg_nents, i40iw_set_page);
+	return ib_sg_to_pages(ibmr, sg, sg_nents, sg_offset, i40iw_set_page);
 }
 
 /**
-- 
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2016-05-08  8:08 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-03 16:01 generic RDMA READ/WRITE API V8 Christoph Hellwig
2016-05-03 16:01 ` [PATCH 01/11] IB/cma: pass the port number to ib_create_qp Christoph Hellwig
2016-05-03 16:01 ` [PATCH 02/11] IB/core: allow passing mapping an offset into the SG in ib_map_mr_sg Christoph Hellwig
     [not found]   ` <1462291273-22403-3-git-send-email-hch-jcswGhMUV9g@public.gmane.org>
2016-05-08  8:08     ` Christoph Hellwig [this message]
2016-05-03 16:01 ` [PATCH 03/11] IB/core: add a helper to check for READ WITH INVALIDATE support Christoph Hellwig
2016-05-03 16:01 ` [PATCH 04/11] IB/core: refactor ib_create_qp Christoph Hellwig
     [not found] ` <1462291273-22403-1-git-send-email-hch-jcswGhMUV9g@public.gmane.org>
2016-05-03 16:01   ` [PATCH 05/11] IB/core: add a simple MR pool Christoph Hellwig
2016-05-03 16:01   ` [PATCH 06/11] IB/core: add a need_inval flag to struct ib_mr Christoph Hellwig
2016-05-03 16:01   ` [PATCH 07/11] IB/core: generic RDMA READ/WRITE API Christoph Hellwig
2016-05-03 16:01   ` [PATCH 08/11] target: enhance and export target_alloc_sgl/target_free_sgl Christoph Hellwig
2016-05-03 16:01   ` [PATCH 09/11] IB/srpt: convert to the generic RDMA READ/WRITE API Christoph Hellwig
2016-05-03 21:16     ` Bart Van Assche
2016-05-03 16:01   ` [PATCH 10/11] IB/core: add RW API support for signature MRs Christoph Hellwig
2016-05-03 16:01 ` [PATCH 11/11] IB/isert: convert to the generic RDMA READ/WRITE API Christoph Hellwig
     [not found]   ` <1462291273-22403-12-git-send-email-hch-jcswGhMUV9g@public.gmane.org>
2016-05-04  6:15     ` Leon Romanovsky
2016-05-10 17:26 ` generic RDMA READ/WRITE API V8 Steve Wise
2016-05-10 17:29   ` Bart Van Assche
2016-05-12 18:04     ` Doug Ledford
2016-05-12 18:43 ` Doug Ledford

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160508080857.GA11016@lst.de \
    --to=hch-jcswghmuv9g@public.gmane.org \
    --cc=bart.vanassche-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org \
    --cc=dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
    --cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=sagi-NQWnxTmZq1alnMjI0IkVqw@public.gmane.org \
    --cc=swise-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org \
    --cc=target-devel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.