1. 15 Mar, 2011 5 commits
    • David Dillow's avatar
      IB/srp: rework mapping engine to use multiple FMR entries · 8f26c9ff
      David Dillow authored
      Instead of forcing all of the S/G entries to fit in one FMR, and falling
      back to indirect descriptors if that fails, allow the use of as many
      FMRs as needed to map the request. This lays the groundwork for allowing
      indirect descriptor tables that are larger than can fit in the command
      IU, but should marginally improve performance now by reducing the number
      of indirect descriptors needed.
      
      We increase the minimum page size for the FMR pool to 4K, as larger
      pages help increase the coverage of each FMR, and it is rare that the
      kernel would send down a request with scattered 512 byte fragments.
      
      This patch also move some of the target initialization code afte the
      parsing of options, to keep it together with the new code that needs to
      allocate memory based on the options given.
      Signed-off-by: default avatarDavid Dillow <dillowda@ornl.gov>
      8f26c9ff
    • David Dillow's avatar
      IB/srp: allow sg_tablesize to be set for each target · 49248644
      David Dillow authored
      Different configurations of target software allow differing max sizes of
      the command IU. Allowing this to be changed per-target allows all
      targets on an initiator to get an optimal setting.
      
      We deprecate srp_sg_tablesize and replace it with cmd_sg_entries in
      preparation for allowing more indirect descriptors than can fit in the
      IU.
      Signed-off-by: default avatarDavid Dillow <dillowda@ornl.gov>
      49248644
    • David Dillow's avatar
      IB/srp: move IB CM setup completion into its own function · 961e0be8
      David Dillow authored
      This is to clean up prior to further changes.
      Signed-off-by: default avatarDavid Dillow <dillowda@ornl.gov>
      961e0be8
    • David Dillow's avatar
      IB/srp: always avoid non-zero offsets into an FMR · 8c4037b5
      David Dillow authored
      It is unclear exactly how this code works around Mellanox SRP targets,
      or if the problem is on the target side or in the HCA itself. In an
      abundance of caution, we should always enable the workaround.
      Signed-off-by: default avatarDavid Dillow <dillowda@ornl.gov>
      8c4037b5
    • Linus Torvalds's avatar
      Linux 2.6.38 · 521cb40b
      Linus Torvalds authored
      521cb40b
  2. 14 Mar, 2011 35 commits