From: "Nicholas A. Bellinger" <nab-IzHhD5pYlfBP7FQvKIMDCQ@public.gmane.org>
To: Bart Van Assche <bvanassche-HInyCGIudOg@public.gmane.org>
Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Vu Pham <vu-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>,
Roland Dreier <rolandd-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org>,
David Dillow <dave-i1Mk8JYDVaaSihdK6806/g@public.gmane.org>
Subject: Re: [PATCH] ib_srpt: An IB SRP target
Date: Mon, 14 Feb 2011 16:18:57 -0800 [thread overview]
Message-ID: <1297729137.29207.69.camel@haakon2.linux-iscsi.org> (raw)
In-Reply-To: <201102142109.19150.bvanassche-HInyCGIudOg@public.gmane.org>
On Mon, 2011-02-14 at 21:09 +0100, Bart Van Assche wrote:
> This patch adds the kernel module ib_srpt, which is a SCSI RDMA Protocol
> (SRP) target implementation conforming to the SRP r16a specification.
>
> This driver was originally developed by Vu Pham and has been optimized by
> Bart Van Assche.
>
> Signed-off-by: Bart Van Assche <bvanassche-HInyCGIudOg@public.gmane.org>
> Signed-off-by: Vu Pham <vu-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
> Cc: Roland Dreier <rdreier-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org>
> Cc: David Dillow <dillowda-1Heg1YXhbW8@public.gmane.org>
> Cc: Nicholas A. Bellinger <nab-IzHhD5pYlfBP7FQvKIMDCQ@public.gmane.org>
> ---
> drivers/infiniband/Kconfig | 2 +
> drivers/infiniband/Makefile | 1 +
> drivers/infiniband/ulp/srpt/Kconfig | 12 +
> drivers/infiniband/ulp/srpt/Makefile | 2 +
> drivers/infiniband/ulp/srpt/ib_dm_mad.h | 139 ++
> drivers/infiniband/ulp/srpt/ib_srpt.c | 4012 +++++++++++++++++++++++++++++++
> drivers/infiniband/ulp/srpt/ib_srpt.h | 406 ++++
> 7 files changed, 4574 insertions(+), 0 deletions(-)
> create mode 100644 drivers/infiniband/ulp/srpt/Kconfig
> create mode 100644 drivers/infiniband/ulp/srpt/Makefile
> create mode 100644 drivers/infiniband/ulp/srpt/ib_dm_mad.h
> create mode 100644 drivers/infiniband/ulp/srpt/ib_srpt.c
> create mode 100644 drivers/infiniband/ulp/srpt/ib_srpt.h
>
Hi Bart,
Thank you for your contibution. I will plan to spend time in the next
days reviewing the TCM interaction pieces, but have gone ahead and
pushed as-is into a working branch @ lio-core-2.6.git/tcm_ib_srpt
(.38-rc4). Please send along any further code updates, and I will make
sure they hit this branch.
Also just a FYI, in order to compile ib_srpt against the latest LIO
upstream tree, the original srp_tmr_to_tcm() code was modified with the
following patch to use the new TMR_* prefixed definitions from
include/target/target_core_tmr.h.
Thanks!
--nab
diff --git a/drivers/infiniband/ulp/srpt/ib_srpt.c b/drivers/infiniband/ulp/srpt/ib_srpt.c
index e63775b..cfcb1bc 100644
--- a/drivers/infiniband/ulp/srpt/ib_srpt.c
+++ b/drivers/infiniband/ulp/srpt/ib_srpt.c
@@ -1860,15 +1860,15 @@ static int srp_tmr_to_tcm(int fn)
{
switch (fn) {
case SRP_TSK_ABORT_TASK:
- return ABORT_TASK;
+ return TMR_ABORT_TASK;
case SRP_TSK_ABORT_TASK_SET:
- return ABORT_TASK_SET;
+ return TMR_ABORT_TASK_SET;
case SRP_TSK_CLEAR_TASK_SET:
- return CLEAR_TASK_SET;
+ return TMR_CLEAR_TASK_SET;
case SRP_TSK_LUN_RESET:
- return LUN_RESET;
+ return TMR_LUN_RESET;
case SRP_TSK_CLEAR_ACA:
- return CLEAR_ACA;
+ return TMR_CLEAR_ACA;
default:
return -1;
}
--
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
next prev parent reply other threads:[~2011-02-15 0:18 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <201102142109.19150.bvanassche@acm.org>
[not found] ` <201102142109.19150.bvanassche-HInyCGIudOg@public.gmane.org>
2011-02-14 20:14 ` [PATCH] ib_srpt: An IB SRP target Bart Van Assche
2011-02-15 0:18 ` Nicholas A. Bellinger [this message]
2011-02-16 20:49 ` Bart Van Assche
[not found] ` <AANLkTinQJCfGZxbCkS_rxp=viee2T935ObUCFdoBazSH-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-02-21 10:48 ` Nicholas A. Bellinger
[not found] ` <1298285331.26616.100.camel-Y1+j5t8j3WgjMeEPmliV8E/sVC8ogwMJ@public.gmane.org>
2011-02-21 16:21 ` Roland Dreier
[not found] ` <AANLkTiksjO7vO7t4MNkr77AWSmbKUSLC_J9CN3y0qVGn-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-02-21 22:59 ` Nicholas A. Bellinger
2011-02-21 18:08 ` Bart Van Assche
[not found] ` <AANLkTikL-5Az6tQuPxg77T5H5xNKYvL4r9kBjyt87QBg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-02-21 23:10 ` Nicholas A. Bellinger
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=1297729137.29207.69.camel@haakon2.linux-iscsi.org \
--to=nab-izhhd5pylfbp7fqvkimdcq@public.gmane.org \
--cc=bvanassche-HInyCGIudOg@public.gmane.org \
--cc=dave-i1Mk8JYDVaaSihdK6806/g@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=rolandd-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org \
--cc=vu-VPRAkNaXOzVWk0Htik3J/w@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox