[ewg] [PATCH 03/10] attach cq to least cqs attached completion vector
Vu Pham
vuhuong at mellanox.com
Fri Aug 6 15:50:21 PDT 2010
When the vector number passed to mlx4_cq_alloc is MLX4_LEAST_ATTACHED_VECTOR
the driver selects the completion vector that has the least CQ's attached
to it and attaches the CQ to the chosen vector.
IB_CQ_VECTOR_LEAST_ATTACHED is defined in rdma/ib_verbs.h, when mlx4_ib driv
recieves this cq vector number, it uses MLX4_LEAST_ATTACHED_VECTOR
Signed-off-by: Yevgeny Petrilin <yevgenyp at mellanox.co.il>
Signed-off-by: Vu Pham <vu at mellanx.com>
drivers/infiniband/hw/mlx4/cq.c | 4 +++-
drivers/net/mlx4/cq.c | 27 +++++++++++++++++++++++----
drivers/net/mlx4/en_cq.c | 2 +-
drivers/net/mlx4/mlx4.h | 1 +
include/linux/mlx4/device.h | 2 ++
include/rdma/ib_verbs.h | 10 +++++++++-
6 files changed, 39 insertions(+), 7 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mlx4_fc_0003_automatic_comp_vector.patch
Type: text/x-patch
Size: 5838 bytes
Desc: not available
URL: <http://lists.openfabrics.org/pipermail/ewg/attachments/20100806/16620eb5/attachment.bin>
More information about the ewg
mailing list