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 <bvanass...@acm.org>
> Signed-off-by: Vu Pham <v...@mellanox.com>
> Cc: Roland Dreier <rdre...@cisco.com>
> Cc: David Dillow <dillo...@ornl.gov>
> Cc: Nicholas A. Bellinger <n...@linux-iscsi.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 majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to