iscsi-target: Convert incoming PDU payload checks to MaxXmitDataSegmentLength
authorNicholas Bellinger <nab@linux-iscsi.org>
Sun, 30 Sep 2012 04:51:26 +0000 (21:51 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Tue, 2 Oct 2012 20:17:32 +0000 (13:17 -0700)
commit21f5aa7eb8572b5cfe36884c23d306c72fe3987c
tree086e4ca875ef4b24662f36a7ed5dcac071d1dc77
parent9977bb18c92e694819266fc0e7c5a3cd0cd7b626
iscsi-target: Convert incoming PDU payload checks to MaxXmitDataSegmentLength

Now that iscsi-target supports a local configurable MaxXmitDataSegmentLength,
go ahead and make ISCSI_OP_SCSI_CMD, ISCSI_OP_SCSI_DATA_OUT, ISCSI_OP_NOOP_OUT
and ISCSI_OP_TEXT PDU payload checks honor conn_ops->MaxXmitDataSegmentLength.

Cc: Mike Christie <michaelc@cs.wisc.edu>
Cc: Andy Grover <agrover@redhat.com>
Cc: Hannes Reinecke <hare@suse.de>
Cc: Roland Dreier <roland@purestorage.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/iscsi/iscsi_target.c