1. 08 4月, 2015 2 次提交
    • N
      target: Add protected fabric + unprotected device support · 38b57f82
      Nicholas Bellinger 提交于
      This patch adds a new target_core_fabric_ops callback for allowing fabric
      drivers to expose a TPG attribute for signaling when a T10-PI protected
      fabric wants to function with an un-protected device without T10-PI.
      
      This specifically is to allow LIO to perform WRITE_STRIP + READ_INSERT
      operations when functioning with non T10-PI enabled devices, seperate
      from any available hw offloads the fabric supports.
      
      This is done using a new se_sess->sess_prot_type that is set at fabric
      session creation time based upon the TPG attribute.  It currently cannot
      be changed for individual sessions after initial creation.
      
      Also, update existing target_core_sbc.c code to honor sess_prot_type when
      setting up cmd->prot_op + cmd->prot_type assignments.
      
      (Add unlikely and !! boolean conversion in sbc_check_prot - Sagi)
      
      Cc: Martin Petersen <martin.petersen@oracle.com>
      Cc: Sagi Grimberg <sagig@mellanox.com>
      Cc: Christoph Hellwig <hch@lst.de>
      Cc: Doug Gilbert <dgilbert@interlog.com>
      Signed-off-by: NNicholas Bellinger <nab@linux-iscsi.org>
      38b57f82
    • N
      target: Convert DIF emulation to use cmd->prot_type · 823ddd87
      Nicholas Bellinger 提交于
      This patch changes existing DIF emulation to check the command descriptor's
      prot_type, instead of what the backend device is exposing in pi_prot_type.
      
      Since this value is already set in sbc_check_prot(), go ahead and use it to
      allow protected fabrics to function with unprotected devices.
      Reviewed-by: NMartin Petersen <martin.petersen@oracle.com>
      Reviewed-by: NSagi Grimberg <sagig@mellanox.com>
      Cc: Christoph Hellwig <hch@lst.de>
      Signed-off-by: NNicholas Bellinger <nab@linux-iscsi.org>
      823ddd87
  2. 27 3月, 2015 9 次提交
  3. 21 3月, 2015 2 次提交
  4. 07 3月, 2015 3 次提交
  5. 28 2月, 2015 2 次提交
  6. 21 2月, 2015 3 次提交
  7. 20 2月, 2015 19 次提交