linux_dsm_epyc7002/drivers/infiniband/hw/amso1100
Michael S. Tsirkin 062dbb69f3 IB: Return qp pointer as part of ib_wc
struct ib_wc currently only includes the local QP number: this matches
the IB spec, but seems mostly useless. The following patch replaces
this with the pointer to qp itself, and updates all low level drivers
and all users.

This has the following advantages:
- Ability to get a per-qp context through wc->qp->qp_context
- Existing drivers already have the qp pointer ready in poll cq, so
  this change actually saves a tiny bit (extra memory read) on data path
  (for ehca it would actually be expensive to find the QP pointer when
  polling a CQ, but ehca does not support SRQ so we can leave wc->qp as
  NULL for ehca)
- Users that need the QP number can still get it through wc->qp->qp_num

Use case:

In IPoIB connected mode code, I have a common CQ shared by multiple
QPs.  To track connection usage, I need a way to get at some per-QP
context upon the completion, and I would like to avoid allocating
context object per work request just to stick a QP pointer into it.
With this code, I can just use wc->qp->qp_context.

Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
2007-02-04 14:11:55 -08:00
..
c2_ae.c RDMA/amso1100: Fix build with debugging off 2006-10-10 12:50:38 -07:00
c2_ae.h RDMA/amso1100: Add driver for Ammasso 1100 RNIC 2006-09-22 15:22:48 -07:00
c2_alloc.c IB/amso1100: Use dma_alloc_coherent() instead of kmalloc/dma_map_single 2006-10-30 20:52:52 -08:00
c2_cm.c RDMA/amso1100: Fix error path in c2_llp_accept() 2006-09-28 10:38:32 -07:00
c2_cq.c IB: Return qp pointer as part of ib_wc 2007-02-04 14:11:55 -08:00
c2_intr.c RDMA/amso1100: Add driver for Ammasso 1100 RNIC 2006-09-22 15:22:48 -07:00
c2_mm.c RDMA/amso1100: Add driver for Ammasso 1100 RNIC 2006-09-22 15:22:48 -07:00
c2_mq.c RDMA/amso1100: Add driver for Ammasso 1100 RNIC 2006-09-22 15:22:48 -07:00
c2_mq.h RDMA/amso1100: Add driver for Ammasso 1100 RNIC 2006-09-22 15:22:48 -07:00
c2_pd.c RDMA/amso1100: Add driver for Ammasso 1100 RNIC 2006-09-22 15:22:48 -07:00
c2_provider.c RDMA/amso1100: Fix unitialized pseudo_netdev accessed in c2_register_device 2006-11-13 09:38:04 -08:00
c2_provider.h RDMA/amso1100: Add driver for Ammasso 1100 RNIC 2006-09-22 15:22:48 -07:00
c2_qp.c RDMA/amso1100: Fix memory leak in c2_qp_modify() 2006-12-12 11:50:20 -08:00
c2_rnic.c RDMA/amso1100: Fix section mismatches 2006-11-29 15:33:07 -08:00
c2_status.h RDMA/amso1100: Add driver for Ammasso 1100 RNIC 2006-09-22 15:22:48 -07:00
c2_user.h RDMA/amso1100: Add driver for Ammasso 1100 RNIC 2006-09-22 15:22:48 -07:00
c2_vq.c [PATCH] slab: remove SLAB_ATOMIC 2006-12-07 08:39:24 -08:00
c2_vq.h RDMA/amso1100: Add driver for Ammasso 1100 RNIC 2006-09-22 15:22:48 -07:00
c2_wr.h RDMA/amso1100: Add driver for Ammasso 1100 RNIC 2006-09-22 15:22:48 -07:00
c2.c RDMA/amso1100: Fix unitialized pseudo_netdev accessed in c2_register_device 2006-11-13 09:38:04 -08:00
c2.h IB: Convert kmem_cache_t -> struct kmem_cache 2006-11-29 15:33:07 -08:00
Kbuild RDMA/amso1100: Add driver for Ammasso 1100 RNIC 2006-09-22 15:22:48 -07:00
Kconfig RDMA/amso1100: Add driver for Ammasso 1100 RNIC 2006-09-22 15:22:48 -07:00