From 3326253e149a6942714771bdb7c0cb0db413815a Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Tue, 10 Nov 2015 00:20:33 +0000 Subject: [PATCH] scst_copy_mgr: Introduce a symbol for the MAXIMUM DESCRIPTOR LIST LENGTH git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6643 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/scst_copy_mgr.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scst/src/scst_copy_mgr.c b/scst/src/scst_copy_mgr.c index 7889413eb..dabbbd603 100644 --- a/scst/src/scst_copy_mgr.c +++ b/scst/src/scst_copy_mgr.c @@ -35,6 +35,9 @@ /* Too big value is not too good for the blocking machinery */ #define SCST_CM_MAX_TGT_DESCR_CNT 5 +/* MAXIMUM DESCRIPTOR LIST LENGTH */ +#define SCST_MAX_SEG_DESC_LEN 0xFFFF + static struct scst_tgt *scst_cm_tgt; static struct scst_session *scst_cm_sess; @@ -2214,7 +2217,7 @@ static void scst_cm_oper_parameters(struct scst_cmd *cmd) sizeof(struct scst_ext_copy_seg_descr), &tbuf[10]); /* MAXIMUM DESCRIPTOR LIST LENGTH */ - put_unaligned_be32(0xFFFF, &tbuf[12]); + put_unaligned_be32(SCST_MAX_SEG_DESC_LEN, &tbuf[12]); /* MAXIMUM SEGMENT LENGTH: 256MB */ put_unaligned_be32(256*1024*1024, &tbuf[16]);