aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/rdma/rdma.h
diff options
context:
space:
mode:
authorBenoît Ganne <bganne@cisco.com>2019-04-03 15:16:28 +0200
committerDamjan Marion <dmarion@me.com>2019-04-09 23:47:39 +0000
commit5763e47b7d0d9de7a46541e432abee39e17b5f1e (patch)
tree2db12b2a8e28785128e49546b0353da1cdd3be72 /src/plugins/rdma/rdma.h
parente035892055a7bd73297e22aefd4dcabe966e9b51 (diff)
rdma: add multiqueue support
Add support for multiqueue for RDMA devices. Change-Id: I78a2481cec6747494c670cc776475828be3af55b Signed-off-by: Benoît Ganne <bganne@cisco.com>
Diffstat (limited to 'src/plugins/rdma/rdma.h')
-rw-r--r--src/plugins/rdma/rdma.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/plugins/rdma/rdma.h b/src/plugins/rdma/rdma.h
index 12901536897..82b62b34ed5 100644
--- a/src/plugins/rdma/rdma.h
+++ b/src/plugins/rdma/rdma.h
@@ -43,7 +43,7 @@ typedef struct
u32 size;
u32 n_enq;
struct ibv_cq *cq;
- struct ibv_qp *qp;
+ struct ibv_wq *wq;
} rdma_rxq_t;
typedef struct
@@ -71,13 +71,15 @@ typedef struct
rdma_rxq_t *rxqs;
rdma_txq_t *txqs;
- u8 hwaddr[6];
- vlib_pci_addr_t pci_addr;
u8 *name;
+ mac_address_t hwaddr;
+ vlib_pci_addr_t pci_addr;
struct ibv_context *ctx;
struct ibv_pd *pd;
struct ibv_mr *mr;
+ struct ibv_qp *rx_qp;
+ struct ibv_rwq_ind_table *rx_rwq_ind_tbl;
struct ibv_flow *flow_ucast;
struct ibv_flow *flow_mcast;
@@ -97,6 +99,9 @@ typedef struct
{
u8 *ifname;
u8 *name;
+ u32 rxq_size;
+ u32 txq_size;
+ u32 rxq_num;
/* return */
int rv;