| * RDMA device: Definitions of Backend Device structures |
| * Copyright (C) 2018 Oracle |
| * Copyright (C) 2018 Red Hat Inc |
| * Yuval Shaia <yuval.shaia@oracle.com> |
| * Marcel Apfelbaum <marcel@redhat.com> |
| * This work is licensed under the terms of the GNU GPL, version 2 or later. |
| * See the COPYING file in the top-level directory. |
| #ifndef RDMA_BACKEND_DEFS_H |
| #define RDMA_BACKEND_DEFS_H |
| #include <infiniband/verbs.h> |
| typedef struct RdmaDeviceResources RdmaDeviceResources; |
| typedef struct RdmaBackendThread { |
| typedef struct RdmaBackendDev { |
| struct ibv_device_attr dev_attr; |
| RdmaBackendThread comp_thread; |
| RdmaDeviceResources *rdma_dev_res; |
| struct ibv_device *ib_dev; |
| struct ibv_context *context; |
| struct ibv_comp_channel *channel; |
| typedef struct RdmaBackendPD { |
| typedef struct RdmaBackendMR { |
| typedef struct RdmaBackendCQ { |
| RdmaBackendDev *backend_dev; |
| typedef struct RdmaBackendQP { |