forked from luck/tmp_suning_uos_patched
[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>
This commit is contained in:
parent
d2cecf0dcb
commit
42f43c419e
@ -277,6 +277,10 @@ int beiscsi_set_param(struct iscsi_cls_conn *cls_conn,
|
||||
if (session->max_burst > 262144)
|
||||
session->max_burst = 262144;
|
||||
break;
|
||||
case ISCSI_PARAM_MAX_XMIT_DLENGTH:
|
||||
if ((conn->max_xmit_dlength > 65536) ||
|
||||
(conn->max_xmit_dlength == 0))
|
||||
conn->max_xmit_dlength = 65536;
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user