1. 02 8月, 2014 1 次提交
  2. 03 4月, 2014 8 次提交
  3. 18 3月, 2014 1 次提交
    • P
      RDMA/ocrdma: Fix compiler warning · bc1b04ab
      Prarit Bhargava 提交于
      drivers/infiniband/hw/ocrdma/ocrdma_verbs.c: In function ‘_ocrdma_modify_qp’:
      drivers/infiniband/hw/ocrdma/ocrdma_verbs.c:1299:31: error: ‘old_qps’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
        status = ocrdma_mbx_modify_qp(dev, qp, attr, attr_mask, old_qps);
      
      ocrdma_mbx_modify_qp() (and subsequent calls) doesn't appear to use old_qps
      so it doesn't need to be passed on.  Removing the variable results in the
      warning going away.
      Signed-off-by: NPrarit Bhargava <prarit@redhat.com>
      Acked-by: Devesh Sharma (Devesh.sharma@emulex.com)
      Signed-off-by: NRoland Dreier <roland@purestorage.com>
      bc1b04ab
  4. 05 3月, 2014 1 次提交
  5. 15 2月, 2014 1 次提交
  6. 14 2月, 2014 1 次提交
  7. 20 1月, 2014 1 次提交
  8. 15 1月, 2014 1 次提交
    • M
      IB/core: Ethernet L2 attributes in verbs/cm structures · dd5f03be
      Matan Barak 提交于
      This patch add the support for Ethernet L2 attributes in the
      verbs/cm/cma structures.
      
      When dealing with L2 Ethernet, we should use smac, dmac, vlan ID and priority
      in a similar manner that the IB L2 (and the L4 PKEY) attributes are used.
      
      Thus, those attributes were added to the following structures:
      
      * ib_ah_attr - added dmac
      * ib_qp_attr - added smac and vlan_id, (sl remains vlan priority)
      * ib_wc - added smac, vlan_id
      * ib_sa_path_rec - added smac, dmac, vlan_id
      * cm_av - added smac and vlan_id
      
      For the path record structure, extra care was taken to avoid the new
      fields when packing it into wire format, so we don't break the IB CM
      and SA wire protocol.
      
      On the active side, the CM fills. its internal structures from the
      path provided by the ULP.  We add there taking the ETH L2 attributes
      and placing them into the CM Address Handle (struct cm_av).
      
      On the passive side, the CM fills its internal structures from the WC
      associated with the REQ message.  We add there taking the ETH L2
      attributes from the WC.
      
      When the HW driver provides the required ETH L2 attributes in the WC,
      they set the IB_WC_WITH_SMAC and IB_WC_WITH_VLAN flags. The IB core
      code checks for the presence of these flags, and in their absence does
      address resolution from the ib_init_ah_from_wc() helper function.
      
      ib_modify_qp_is_ok is also updated to consider the link layer. Some
      parameters are mandatory for Ethernet link layer, while they are
      irrelevant for IB.  Vendor drivers are modified to support the new
      function signature.
      Signed-off-by: NMatan Barak <matanb@mellanox.com>
      Signed-off-by: NOr Gerlitz <ogerlitz@mellanox.com>
      Signed-off-by: NRoland Dreier <roland@purestorage.com>
      dd5f03be
  9. 09 11月, 2013 2 次提交
  10. 15 10月, 2013 1 次提交
  11. 04 9月, 2013 1 次提交
    • R
      RDMA/ocrdma: Fix compiler warning about int/pointer size mismatch · 33ccbd85
      Roland Dreier 提交于
      Fix:
      
         drivers/infiniband/hw/ocrdma/ocrdma_verbs.c: In function 'ocrdma_build_fr':
      >> drivers/infiniband/hw/ocrdma/ocrdma_verbs.c:1832:7: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
           mr = (struct ocrdma_mr *)qp->dev->stag_arr[(hdr->lkey >> 8) &
                ^
         drivers/infiniband/hw/ocrdma/ocrdma_verbs.c: In function 'ocrdma_alloc_frmr':
      >> drivers/infiniband/hw/ocrdma/ocrdma_verbs.c:2661:64: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
           dev->stag_arr[(mr->hwmr.lkey >> 8) & (OCRDMA_MAX_STAG - 1)] = (u64) mr;
      Reported-by: Nkbuild test robot <fengguang.wu@intel.com>
      Signed-off-by: NRoland Dreier <roland@purestorage.com>
      33ccbd85
  12. 03 9月, 2013 9 次提交
  13. 13 8月, 2013 4 次提交
  14. 31 7月, 2013 1 次提交
  15. 20 6月, 2013 4 次提交
  16. 15 9月, 2012 1 次提交
  17. 28 7月, 2012 1 次提交
  18. 08 7月, 2012 1 次提交