From d8c1ef925af5db085a7649076047eda48ac68404 Mon Sep 17 00:00:00 2001 From: Benoît Ganne Date: Tue, 7 Jan 2020 16:08:43 +0100 Subject: rdma: api: prepare support for direct verb MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Prepare rdma interface creation API for direct verb support: - add new optional 'mode' parameters to select between ibverb or direct verb backend (optional, default to 'auto') - set default value for rxq_num (1), rxq_size (1024) and txq_size (1024) so they are now optional - bump default create value for rxq_size and txq_size to 1024 if unset (0) so they are coherent with default values above Type: feature Change-Id: Id9eae2b8eb0baaf34a0fcd55da6ad09515f57a93 Signed-off-by: Benoît Ganne --- src/plugins/rdma/rdma.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/plugins/rdma/rdma.h') diff --git a/src/plugins/rdma/rdma.h b/src/plugins/rdma/rdma.h index 6e602cb31df..470309afba7 100644 --- a/src/plugins/rdma/rdma.h +++ b/src/plugins/rdma/rdma.h @@ -102,6 +102,13 @@ typedef struct extern rdma_main_t rdma_main; +typedef enum +{ + RDMA_MODE_AUTO = 0, + RDMA_MODE_IBV, + RDMA_MODE_DV, +} rdma_mode_t; + typedef struct { u8 *ifname; @@ -109,6 +116,7 @@ typedef struct u32 rxq_size; u32 txq_size; u32 rxq_num; + rdma_mode_t mode; /* return */ int rv; -- cgit 1.2.3-korg