[ofa-general] [PATCH 2/2 v2] RDMA/nes: Change CQ allocation scheme for performance applications
Chien Tung
chien.tin.tung at intel.com
Fri Oct 31 11:39:41 PDT 2008
From: Vadim Makhervaks <vadim.makhervaks at intel.com>
RDMA/nes: New CQ allocation scheme for performance applications.
Fix CQ allocation for Mutli-Cast Receive Queue applications. Before this
patch, CQ was not lined up with the right NIC.
Signed-off-by: Vadim Makhervaks <vadim.makhervaks at intel.com>
Signed-off-by: Chien Tung <chien.tin.tung at intel.com>
--
V2 change: better(?) description for this patch...
drivers/infiniband/hw/nes/nes_verbs.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/infiniband/hw/nes/nes_verbs.c b/drivers/infiniband/hw/nes/nes_verbs.c
index f9b37b3..51cb1b5 100644
--- a/drivers/infiniband/hw/nes/nes_verbs.c
+++ b/drivers/infiniband/hw/nes/nes_verbs.c
@@ -1617,7 +1617,7 @@ static struct ib_cq *nes_create_cq(struct ib_device *ibdev, int entries,
nes_ucontext->mcrqf = req.mcrqf;
if (nes_ucontext->mcrqf) {
if (nes_ucontext->mcrqf & 0x80000000)
- nescq->hw_cq.cq_number = nesvnic->nic.qp_id + 12 + (nes_ucontext->mcrqf & 0xf) - 1;
+ nescq->hw_cq.cq_number = nesvnic->nic.qp_id + 28 + 2*((nes_ucontext->mcrqf & 0xf) - 1);
else if (nes_ucontext->mcrqf & 0x40000000)
nescq->hw_cq.cq_number = nes_ucontext->mcrqf & 0xffff;
else
More information about the general
mailing list