• Nicholas Bellinger's avatar
    vhost/scsi: Add fabric_prot_type attribute support · b1d75fe5
    Nicholas Bellinger authored
    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: default avatarNicholas Bellinger <nab@linux-iscsi.org>
    b1d75fe5
scsi.c 65.9 KB