]> git.karo-electronics.de Git - mv-sheeva.git/commit
[SCSI] scsi_debug: DIF/DIX support
authorMartin K. Petersen <martin.petersen@oracle.com>
Sun, 4 Jan 2009 08:08:19 +0000 (03:08 -0500)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Thu, 12 Mar 2009 17:57:55 +0000 (12:57 -0500)
commitc6a44287417de1625a59f1d4ae52d033c03b9dab
tree380e7fdb6f689196a648c7c8bc3cf41c5cd58fcc
parent59d3270326fcba29226c28df27cb43fefd8c58d0
[SCSI] scsi_debug: DIF/DIX support

This patch adds support for DIX and DIF in scsi_debug.  A separate
buffer is allocated for the protection information.

 - The dix parameter indicates whether the controller supports DIX
   (protection information DMA)

 - The dif parameter indicates whether the simulated storage device
   supports DIF

 - The guard parameter switches between T10 CRC(0) and IP checksum(1)

 - The ato parameter indicates whether the application tag is owned by
   the disk(0) or the OS(1)

 - DIF and DIX errors can be triggered using the scsi_debug_opts mask

Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Acked-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/scsi_debug.c