diff options
author | Sagi Grimberg | 2014-02-19 16:50:25 +0100 |
---|---|---|
committer | Nicholas Bellinger | 2014-04-07 10:48:47 +0200 |
commit | 9e961ae73c2ce81387e9b375231d4aefe5ffa13e (patch) | |
tree | 334920c6098f208f72393135e5b8054a3ffc4750 /drivers/infiniband/ulp/isert/ib_isert.h | |
parent | IB/isert: Accept RDMA_WRITE completions (diff) | |
download | kernel-qcow2-linux-9e961ae73c2ce81387e9b375231d4aefe5ffa13e.tar.gz kernel-qcow2-linux-9e961ae73c2ce81387e9b375231d4aefe5ffa13e.tar.xz kernel-qcow2-linux-9e961ae73c2ce81387e9b375231d4aefe5ffa13e.zip |
IB/isert: Support T10-PI protected transactions
In case the Target core passed transport T10 protection
operation:
1. Register data buffer (data memory region)
2. Register protection buffer if exsists (prot memory region)
3. Register signature region (signature memory region)
- use work request IB_WR_REG_SIG_MR
4. Execute RDMA
5. Upon RDMA completion check the signature status
- if succeeded send good SCSI response
- if failed send SCSI bad response with appropriate sense buffer
(Fix up compile error in isert_reg_sig_mr, and fix up incorrect
se_cmd->prot_type -> TARGET_PROT_NORMAL comparision - nab)
(Fix failed sector assignment in isert_completion_rdma_* - Sagi + nab)
(Fix enum assignements for protection type - Sagi)
(Fix devision on 32-bit in isert_completion_rdma_* - Sagi + Fengguang)
(Fix context change for v3.14-rc6 code - nab)
(Fix iscsit_build_rsp_pdu inc_statsn flag usage - nab)
Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/infiniband/ulp/isert/ib_isert.h')
-rw-r--r-- | drivers/infiniband/ulp/isert/ib_isert.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/ulp/isert/ib_isert.h b/drivers/infiniband/ulp/isert/ib_isert.h index a75b75fbc9d1..4c072ae34c01 100644 --- a/drivers/infiniband/ulp/isert/ib_isert.h +++ b/drivers/infiniband/ulp/isert/ib_isert.h @@ -91,6 +91,7 @@ struct isert_rdma_wr { struct ib_send_wr *send_wr; struct ib_send_wr s_send_wr; struct isert_data_buf data; + struct isert_data_buf prot; struct fast_reg_descriptor *fr_desc; }; |