aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJayamohan Kallickal <jayamohank@serverengines.com>2010-07-21 18:56:45 -0400
committerJames Bottomley <James.Bottomley@suse.de>2010-07-28 10:05:36 -0400
commit42f43c419e1881b543faf20182cad0f789b73d2f (patch)
treef5867e6452164fe16dd1456b8404c88a6b996905 /drivers
parentd2cecf0dcb2eb066756e0303d9f162ebe20d0591 (diff)
[SCSI] be2iscsi: Limit max_xmit_length
This patch limits max_xmit_length to 64K incase older utilities are used Signed-off-by: Jayamohan Kallickal <jayamohank@serverengines.com> Reviewed-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/scsi/be2iscsi/be_iscsi.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/scsi/be2iscsi/be_iscsi.c b/drivers/scsi/be2iscsi/be_iscsi.c
index de79b7cf804d..a131a576a102 100644
--- a/drivers/scsi/be2iscsi/be_iscsi.c
+++ b/drivers/scsi/be2iscsi/be_iscsi.c
@@ -277,6 +277,10 @@ int beiscsi_set_param(struct iscsi_cls_conn *cls_conn,
277 if (session->max_burst > 262144) 277 if (session->max_burst > 262144)
278 session->max_burst = 262144; 278 session->max_burst = 262144;
279 break; 279 break;
280 case ISCSI_PARAM_MAX_XMIT_DLENGTH:
281 if ((conn->max_xmit_dlength > 65536) ||
282 (conn->max_xmit_dlength == 0))
283 conn->max_xmit_dlength = 65536;
280 default: 284 default:
281 return 0; 285 return 0;
282 } 286 }