1. 13 12月, 2006 1 次提交
  2. 11 10月, 2006 1 次提交
  3. 18 6月, 2006 5 次提交
    • R
      IB/srp: Support SRP rev. 10 targets · 0c0450db
      Ramachandra K 提交于
      There has been a change in the format of port identifiers between
      revision 10 of the SRP specification and the current revision 16A.
      
      Revision 10 specifies port identifier format as
      
        lower 8 bytes :  GUID   upper 8 bytes :  Extension
      
      Whereas revision 16A specifies it as 
      
       lower 8 bytes :  Extension  upper 8 bytes :  GUID
      
      There are older targets (e.g. SilverStorm Virtual Fibre Channel
      Bridge) which conform to revision 10 of the SRP specification.
      
      The I/O class of revision 10 is 0xFF00 and the I/O class of revision
      16A is 0x0100.
      
      For supporting older targets, this patch:
      
      1) Adds a new optional target creation parameter "io_class". Default
         value of io_class is 0x0100 (i.e. revision 16A)
      2) Uses the correct port identifier format for targets with IO class
         of 0xFF00 (i.e. conforming to revision 10)
      Signed-off-by: NRamachandra K <rkuchimanchi@silverstorm.com>
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      0c0450db
    • R
      IB/srp: Get rid of "Target has req_lim 0" messages · 6bfa24fa
      Roland Dreier 提交于
      It's perfectly valid for a connection to an SRP target to have a
      request limit of 0, so get rid of the message about it, which can spam
      kernel logs even with printk_ratelimit().  Keep a count of such events
      in a "zero_req_lim" SCSI host attribute instead, so someone who cares
      can look at the statistics.
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      6bfa24fa
    • V
      IB/srp: Allow sg_tablesize to be adjusted · 74b0a15b
      Vu Pham 提交于
      Make the sg_tablesize used by SRP adjustable at module load time via a
      module parameter.  Calculate the corresponding IU length required to
      support this.
      Signed-off-by: NVu Pham <vu@mellanox.com>
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      74b0a15b
    • M
      IB/srp: Change target_mutex to a spinlock · b3589fd4
      Matthew Wilcox 提交于
      The SRP driver never sleeps while holding target_mutex, and it's just
      used to protect some simple list operations, so hold times will be
      short.  So just convert it to a spinlock, which is smaller and faster.
      Signed-off-by: NMatthew Wilcox <matthew@wil.cx>
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      b3589fd4
    • R
      IB/srp: Use FMRs to map gather/scatter lists · f5358a17
      Roland Dreier 提交于
      Create an SRP FMR pool on HCAs that support FMRs, and use FMRs to map
      gather/scatter lists that have more than one entry into a single
      memory region that appears virtually contiguous to the SRP target
      (which is the RDMA initiator).
      
      This patch bails out on FMR mapping for SCSI commands where the
      gather/scatter list cannot be mapped into a single FMR because there
      are sub-page-sized entries in middle of the list.  An unaligned
      start or end of the list is OK.
      
      Based on a patch by Vu Pham <vuhuong@mellanox.com>.
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      f5358a17
  4. 10 5月, 2006 1 次提交
  5. 25 3月, 2006 1 次提交
    • R
      IB/srp: Use a fake scatterlist for non-SG SCSI commands · cf368713
      Roland Dreier 提交于
      Since the SCSI midlayer is moving towards entirely getting rid of
      commands with use_sg == 0, we should treat this case as an exception.
      Therefore, change the IB SRP initiator to create a fake scatterlist
      for these commands with sg_init_one().  This simplifies the flow of
      DMA mapping and unmapping, since SRP can just use dma_map_sg() and
      dma_unmap_sg() unconditionally, rather than having to choose between
      the dma_{map,unmap}_sg() and dma_{map,unmap}_single() variants.
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      cf368713
  6. 31 1月, 2006 1 次提交
  7. 12 11月, 2005 1 次提交
  8. 03 11月, 2005 1 次提交