1. 14 5月, 2016 7 次提交
  2. 27 4月, 2016 1 次提交
  3. 22 3月, 2016 1 次提交
    • E
      IB/core: Add interfaces to control VF attributes · 50174a7f
      Eli Cohen 提交于
      Following the practice exercised for network devices which allow the PF
      net device to configure attributes of its virtual functions, we
      introduce the following functions to be used by IPoIB which is the
      network driver implementation for IB devices.
      
      ib_set_vf_link_state - set the policy for a VF link. More below.
      ib_get_vf_config - read configuration information of a VF
      ib_get_vf_stats - read VF statistics
      ib_set_vf_guid - set the node or port GUID of a VF
      
      Also add an indication in the device cap flags that indicates that this
      IB devices is based on a virtual function.
      
      A VF shares the physical port with the PF and other VFs. When setting
      the link state we have three options:
      
      1. Auto - in this mode, the virtual port follows the state of the
         physical port and becomes active only if the physical port's state is
         active. In all other cases it remains in a Down state.
      2. Down - sets the state of the virtual port to Down
      3. Up - causes the virtual port to transition into Initialize state if
         it was not already in this state. A virtualization aware subnet manager
         can then bring the state of the port into the Active state.
      Signed-off-by: NEli Cohen <eli@mellanox.com>
      Reviewed-by: NOr Gerlitz <ogerlitz@mellanox.com>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      50174a7f
  4. 05 3月, 2016 1 次提交
  5. 01 3月, 2016 1 次提交
    • S
      IB: new common API for draining queues · 765d6774
      Steve Wise 提交于
      Add provider-specific drain_sq/drain_rq functions for providers needing
      special drain logic.
      
      Add static functions __ib_drain_sq() and __ib_drain_rq() which post noop
      WRs to the SQ or RQ and block until their completions are processed.
      This ensures the applications completions for work requests posted prior
      to the drain work request have all been processed.
      
      Add API functions ib_drain_sq(), ib_drain_rq(), and ib_drain_qp().
      
      For the drain logic to work, the caller must:
      
      ensure there is room in the CQ(s) and QP for the drain work request
      and completion.
      
      allocate the CQ using ib_alloc_cq() and the CQ poll context cannot be
      IB_POLL_DIRECT.
      
      ensure that there are no other contexts that are posting WRs concurrently.
      Otherwise the drain is not guaranteed.
      Reviewed-by: NChuck Lever <chuck.lever@oracle.com>
      Signed-off-by: NSteve Wise <swise@opengridcomputing.com>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      765d6774
  6. 20 1月, 2016 3 次提交
  7. 24 12月, 2015 3 次提交
  8. 23 12月, 2015 4 次提交
  9. 08 12月, 2015 1 次提交
    • B
      IB core: Fix ib_sg_to_pages() · 8f5ba10e
      Bart Van Assche 提交于
      On 12/03/2015 01:18 AM, Christoph Hellwig wrote:
      > The patch looks good to me, but while we touch this area, how about
      > throwing in a few cosmetic fixes as well?
      
      How about the patch below ? In that version of the ib_sg_to_pages() fix
      these concerns have been addressed and additionally to more bugs have been fixed.
      
      ------------
      
      [PATCH] IB core: Fix ib_sg_to_pages()
      
      Fix the code for detecting gaps. A gap occurs not only if the
      second or later scatterlist element is not aligned but also if
      any scatterlist element other than the last does not end at a
      page boundary.
      
      In the code for coalescing contiguous elements, ensure that
      mr->length is correct and that last_page_addr is up-to-date.
      
      Ensure that this function returns a negative
      error code instead of zero if the first set_page() call fails.
      
      Fixes: commit 4c67e2bf ("IB/core: Introduce new fast registration API")
      Reported-by: NChristoph Hellwig <hch@lst.de>
      Reviewed-by: NSagi Grimberg <sagig@mellanox.com>
      Reviewed-by: NChristoph Hellwig <hch@lst.de>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      8f5ba10e
  10. 31 10月, 2015 1 次提交
  11. 29 10月, 2015 2 次提交
  12. 22 10月, 2015 2 次提交
  13. 31 8月, 2015 5 次提交
  14. 06 8月, 2015 1 次提交
  15. 13 6月, 2015 2 次提交
  16. 02 6月, 2015 1 次提交
  17. 19 5月, 2015 3 次提交
  18. 16 12月, 2014 1 次提交