1. 17 11月, 2016 8 次提交
  2. 16 11月, 2016 14 次提交
  3. 19 10月, 2016 1 次提交
  4. 15 10月, 2016 10 次提交
  5. 08 10月, 2016 7 次提交
    • S
      iw_cxgb4: add fast-path for small REG_MR operations · 49b53a93
      Steve Wise 提交于
      When processing a REG_MR work request, if fw supports the
      FW_RI_NSMR_TPTE_WR work request, and if the page list for this
      registration is <= 2 pages, and the current state of the mr is INVALID,
      then use FW_RI_NSMR_TPTE_WR to pass down a fully populated TPTE for FW
      to write.  This avoids FW having to do an async read of the TPTE blocking
      the SQ until the read completes.
      
      To know if the current MR state is INVALID or not, iw_cxgb4 must track the
      state of each fastreg MR.  The c4iw_mr struct state is updated as REG_MR
      and LOCAL_INV WRs are posted and completed, when a reg_mr is destroyed,
      and when RECV completions are processed that include a local invalidation.
      
      This optimization increases small IO IOPS for both iSER and NVMF.
      Signed-off-by: NSteve Wise <swise@opengridcomputing.com>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      49b53a93
    • J
      IB/mlx4: Fix possible vl/sl field mismatch in LRH header in QP1 packets · fd10ed8e
      Jack Morgenstein 提交于
      In MLX qp packets, the LRH (built by the driver) has both a VL field
      and an SL field. When building a QP1 packet, the VL field should
      reflect the SLtoVL mapping and not arbitrarily contain zero (as is
      done now). This bug causes credit problems in IB switches at
      high rates of QP1 packets.
      
      The fix is to cache the SL to VL mapping in the driver, and look up
      the VL mapped to the SL provided in the send request when sending
      QP1 packets.
      
      For FW versions which support generating a port_management_config_change
      event with subtype sl-to-vl-table-change, the driver uses that event
      to update its sl-to-vl mapping cache.  Otherwise, the driver snoops
      incoming SMP mads to update the cache.
      
      There remains the case where the FW is running in secure-host mode
      (so no QP0 packets are delivered to the driver), and the FW does not
      generate the sl2vl mapping change event. To support this case, the
      driver updates (via querying the FW) its sl2vl mapping cache when
      running in secure-host mode when it receives either a Port Up event
      or a client-reregister event (where the port is still up, but there
      may have been an opensm failover).
      OpenSM modifies the sl2vl mapping before Port Up and Client-reregister
      events occur, so if there is a mapping change the driver's cache will
      be properly updated.
      
      Fixes: 225c7b1f ("IB/mlx4: Add a driver Mellanox ConnectX InfiniBand adapters")
      Signed-off-by: NJack Morgenstein <jackm@dev.mellanox.co.il>
      Signed-off-by: NLeon Romanovsky <leon@kernel.org>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      fd10ed8e
    • L
      IB/mthca: Move user vendor structures · 486f6095
      Leon Romanovsky 提交于
      This patch moves mthca vendor's specific structures to
      common UAPI folder which will be visible to all consumers.
      
      These structures are used by user-space library driver
      (libmthca) and currently manually copied to that library.
      
      This move will allow cross-compile against these files and
      simplify introduction of vendor specific data.
      Signed-off-by: NLeon Romanovsky <leon@kernel.org>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      486f6095
    • L
      IB/nes: Move user vendor structures · c546b2a3
      Leon Romanovsky 提交于
      This patch moves nes vendor's specific structures to
      common UAPI folder which will be visible to all consumers.
      
      These structures are used by user-space library driver
      (libmlx4) and currently manually copied to that library.
      
      This move will allow cross-compile against these files and
      simplify introduction of vendor specific data.
      Signed-off-by: NLeon Romanovsky <leon@kernel.org>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      c546b2a3
    • L
      IB/ocrdma: Move user vendor structures · a7fe7380
      Leon Romanovsky 提交于
      This patch moves ocrdma vendor's specific structures to
      common UAPI folder which will be visible to all consumers.
      
      These structures are used by user-space library driver
      (libmlx4) and currently manually copied to that library.
      
      This move will allow cross-compile against these files and
      simplify introduction of vendor specific data.
      
      In addition, it changes types to be __uXX instead of uXX.
      Signed-off-by: NLeon Romanovsky <leon@kernel.org>
      Acked-By: NDevesh Sharma <devesh.sharma@broadcom.com>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      a7fe7380
    • L
      IB/mlx4: Move user vendor structures · 9ce28a20
      Leon Romanovsky 提交于
      This patch moves mlx4 vendor's specific structures to
      common UAPI folder which will be visible to all consumers.
      
      These structures are used by user-space library driver
      (libmlx4) and currently manually copied to that library.
      
      This move will allow cross-compile against these files and
      simplify introduction of vendor specific data.
      Signed-off-by: NLeon Romanovsky <leon@kernel.org>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      9ce28a20
    • L
      IB/cxgb4: Move user vendor structures · e44ee2fd
      Leon Romanovsky 提交于
      This patch moves cxgb4 vendor's specific structures to
      common UAPI folder which will be visible to all consumers.
      
      These structures are used by user-space library driver
      (libcxgb4) and currently manually copied to that library.
      
      This move will allow cross-compile against these files and
      simplify introduction of vendor specific data.
      Signed-off-by: NLeon Romanovsky <leon@kernel.org>
      Reviewed-by: NSteve Wise <swise@opengridcomputing.com>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      e44ee2fd