diff options
author | Fam Zheng <famz@redhat.com> | 2018-06-01 17:26:46 +0800 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2018-06-01 14:41:48 +0100 |
commit | 604dfaaa3270081da689991afe83d94d3e8231df (patch) | |
tree | 80b0bbffb86c3e9d220d9eb96b0c209236b49dd5 /include/scsi | |
parent | 66e75c03b2247bda6dcaa883b700291bc0f7f0ef (diff) |
iscsi: Implement copy offloading
Issue EXTENDED COPY (LID1) command to implement the copy_range API.
The parameter data construction code is modified from libiscsi's
iscsi-dd.c.
Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 20180601092648.24614-9-famz@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'include/scsi')
-rw-r--r-- | include/scsi/constants.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/scsi/constants.h b/include/scsi/constants.h index a141dd71f8..083a8e887a 100644 --- a/include/scsi/constants.h +++ b/include/scsi/constants.h @@ -311,4 +311,8 @@ #define MMC_PROFILE_HDDVD_RW_DL 0x005A #define MMC_PROFILE_INVALID 0xFFFF +#define XCOPY_DESC_OFFSET 16 +#define IDENT_DESCR_TGT_DESCR_SIZE 32 +#define XCOPY_BLK2BLK_SEG_DESC_SIZE 28 + #endif |