]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
scsi: qla2xxx: Add boundary checks for exchanges to be offloaded
authorQuinn Tran <quinn.tran@cavium.com>
Thu, 28 Dec 2017 20:33:12 +0000 (12:33 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 4 Jan 2018 04:41:05 +0000 (23:41 -0500)
commitd1e3635a5ef2523e517068d0acb25533e739bf10
tree466a552fae16f226113acc29a7c2b0ff21615972
parent3407fc373d8ad794e94fc50b9c085f7451b502f8
scsi: qla2xxx: Add boundary checks for exchanges to be offloaded

Max boundary for exchange off load is 32k exchanges. If a system
is unable to allocate large memory buffer to support this feature,
then driver will reduce the number of exchanges down to a value
system can support.

Signed-off-by: Quinn Tran <quinn.tran@cavium.com>
Signed-off-by: Himanshu Madhani <himanshu.madhani@cavium.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_def.h
drivers/scsi/qla2xxx/qla_os.c