mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-04 08:06:43 +07:00
062dbb69f3
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> |
||
---|---|---|
.. | ||
c2_ae.c | ||
c2_ae.h | ||
c2_alloc.c | ||
c2_cm.c | ||
c2_cq.c | ||
c2_intr.c | ||
c2_mm.c | ||
c2_mq.c | ||
c2_mq.h | ||
c2_pd.c | ||
c2_provider.c | ||
c2_provider.h | ||
c2_qp.c | ||
c2_rnic.c | ||
c2_status.h | ||
c2_user.h | ||
c2_vq.c | ||
c2_vq.h | ||
c2_wr.h | ||
c2.c | ||
c2.h | ||
Kbuild | ||
Kconfig |