mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-27 13:30:52 +00:00
hw/rdma: Delete unused struct member
This member is used only in init_device_caps function, make it local. Signed-off-by: Yuval Shaia <yuval.shaia@oracle.com> Reviewed-by: Marcel Apfelbaum<marcel.apfelbaum@gmail.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
This commit is contained in:
parent
ffef47754a
commit
732d948ca5
@ -917,23 +917,25 @@ void rdma_backend_destroy_qp(RdmaBackendQP *qp)
|
||||
static int init_device_caps(RdmaBackendDev *backend_dev,
|
||||
struct ibv_device_attr *dev_attr)
|
||||
{
|
||||
if (ibv_query_device(backend_dev->context, &backend_dev->dev_attr)) {
|
||||
struct ibv_device_attr bk_dev_attr;
|
||||
|
||||
if (ibv_query_device(backend_dev->context, &bk_dev_attr)) {
|
||||
return -EIO;
|
||||
}
|
||||
|
||||
dev_attr->max_sge = MAX_SGE;
|
||||
|
||||
CHK_ATTR(dev_attr, backend_dev->dev_attr, max_mr_size, "%" PRId64);
|
||||
CHK_ATTR(dev_attr, backend_dev->dev_attr, max_qp, "%d");
|
||||
CHK_ATTR(dev_attr, backend_dev->dev_attr, max_sge, "%d");
|
||||
CHK_ATTR(dev_attr, backend_dev->dev_attr, max_qp_wr, "%d");
|
||||
CHK_ATTR(dev_attr, backend_dev->dev_attr, max_cq, "%d");
|
||||
CHK_ATTR(dev_attr, backend_dev->dev_attr, max_cqe, "%d");
|
||||
CHK_ATTR(dev_attr, backend_dev->dev_attr, max_mr, "%d");
|
||||
CHK_ATTR(dev_attr, backend_dev->dev_attr, max_pd, "%d");
|
||||
CHK_ATTR(dev_attr, backend_dev->dev_attr, max_qp_rd_atom, "%d");
|
||||
CHK_ATTR(dev_attr, backend_dev->dev_attr, max_qp_init_rd_atom, "%d");
|
||||
CHK_ATTR(dev_attr, backend_dev->dev_attr, max_ah, "%d");
|
||||
CHK_ATTR(dev_attr, bk_dev_attr, max_mr_size, "%" PRId64);
|
||||
CHK_ATTR(dev_attr, bk_dev_attr, max_qp, "%d");
|
||||
CHK_ATTR(dev_attr, bk_dev_attr, max_sge, "%d");
|
||||
CHK_ATTR(dev_attr, bk_dev_attr, max_qp_wr, "%d");
|
||||
CHK_ATTR(dev_attr, bk_dev_attr, max_cq, "%d");
|
||||
CHK_ATTR(dev_attr, bk_dev_attr, max_cqe, "%d");
|
||||
CHK_ATTR(dev_attr, bk_dev_attr, max_mr, "%d");
|
||||
CHK_ATTR(dev_attr, bk_dev_attr, max_pd, "%d");
|
||||
CHK_ATTR(dev_attr, bk_dev_attr, max_qp_rd_atom, "%d");
|
||||
CHK_ATTR(dev_attr, bk_dev_attr, max_qp_init_rd_atom, "%d");
|
||||
CHK_ATTR(dev_attr, bk_dev_attr, max_ah, "%d");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -41,7 +41,6 @@ typedef struct RdmaCmMux {
|
||||
} RdmaCmMux;
|
||||
|
||||
typedef struct RdmaBackendDev {
|
||||
struct ibv_device_attr dev_attr;
|
||||
RdmaBackendThread comp_thread;
|
||||
PCIDevice *dev;
|
||||
RdmaDeviceResources *rdma_dev_res;
|
||||
|
Loading…
Reference in New Issue
Block a user