vhost/scsi: Add fabric_prot_type attribute support
authorNicholas Bellinger <nab@linux-iscsi.org>
Sat, 28 Mar 2015 07:03:51 +0000 (00:03 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 8 Apr 2015 06:27:46 +0000 (23:27 -0700)
commitb1d75fe53ef20b90bb64b1e48b905416f0dfde23
tree6855a00cccc72be6cd888b1cc19c9bde0cd3c23f
parent436f4a0a99520623ef3fb994d70d2938fc9f00b6
vhost/scsi: Add fabric_prot_type attribute support

This patch updates vhost-scsi to add a new fabric_prot_type TPG
attribute, used for controlling LLD level protection into LIO when
the backend device does not support T10-PI.

This is required for vhost-scsi to enable WRITE_STRIP + READ_INSERT
operations using software emulation + crct10dif instruction offload.

It's disabled by default and controls which se_sesion->sess_prot_type
are set at vhost_scsi_make_nexus() session registration time.

Cc: Michael S. Tsirkin <mst@redhat.com>
Cc: Martin Petersen <martin.petersen@oracle.com>
Cc: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/vhost/scsi.c