android_kernel_xiaomi_sm7250/include/rdma
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
..
ib_addr.h RDMA/addr: Use client registration to fix module unload race 2006-11-02 14:26:04 -08:00
ib_cache.h IB: Add caching of ports' LMC 2006-06-17 20:37:34 -07:00
ib_cm.h IB/cm: Fix automatic path migration support 2006-11-29 15:33:10 -08:00
ib_fmr_pool.h [PATCH] fmr pool: remove unnecessary pointer dereference 2006-07-14 21:53:51 -07:00
ib_mad.h IB/mad: Validate MADs for spec compliance 2006-07-24 09:18:07 -07:00
ib_marshall.h RDMA/cma: Export rdma cm interface to userspace 2006-12-12 11:50:22 -08:00
ib_pack.h
ib_sa.h IB/sa: fix ib_sa_selector names 2006-09-22 15:22:55 -07:00
ib_smi.h IB: Move struct port_info from ipath to <rdma/ib_smi.h> 2006-06-17 20:37:36 -07:00
ib_user_cm.h IB/cm: Fix automatic path migration support 2006-11-29 15:33:10 -08:00
ib_user_mad.h
ib_user_sa.h IB: common handling for marshalling parameters to/from userspace 2006-06-17 20:37:27 -07:00
ib_user_verbs.h IB/uverbs: Return sq_draining value in query_qp response 2006-10-30 21:19:35 -08:00
ib_verbs.h IB: Return qp pointer as part of ib_wc 2007-02-04 14:11:55 -08:00
iw_cm.h RDMA: iWARP Connection Manager. 2006-09-22 15:22:46 -07:00
Kbuild [HEADERS] One line per header in Kbuild files to reduce conflicts 2006-09-19 12:43:58 +01:00
rdma_cm_ib.h RDMA/cma: Add support for RDMA_PS_UDP 2006-12-12 11:50:21 -08:00
rdma_cm.h RDMA/cma: Add support for RDMA_PS_UDP 2006-12-12 11:50:21 -08:00
rdma_user_cm.h RDMA/cma: Export rdma cm interface to userspace 2006-12-12 11:50:22 -08:00