]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[SCSI] Host protection capabilities
authorMartin K. Petersen <martin.petersen@oracle.com>
Thu, 17 Jul 2008 08:28:30 +0000 (04:28 -0400)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Sat, 26 Jul 2008 19:14:54 +0000 (15:14 -0400)
commit4469f9878059f1707f021512e6b34252c4096ee7
tree3bc8ea358bea85235a8d9691c8b999626e685e0d
parent7c32c7a2d36c52d2b9ed040a9171364020ecc6a2
[SCSI] Host protection capabilities

Controllers that support protection information must indicate this to
the SCSI midlayer so that the ULD can prepare scsi_cmnds accordingly.

This patch implements a host mask and various types of protection:

 - DIF Type 1-3 (between HBA and disk)
 - DIX Type 0-3 (between OS and HBA)

The patch also allows the HBA to set the guard type to something
different than the T10-mandated CRC.

Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/scsi_sysfs.c
include/scsi/scsi_host.h