hw/rdma: Fix the error prints in create_qp_rings()
The prints should indicate that we are talking about QP and not CQ.
Fixes: 98d176f8e5
("hw/rdma: PVRDMA commands and data-path ops")
Reviewed-by: Yuval Shaia <yuval.shaia@oracle.com>
Signed-off-by: Kamal Heib <kamalheib1@gmail.com>
Message-Id: <20190227085546.23690-1-kamalheib1@gmail.com>
Signed-off-by: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
This commit is contained in:
parent
d151f5debd
commit
cb42a5867e
|
@ -374,13 +374,13 @@ static int create_qp_rings(PCIDevice *pci_dev, uint64_t pdir_dma,
|
||||||
|
|
||||||
dir = rdma_pci_dma_map(pci_dev, pdir_dma, TARGET_PAGE_SIZE);
|
dir = rdma_pci_dma_map(pci_dev, pdir_dma, TARGET_PAGE_SIZE);
|
||||||
if (!dir) {
|
if (!dir) {
|
||||||
rdma_error_report("Failed to map to CQ page directory");
|
rdma_error_report("Failed to map to QP page directory");
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
tbl = rdma_pci_dma_map(pci_dev, dir[0], TARGET_PAGE_SIZE);
|
tbl = rdma_pci_dma_map(pci_dev, dir[0], TARGET_PAGE_SIZE);
|
||||||
if (!tbl) {
|
if (!tbl) {
|
||||||
rdma_error_report("Failed to map to CQ page table");
|
rdma_error_report("Failed to map to QP page table");
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -393,7 +393,7 @@ static int create_qp_rings(PCIDevice *pci_dev, uint64_t pdir_dma,
|
||||||
sr->ring_state = (struct pvrdma_ring *)
|
sr->ring_state = (struct pvrdma_ring *)
|
||||||
rdma_pci_dma_map(pci_dev, tbl[0], TARGET_PAGE_SIZE);
|
rdma_pci_dma_map(pci_dev, tbl[0], TARGET_PAGE_SIZE);
|
||||||
if (!sr->ring_state) {
|
if (!sr->ring_state) {
|
||||||
rdma_error_report("Failed to map to CQ ring state");
|
rdma_error_report("Failed to map to QP ring state");
|
||||||
goto out_free_sr_mem;
|
goto out_free_sr_mem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue