1. 24 5月, 2018 14 次提交
  2. 23 5月, 2018 3 次提交
    • S
      RDMA/CMA: add rdma_iw_cm_id() and rdma_res_to_id() helpers · fbdb0a91
      Steve Wise 提交于
      Add a helper function for iwarp drivers to be able to map an
      rdma_cm_id to an iw_cm_id.  This is useful for dumping driver specific
      NLDEV/RESTRACK connection state.
      
      Add a helper to return the rdma_cm_id pointer from the rdma_restack
      pointer.  This is needed for rdma drivers to map a res entry back to
      the public rdma_cm_id struct.
      Signed-off-by: NSteve Wise <swise@opengridcomputing.com>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      fbdb0a91
    • S
      iw_cxgb4: always set iw_cm_id.provider_data · b06f2efd
      Steve Wise 提交于
      In active side connections, the provider_data field is not
      getting set.  This will be used in a subsequent patch to dump
      state, so always set it.
      Signed-off-by: NSteve Wise <swise@opengridcomputing.com>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      b06f2efd
    • D
      RDMA/ipoib: Update paths on CLIENT_REREG/SM_CHANGE events · fa9391db
      Doug Ledford 提交于
      We do a light flush on CLIENT_REREG and SM_CHANGE events.  This goes
      through and marks paths invalid. But we weren't always checking for this
      validity when we needed to, and so we could keep using a path marked
      invalid.  What's more, once we establish a path with a valid ah, we put
      a pointer to the ah in the neigh struct directly, so even if we mark the
      path as invalid, as long as the neigh has a direct pointer to the ah, it
      keeps using the old, outdated ah.
      
      To fix this we do several things.
      
      1) Put the valid flag in the ah instead of the path struct, so when we
      put the ah pointer directly in the neigh struct, we can easily check the
      validity of the ah on send events.
      2) Check the neigh->ah and neigh->ah->valid elements in the needed
      places, and if we have an ah, but it's invalid, then invoke a refresh of
      the ah.
      3) Fix the various places that check for path, but didn't check for
      path->valid (now path->ah && path->ah->valid).
      Reported-by: NEvgenii Smirnov <evgenii.smirnov@profitbricks.com>
      Fixes: ee1e2c82 ("IPoIB: Refresh paths instead of flushing them on SM change events")
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      fa9391db
  3. 17 5月, 2018 14 次提交
  4. 16 5月, 2018 6 次提交
  5. 15 5月, 2018 2 次提交
    • B
      IB: Fix RDMA_RXE and INFINIBAND_RDMAVT dependencies for DMA_VIRT_OPS · e02637e9
      Ben Hutchings 提交于
      DMA_VIRT_OPS requires that dma_addr_t is at least as wide as a
      pointer, which is expressed as a dependency on !64BIT ||
      ARCH_DMA_ADDR_T_64BIT.
      
      For parisc64 this is not true, and if these IB modules are enabled,
      kconfig warns:
      
      WARNING: unmet direct dependencies detected for DMA_VIRT_OPS
        Depends on [n]: HAS_DMA [=y] && (!64BIT [=y] || ARCH_DMA_ADDR_T_64BIT)
        Selected by [m]:
        - INFINIBAND_RDMAVT [=m] && INFINIBAND [=m] && 64BIT [=y] && PCI [=y]
        - RDMA_RXE [=m] && INET [=y] && PCI [=y] && INFINIBAND [=m]
      
      Add dependencies to fix this.
      Signed-off-by: NBen Hutchings <ben@decadent.org.uk>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      e02637e9
    • D
      Merge tag 'mlx5-updates-2018-05-07' of... · f4fc6e04
      Doug Ledford 提交于
      Merge tag 'mlx5-updates-2018-05-07' of git://git.kernel.org/pub/scm/linux/kernel/git/mellanox/linux into k.o/wip/dl-for-next
      
      mlx5-updates-2018-05-07
      
      mlx5 core driver misc cleanups and updates:
       - fix spelling mistake: "modfiy" -> "modify"
       - Cleanup unused field in Work Queue parameters
       - dump_command mailbox length printed
       - Refactor num of blocks in mailbox calculation
       - Decrease level of prints about non-existent MKEY
       - remove some extraneous spaces in indentations
      
      Pulling the same update already pulled into net-next by Dave Miller.
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      f4fc6e04
  6. 10 5月, 2018 1 次提交