mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-28 21:46:02 -04:00
RDMA: Handle SRQ allocations by IB/core
Convert SRQ allocation from drivers to be in the IB/core Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
This commit is contained in:
committed by
Jason Gunthorpe
parent
d345691471
commit
68e326dea1
@@ -2863,21 +2863,19 @@ int ocrdma_mbx_query_srq(struct ocrdma_srq *srq, struct ib_srq_attr *srq_attr)
|
||||
return status;
|
||||
}
|
||||
|
||||
int ocrdma_mbx_destroy_srq(struct ocrdma_dev *dev, struct ocrdma_srq *srq)
|
||||
void ocrdma_mbx_destroy_srq(struct ocrdma_dev *dev, struct ocrdma_srq *srq)
|
||||
{
|
||||
int status = -ENOMEM;
|
||||
struct ocrdma_destroy_srq *cmd;
|
||||
struct pci_dev *pdev = dev->nic_info.pdev;
|
||||
cmd = ocrdma_init_emb_mqe(OCRDMA_CMD_DELETE_SRQ, sizeof(*cmd));
|
||||
if (!cmd)
|
||||
return status;
|
||||
return;
|
||||
cmd->id = srq->id;
|
||||
status = ocrdma_mbx_cmd(dev, (struct ocrdma_mqe *)cmd);
|
||||
ocrdma_mbx_cmd(dev, (struct ocrdma_mqe *)cmd);
|
||||
if (srq->rq.va)
|
||||
dma_free_coherent(&pdev->dev, srq->rq.len,
|
||||
srq->rq.va, srq->rq.pa);
|
||||
kfree(cmd);
|
||||
return status;
|
||||
}
|
||||
|
||||
static int ocrdma_mbx_get_dcbx_config(struct ocrdma_dev *dev, u32 ptype,
|
||||
|
||||
Reference in New Issue
Block a user