All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 0/3] Include protection information in iscsi header
@ 2014-06-08 10:27 Sagi Grimberg
  2014-06-08 10:27 ` [PATCH v1 1/3] scsi_cmnd: Introduce scsi_transfer_length helper Sagi Grimberg
                   ` (2 more replies)
  0 siblings, 3 replies; 18+ messages in thread
From: Sagi Grimberg @ 2014-06-08 10:27 UTC (permalink / raw)
  To: michaelc, martin.petersen, nab, roland
  Cc: linux-scsi, target-devel, linux-rdma

At the SCSI transport level, there is no distinction between
user data and protection information. Thus, iscsi header field
"expected data transfer length" should include protection
information.

Patch #1 introduces scsi helpers scsi_transfer_length (compute
wire transfer byte count) and scsi_prot_len (compute protection
information byte count).

Patch #2 modifies iscsi initiator to set correct wire transfer length
in iscsi header data_length field (and modifies iser accordingly).

Patch #3 modifies target core to expect protection information included
in the wire transfer length (and modifies loopback transport to do so).

I have 2 patches that convert lpfc/qla2xxx drivers to use scsi helpers
but these are completely untested at the moment. Once we get this set
to land upstream, I can queue them up as RFCs.

Changes from v0:
- Introduce scsi helpers to compute correct transfer length in the
  presence of protection information (instead of having each transport
  doing the same computation).
- Modify iscsi to set correct transfer length using scsi helpers
- Modify loopback transport to set correct transfer length using
  scsi helpers

Sagi Grimberg (3):
  scsi_cmnd: Introduce scsi_transfer_length helper
  libiscsi, iser: Adjust data_length to include protection information
  TARGET/sbc,loopback: Adjust command data length in case pi exists on
    the wire

 drivers/infiniband/ulp/iser/iser_initiator.c |   34 ++++++----------------
 drivers/scsi/libiscsi.c                      |   18 ++++++------
 drivers/target/loopback/tcm_loop.c           |   15 ++++++++--
 drivers/target/target_core_sbc.c             |   15 ++++++++-
 include/scsi/scsi_cmnd.h                     |   39 ++++++++++++++++++++++++++
 5 files changed, 83 insertions(+), 38 deletions(-)


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

end of thread, other threads:[~2014-06-12  4:01 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-08 10:27 [PATCH v1 0/3] Include protection information in iscsi header Sagi Grimberg
2014-06-08 10:27 ` [PATCH v1 1/3] scsi_cmnd: Introduce scsi_transfer_length helper Sagi Grimberg
     [not found]   ` <1402223228-23768-2-git-send-email-sagig-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2014-06-10 19:02     ` Martin K. Petersen
2014-06-10 19:16       ` Sagi Grimberg
     [not found]       ` <yq1fvjcvb8f.fsf-+q57XtR/GgMb6DWv4sQWN6xOck334EZe@public.gmane.org>
2014-06-10 20:19         ` Or Gerlitz
2014-06-10 20:21           ` Martin K. Petersen
2014-06-08 10:27 ` [PATCH v1 3/3] TARGET/sbc,loopback: Adjust command data length in case pi exists on the wire Sagi Grimberg
2014-06-10  8:04   ` Nicholas A. Bellinger
2014-06-10  8:12     ` Paolo Bonzini
2014-06-10 21:17     ` Quinn Tran
2014-06-11  7:24       ` Sagi Grimberg
2014-06-11 21:30         ` Nicholas A. Bellinger
2014-06-11 22:32           ` Quinn Tran
     [not found]             ` <504EB66DAC8D234EB8E8560985C2D7AD46D1D8C7-vcA9p2Eq0686wu3ARrlbmA@public.gmane.org>
2014-06-12  4:01               ` Nicholas A. Bellinger
     [not found]           ` <1402522215.17740.29.camel-XoQW25Eq2zviZyQQd+hFbcojREIfoBdhmpATvIKMPHk@public.gmane.org>
2014-06-11 23:20             ` Martin K. Petersen
     [not found] ` <1402223228-23768-1-git-send-email-sagig-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2014-06-08 10:27   ` [PATCH v1 2/3] libiscsi, iser: Adjust data_length to include protection information Sagi Grimberg
2014-06-10 18:19     ` Mike Christie
2014-06-10  8:10   ` [PATCH v1 0/3] Include protection information in iscsi header Nicholas A. Bellinger

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.