cq: allow polling with an array of wc's
authorshefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 23 Jul 2008 20:20:52 +0000 (20:20 +0000)
committershefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 23 Jul 2008 20:20:52 +0000 (20:20 +0000)
commit59ab90e4deea9cacf0eca2e918c9b9ee3695014b
treee17ad5ab60430992c665b921f27c0c55fe3da727
parentb49d264ca01b9d240845c44a127d36dc2257f309
cq: allow polling with an array of wc's

Allow polling for a list of work completions using an array of
completion structures, rather than a linked list.  This avoids needing
to walk the list to link the structures together before calling poll,
which is a fast path operation.

A new completion structure is added that provides the qp_context
associated with a completion.  This avoids changes to the existing
ULPs, while taking advantage of the underlying UVP capabilities.
Providing the qp_context is useful when dealing with SRQ.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1437 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86
hw/mlx4/user/hca/cq.c
hw/mlx4/user/hca/mlx4.c
hw/mlx4/user/hca/mlx4.h
hw/mthca/user/mlnx_ual_osbypass.c
hw/mthca/user/mlnx_uvp.h
hw/mthca/user/mlnx_uvp_cq.c
hw/mthca/user/mlnx_uvp_verbs.h
inc/user/iba/ib_uvp.h