android_kernel_xiaomi_sm8350/drivers/infiniband/hw/ipath
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
..
ipath_common.h
ipath_cq.c
ipath_debug.h
ipath_diag.c
ipath_dma.c IB/ipath: Implement new verbs DMA mapping functions 2006-12-12 14:28:28 -08:00
ipath_driver.c IB/ipath: Remove unused "write-only" variables 2006-12-12 11:50:20 -08:00
ipath_eeprom.c
ipath_file_ops.c IB/ipath: Remove unused "write-only" variables 2006-12-12 11:50:20 -08:00
ipath_fs.c
ipath_iba6110.c IB/ipath: Remove unused "write-only" variables 2006-12-12 11:50:20 -08:00
ipath_iba6120.c IB/ipath: Fix IRQ for PCI Express HCAs 2006-12-12 11:50:20 -08:00
ipath_init_chip.c IB/ipath: Remove unused "write-only" variables 2006-12-12 11:50:20 -08:00
ipath_intr.c IB/ipath: Remove unused "write-only" variables 2006-12-12 11:50:20 -08:00
ipath_kernel.h
ipath_keys.c IB/ipath: Implement new verbs DMA mapping functions 2006-12-12 14:28:28 -08:00
ipath_layer.c
ipath_layer.h
ipath_mad.c
ipath_mmap.c
ipath_mr.c IB/ipath: Implement new verbs DMA mapping functions 2006-12-12 14:28:28 -08:00
ipath_qp.c IB: Return qp pointer as part of ib_wc 2007-02-04 14:11:55 -08:00
ipath_rc.c IB: Return qp pointer as part of ib_wc 2007-02-04 14:11:55 -08:00
ipath_registers.h
ipath_ruc.c IB: Return qp pointer as part of ib_wc 2007-02-04 14:11:55 -08:00
ipath_srq.c
ipath_stats.c
ipath_sysfs.c IB/ipath: Remove unused "write-only" variables 2006-12-12 11:50:20 -08:00
ipath_uc.c IB: Return qp pointer as part of ib_wc 2007-02-04 14:11:55 -08:00
ipath_ud.c IB: Return qp pointer as part of ib_wc 2007-02-04 14:11:55 -08:00
ipath_user_pages.c
ipath_verbs_mcast.c
ipath_verbs.c IB/ipath: Implement new verbs DMA mapping functions 2006-12-12 14:28:28 -08:00
ipath_verbs.h IB/ipath: Implement new verbs DMA mapping functions 2006-12-12 14:28:28 -08:00
ipath_wc_ppc64.c
ipath_wc_x86_64.c
Kconfig
Makefile IB/ipath: Implement new verbs DMA mapping functions 2006-12-12 14:28:28 -08:00