public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 00/12] T10-DIF Initial support for iSER target
@ 2014-02-19 15:50 Sagi Grimberg
  2014-02-19 15:50 ` [PATCH v2 01/12] Target/transport: Allocate protection sg if needed Sagi Grimberg
                   ` (8 more replies)
  0 siblings, 9 replies; 20+ messages in thread
From: Sagi Grimberg @ 2014-02-19 15:50 UTC (permalink / raw)
  To: nab; +Cc: target-devel, roland, linux-rdma, oren, martin.petersen

Hey Nic,

I addressed your comments in the this set. I'll try to send the
initiator code for review in the next couple of days.

This patchset introduces target side T10-PI offload support over
RDMA. Currently the implementation is for iSER transport but can
be easily extended to SRP (or FCoE in the future).

Should mention that this patchset depends on RDMA signature
verbs making it for inclusion which will hopefully happen in
near future.

This code was tested against iSER legacy initiator, and also
initiator that uses T10-PI offload as well. I'll clean up the
initiator code in the following days and submit that as well.

This code works under medium loads using backstores:
- FileIO with DIF emulation.
- RD with DIF emulation.
- iBLOCK (scsi_debug with DIF support).

Chnages from v1:
- Rebased rdma_dif (3.14-rc2)
- Target core:
  - Pass zero_flag=true to alloc_sgl for protection buffers
  - Removed Unneeded inline function rwprotect
  - Pass is_write bool to sbc_set_prot_op_checks
  - Send failure response for absence of protection buffers
    when needed.
- iSER:
  - Removed unneeded assignments in isert_set_sig_attrs

Chnages from v0:
- Rebased from for-next
- Target core:
  - Don't minor fixes for check_prot - to support transports
    that doesn't use submit_map_sgls.
  - file  format - use escape values.
  - Removed redundant prot_handover.
  - Added protection checks and operation set.
- iSER:
  - Added preperation routines for mapping/unmapping buffers
    to ease the amount of code in isert_reg_rdma.
  - Fixed print of DIF error (sector instead of offset).
  - Fix RDMA length for protection on wire domain.
  - Refactored reg_sig_mr to use helper routines.

Sagi Grimberg (12):
  Target/transport: Allocate protection sg if needed
  Target/sbc: Set protection operation and relevant checks
  Target/file: place escape values for protection information format
  Target/sbc: don't return from sbc_check for non prot_sg
  Target/core: Remove prot_handover use for now
  Target/iscsi: Add T10-PI indication for iscsi_portal_group
  Target/configfs: Expose iSCSI network portal group T10-PI support
  Target/sbc: add debug print
  IB/isert: Introduce isert_map/unmap_data_buf
  IB/isert: Initialize T10-PI resources
  IB/isert: Accept RDMA_WRITE completions
  IB/isert: Support T10-PI protected transactions

 drivers/infiniband/ulp/isert/ib_isert.c      |  668 ++++++++++++++++++++------
 drivers/infiniband/ulp/isert/ib_isert.h      |   38 ++-
 drivers/target/iscsi/iscsi_target_configfs.c |    6 +
 drivers/target/iscsi/iscsi_target_core.h     |    5 +-
 drivers/target/iscsi/iscsi_target_tpg.c      |   21 +
 drivers/target/iscsi/iscsi_target_tpg.h      |    1 +
 drivers/target/target_core_file.c            |   40 +--
 drivers/target/target_core_sbc.c             |   91 +++-
 drivers/target/target_core_transport.c       |   33 ++-
 include/target/target_core_base.h            |   13 +-
 10 files changed, 683 insertions(+), 233 deletions(-)

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2014-03-13 19:16 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-19 15:50 [PATCH v2 00/12] T10-DIF Initial support for iSER target Sagi Grimberg
2014-02-19 15:50 ` [PATCH v2 01/12] Target/transport: Allocate protection sg if needed Sagi Grimberg
2014-02-19 15:50 ` [PATCH v2 02/12] Target/sbc: Set protection operation and relevant checks Sagi Grimberg
2014-02-19 15:50 ` [PATCH v2 03/12] Target/file: place escape values for protection information format Sagi Grimberg
2014-02-19 15:50 ` [PATCH v2 04/12] Target/sbc: don't return from sbc_check for non prot_sg Sagi Grimberg
2014-02-19 15:50 ` [PATCH v2 05/12] Target/core: Remove prot_handover use for now Sagi Grimberg
2014-02-19 15:50 ` [PATCH v2 06/12] Target/iscsi: Add T10-PI indication for iscsi_portal_group Sagi Grimberg
2014-02-19 15:50 ` [PATCH v2 07/12] Target/configfs: Expose iSCSI network portal group T10-PI support Sagi Grimberg
     [not found] ` <1392825025-29943-1-git-send-email-sagig-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2014-02-19 15:50   ` [PATCH v2 08/12] Target/sbc: add debug print Sagi Grimberg
2014-02-19 15:50   ` [PATCH v2 09/12] IB/isert: Introduce isert_map/unmap_data_buf Sagi Grimberg
2014-02-19 15:50   ` [PATCH v2 10/12] IB/isert: Initialize T10-PI resources Sagi Grimberg
2014-02-19 15:50   ` [PATCH v2 11/12] IB/isert: Accept RDMA_WRITE completions Sagi Grimberg
2014-02-19 15:50   ` [PATCH v2 12/12] IB/isert: Support T10-PI protected transactions Sagi Grimberg
2014-03-13 18:15     ` Nicholas A. Bellinger
     [not found]       ` <1394734546.19265.2.camel-XoQW25Eq2zviZyQQd+hFbcojREIfoBdhmpATvIKMPHk@public.gmane.org>
2014-03-13 18:57         ` Sagi Grimberg
2014-03-13 18:59           ` Nicholas A. Bellinger
2014-03-13 19:14             ` Sagi Grimberg
2014-03-13 19:16               ` Nicholas A. Bellinger
2014-02-19 23:14 ` [PATCH v2 00/12] T10-DIF Initial support for iSER target Nicholas A. Bellinger
2014-02-20 12:51   ` Sagi Grimberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox