Commit 5b734dc0 authored by Antoine Kaufmann's avatar Antoine Kaufmann
Browse files

dist/net_rdma: #define for send queue len

parent 2b10d7cb
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
#include <sys/epoll.h> #include <sys/epoll.h>
#include <unistd.h> #include <unistd.h>
#define SENDQ_LEN (8 * 1024)
#define MSG_RXBUFS 16 #define MSG_RXBUFS 16
#define MSG_TXBUFS 16 #define MSG_TXBUFS 16
#define MAX_PEERS 32 #define MAX_PEERS 32
...@@ -208,7 +209,7 @@ static int RdmaCommonInit() { ...@@ -208,7 +209,7 @@ static int RdmaCommonInit() {
return 1; return 1;
} }
qp_attr.cap.max_send_wr = 1024; qp_attr.cap.max_send_wr = SENDQ_LEN;
qp_attr.cap.max_send_sge = 1; qp_attr.cap.max_send_sge = 1;
qp_attr.cap.max_recv_wr = MSG_RXBUFS; qp_attr.cap.max_recv_wr = MSG_RXBUFS;
qp_attr.cap.max_recv_sge = 1; qp_attr.cap.max_recv_sge = 1;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment