summaryrefslogtreecommitdiffstats
path: root/transport/ib-verbs/src/ib-verbs.h
diff options
context:
space:
mode:
authorShehjar Tikoo <shehjart@gluster.com>2009-05-26 03:40:27 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-05-26 02:43:55 -0700
commitf6bcb43d4adca26337f9a933e61eac8d6815cc7e (patch)
tree1c683602415b35fb2021390a9aeb0e13c9e8cdbb /transport/ib-verbs/src/ib-verbs.h
parent78ed845bc98ced0b2edd14875f5a7ef755802984 (diff)
ib-verbs: Set receive and send window size
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
Diffstat (limited to 'transport/ib-verbs/src/ib-verbs.h')
-rw-r--r--transport/ib-verbs/src/ib-verbs.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/transport/ib-verbs/src/ib-verbs.h b/transport/ib-verbs/src/ib-verbs.h
index a5513f882..d41fece5c 100644
--- a/transport/ib-verbs/src/ib-verbs.h
+++ b/transport/ib-verbs/src/ib-verbs.h
@@ -40,6 +40,13 @@
#define GF_DEFAULT_IBVERBS_LISTEN_PORT 6997
+/* Perhaps these should be larger for a high
+ * speed link like IB.
+ */
+#define GF_DEFAULT_IBV_WINDOW_SIZE (512 * GF_UNIT_KB)
+#define GF_MAX_IBV_WINDOW_SIZE (1 * GF_UNIT_MB)
+#define GF_MIN_IBV_WINDOW_SIZE (128 * GF_UNIT_KB)
+
/* options per transport end point */
struct _ib_verbs_options {
int32_t port;
@@ -212,6 +219,7 @@ struct _ib_verbs_private {
char *buf;
size_t size;
} handshake;
+ int windowsize;
};
typedef struct _ib_verbs_private ib_verbs_private_t;