scsi: ibmvfc: add FC Class 3 Error Recovery support
authorTyrel Datwyler <tyreld@linux.vnet.ibm.com>
Wed, 3 Aug 2016 21:36:53 +0000 (16:36 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 26 Aug 2016 03:39:26 +0000 (23:39 -0400)
commita6104b1e1846273d52b9230d700939fef0a9da80
tree372c1a69cf73a2e20ec3ea31c4d4cc92e178d4af
parentbb5a505407dfbfbdfa9d6e18fbe917ac83ab023a
scsi: ibmvfc: add FC Class 3 Error Recovery support

The ibmvfc driver currently doesn't support FC Class 3 Error Recovery.
However, it is simply a matter of informing the VIOS that the payload
expects to use sequence level error recovery via a bit flag in the
ibmvfc_cmd structure.

This patch adds a module parameter to enable error recovery support at
boot time. When enabled the RETRY service parameter bit is set during
PRLI, and ibmvfc_cmd->flags includes the IBMVFC_CLASS_3_ERR bit.

Signed-off-by: Tyrel Datwyler <tyreld@linux.vnet.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ibmvscsi/ibmvfc.c
drivers/scsi/ibmvscsi/ibmvfc.h