-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathrsec_base.h
More file actions
43 lines (31 loc) · 763 Bytes
/
rsec_base.h
File metadata and controls
43 lines (31 loc) · 763 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef RSEC_BASE_HEADER_FILE
#define RSEC_BASE_HEADER_FILE
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <assert.h>
#include <pthread.h>
#include <stdarg.h>
#include <infiniband/verbs.h>
#include "rsec.h"
#define OFFSET (0x0)
//#include<glib.h>
#define SERVER 128
#define CLIENT 129
#define MEMORY 130
#define UD_SHIFT_SIZE 40
#define RSEC_LOCAL_BUF_ALLOC_SIZE 1024
// IB-related def
#define FORCE_POLL 1
#define RSEC_ID_SHIFT 10
#define RSEC_PARALLEL_RC_QPS 1
#define RSEC_PARALLEL_UD_QPS 1
#define RSEC_MAX_INLINE 0
#define RSEC_UD_QKEY 0x7777
#define RSEC_UD_PSN 3185
#define RSEC_UD_SL 0
#define RSEC_RC_SL 0
#define RSEC_UD_POST_RECV_ID_SHIFT 48
#define RSEC_THREAD_SEND_BUF_NUM 16
#define RSEC_THREAD_RECV_BUF_NUM 16
#endif