1. 14 5月, 2016 2 次提交
  2. 04 3月, 2016 3 次提交
  3. 01 3月, 2016 4 次提交
  4. 17 2月, 2016 1 次提交
    • D
      RDMA/ocrdma: Fix arm logic to align with new cq API · b41f7852
      Devesh Sharma 提交于
      Today ocrdma driver defer arming the CQ till poll is called.
      This was used to prevent calling poll-cq on an armed CQ.
      
      Recently a set of new CQ API has been introduced into the linux
      kernel. The implementation of this API guarantees that a given
      CQ is never armed before calling poll on it. Most of the kernel
      ULPs have already moved to use this new API or have a code where
      poll is called before arming the CQ.
      
      Thus, the above workaround in ocrdma is not needed anymore.
      This patch removes the additional logic to deffer arm till poll
      is called. This patch adds a simple scheme where ib_req_notify_cq()
      will actually arm the cq.
      Signed-off-by: NDevesh Sharma <devesh.sharma@broadcom.com>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      b41f7852
  5. 06 2月, 2016 4 次提交
  6. 20 1月, 2016 5 次提交
  7. 29 12月, 2015 3 次提交
  8. 24 12月, 2015 1 次提交
  9. 23 12月, 2015 1 次提交
  10. 29 10月, 2015 2 次提交
  11. 22 10月, 2015 7 次提交
  12. 08 10月, 2015 1 次提交
    • C
      IB: split struct ib_send_wr · e622f2f4
      Christoph Hellwig 提交于
      This patch split up struct ib_send_wr so that all non-trivial verbs
      use their own structure which embedds struct ib_send_wr.  This dramaticly
      shrinks the size of a WR for most common operations:
      
      sizeof(struct ib_send_wr) (old):	96
      
      sizeof(struct ib_send_wr):		48
      sizeof(struct ib_rdma_wr):		64
      sizeof(struct ib_atomic_wr):		96
      sizeof(struct ib_ud_wr):		88
      sizeof(struct ib_fast_reg_wr):		88
      sizeof(struct ib_bind_mw_wr):		96
      sizeof(struct ib_sig_handover_wr):	80
      
      And with Sagi's pending MR rework the fast registration WR will also be
      down to a reasonable size:
      
      sizeof(struct ib_fastreg_wr):		64
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      Reviewed-by: Bart Van Assche <bart.vanassche@sandisk.com> [srp, srpt]
      Reviewed-by: Chuck Lever <chuck.lever@oracle.com> [sunrpc]
      Tested-by: NHaggai Eran <haggaie@mellanox.com>
      Tested-by: NSagi Grimberg <sagig@mellanox.com>
      Tested-by: NSteve Wise <swise@opengridcomputing.com>
      e622f2f4
  13. 31 8月, 2015 2 次提交
  14. 24 7月, 2015 2 次提交
    • D
      RDMA/ocrdma: update ocrdma module license string · b8f5595e
      Devesh Sharma 提交于
      Change module_license from "GPL" to "Dual BSD/GPL"
      
      Cc: Tejun Heo <tj@kernel.org>
      Cc: Duan Jiong <duanj.fnst@cn.fujitsu.com>
      Cc: Roland Dreier <roland@purestorage.com>
      Cc: Jes Sorensen <Jes.Sorensen@redhat.com>
      Cc: Sasha Levin <levinsasha928@gmail.com>
      Cc: Dan Carpenter <dan.carpenter@oracle.com>
      Cc: Prarit Bhargava <prarit@redhat.com>
      Cc: Colin Ian King <colin.king@canonical.com>
      Cc: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
      Cc: Moni Shoua <monis@mellanox.com>
      Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk>
      Cc: Li RongQing <roy.qing.li@gmail.com>
      Cc: Devendra Naga <devendra.aaru@gmail.com>
      Signed-off-by: NDevesh Sharma <devesh.sharma@avagotech.com>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      b8f5595e
    • D
      RDMA/ocrdma: update ocrdma license to dual-license · 71ee6730
      Devesh Sharma 提交于
      Change of license from GPLv2 to dual-license (GPLv2 and BSD 2-Clause)
      
      All contributors were contacted off-list and permission to make this
      change was received.  The complete list of contributors are Cc:ed here.
      
      Cc: Tejun Heo <tj@kernel.org>
      Cc: Duan Jiong <duanj.fnst@cn.fujitsu.com>
      Cc: Roland Dreier <roland@purestorage.com>
      Cc: Jes Sorensen <Jes.Sorensen@redhat.com>
      Cc: Sasha Levin <levinsasha928@gmail.com>
      Cc: Dan Carpenter <dan.carpenter@oracle.com>
      Cc: Prarit Bhargava <prarit@redhat.com>
      Cc: Colin Ian King <colin.king@canonical.com>
      Cc: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
      Cc: Moni Shoua <monis@mellanox.com>
      Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk>
      Cc: Li RongQing <roy.qing.li@gmail.com>
      Cc: Devendra Naga <devendra.aaru@gmail.com>
      Signed-off-by: NDevesh Sharma <devesh.sharma@avagotech.com>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      71ee6730
  15. 15 7月, 2015 2 次提交
    • J
      IB/core: Destroy ocrdma_dev_id IDR on module exit · d8b2ba7c
      Johannes Thumshirn 提交于
      Destroy ocrdma_dev_id IDR on module exit, reclaiming the allocated memory.
      
      This was detected by the following semantic patch (written by Luis Rodriguez
      <mcgrof@suse.com>)
      <SmPL>
      @ defines_module_init @
      declarer name module_init, module_exit;
      declarer name DEFINE_IDR;
      identifier init;
      @@
      
      module_init(init);
      
      @ defines_module_exit @
      identifier exit;
      @@
      
      module_exit(exit);
      
      @ declares_idr depends on defines_module_init && defines_module_exit @
      identifier idr;
      @@
      
      DEFINE_IDR(idr);
      
      @ on_exit_calls_destroy depends on declares_idr && defines_module_exit @
      identifier declares_idr.idr, defines_module_exit.exit;
      @@
      
      exit(void)
      {
       ...
       idr_destroy(&idr);
       ...
      }
      
      @ missing_module_idr_destroy depends on declares_idr && defines_module_exit && !on_exit_calls_destroy @
      identifier declares_idr.idr, defines_module_exit.exit;
      @@
      
      exit(void)
      {
       ...
       +idr_destroy(&idr);
       }
      
      </SmPL>
      Signed-off-by: NJohannes Thumshirn <jthumshirn@suse.de>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      d8b2ba7c
    • I
      IB/mad: Remove improper use of BUG_ON · 3b8ab700
      Ira Weiny 提交于
      We recently added BUG_ON's which were inappropriate for a condition which
      should never happen. Change these to be WARN_ON_ONCE as a debugging aid.
      
      Fixes: 4cd7c947 ('IB/mad: Add support for additional MAD info to/from drivers')
      Signed-off-by: NIra Weiny <ira.weiny@intel.com>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      3b8ab700