]> git.karo-electronics.de Git - karo-tx-linux.git/commit
virtio-scsi: Enable DIF/DIX modes in SCSI host LLD
authorNicholas Bellinger <nab@linux-iscsi.org>
Sun, 23 Feb 2014 02:23:33 +0000 (18:23 -0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 23 May 2014 17:37:40 +0000 (10:37 -0700)
commit47690701e080a53e95fd3e6a5009f1f0670309dd
tree1e14032708ce350bbdc575dd07cbc20c7c8235d4
parent52d3e2d5c28bf8931ded4ff81fcf7a8c20973804
virtio-scsi: Enable DIF/DIX modes in SCSI host LLD

This patch updates virtscsi_probe() to setup necessary Scsi_Host
level protection resources. (currently hardcoded to 1)

It changes virtscsi_add_cmd() to attach outgoing / incoming
protection SGLs preceeding the data payload, and is using the
new virtio_scsi_cmd_req_pi->pi_bytes[out,in] field to signal
to signal to vhost/scsi bytes to expect for protection data.

(Add missing #include <linux/blkdev.h> for blk_integrity - sfr + nab)

Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Cc: Michael S. Tsirkin <mst@redhat.com>
Cc: Martin K. Petersen <martin.petersen@oracle.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Hannes Reinecke <hare@suse.de>
Cc: Sagi Grimberg <sagig@dev.mellanox.co.il>
Cc: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/scsi/Kconfig
drivers/scsi/virtio_scsi.c