aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/rdma/rdma.h
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2020-03-02 17:36:30 +0100
committerDamjan Marion <damarion@cisco.com>2020-03-02 19:27:31 +0100
commita3188febc0bc690f2dc09e67ac68ad41000dd46c (patch)
tree392f97fa3b0766a6a4a58fc5be8085571d7f1bb6 /src/plugins/rdma/rdma.h
parent516e4ed668705bdf0fc138f29275db8c152d19f5 (diff)
rdma: use per-thread buffer template
Type: improvement Change-Id: Ie6f2c79e0a769f70eab079c75a500b9308dd51e6 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/plugins/rdma/rdma.h')
-rw-r--r--src/plugins/rdma/rdma.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/plugins/rdma/rdma.h b/src/plugins/rdma/rdma.h
index 470309afba7..302d2383cfe 100644
--- a/src/plugins/rdma/rdma.h
+++ b/src/plugins/rdma/rdma.h
@@ -95,6 +95,13 @@ typedef struct
typedef struct
{
+ CLIB_CACHE_LINE_ALIGN_MARK (cacheline0);
+ vlib_buffer_t buffer_template;
+} rdma_per_thread_data_t;
+
+typedef struct
+{
+ rdma_per_thread_data_t *per_thread_data;
rdma_device_t *devices;
vlib_log_class_t log_class;
u16 msg_id_base;