RDMA/nes: Fix CQ allocation scheme for multicast receive queue apps

Fix CQ allocation for multicast receive queue applications. Before
this patch, the CQ was not lined up with the right NIC.

Signed-off-by: Vadim Makhervaks <vadim.makhervaks@intel.com>
Signed-off-by: Chien Tung <chien.tin.tung@intel.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>

authored by Vadim Makhervaks and committed by Roland Dreier 2e369544 35c6d694

+1 -1
+1 -1
drivers/infiniband/hw/nes/nes_verbs.c
··· 1617 1617 nes_ucontext->mcrqf = req.mcrqf; 1618 1618 if (nes_ucontext->mcrqf) { 1619 1619 if (nes_ucontext->mcrqf & 0x80000000) 1620 - nescq->hw_cq.cq_number = nesvnic->nic.qp_id + 12 + (nes_ucontext->mcrqf & 0xf) - 1; 1620 + nescq->hw_cq.cq_number = nesvnic->nic.qp_id + 28 + 2 * ((nes_ucontext->mcrqf & 0xf) - 1); 1621 1621 else if (nes_ucontext->mcrqf & 0x40000000) 1622 1622 nescq->hw_cq.cq_number = nes_ucontext->mcrqf & 0xffff; 1623 1623 else