Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
HpdosServer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Paras Garg
HpdosServer
Commits
41aebdb6
Commit
41aebdb6
authored
Apr 12, 2022
by
p
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed directory structure
parent
d7793d3c
Changes
27
Hide whitespace changes
Inline
Side-by-side
Showing
27 changed files
with
21 additions
and
34 deletions
+21
-34
.gitignore
.gitignore
+1
-1
CqEventData.hpp
CqEventData.hpp
+0
-21
Makefile
Makefile
+20
-12
header/ConcurrentQueue.hpp
header/ConcurrentQueue.hpp
+0
-0
header/CqEventData.hpp
header/CqEventData.hpp
+0
-0
header/Executor.hpp
header/Executor.hpp
+0
-0
header/MessageFormats.hpp
header/MessageFormats.hpp
+0
-0
header/RdmaCmProcessor.hpp
header/RdmaCmProcessor.hpp
+0
-0
header/RdmaEndpoint.hpp
header/RdmaEndpoint.hpp
+0
-0
header/RdmaEndpointGroup.hpp
header/RdmaEndpointGroup.hpp
+0
-0
header/RdmaRepCqProcessor.hpp
header/RdmaRepCqProcessor.hpp
+0
-0
header/RdmaReplicationEndpoint.hpp
header/RdmaReplicationEndpoint.hpp
+0
-0
header/RdmaSalCqProcessor.hpp
header/RdmaSalCqProcessor.hpp
+0
-0
header/RdmaSalEndpoint.hpp
header/RdmaSalEndpoint.hpp
+0
-0
header/RdmaServerEndpointGroup.hpp
header/RdmaServerEndpointGroup.hpp
+0
-0
header/Runnable.hpp
header/Runnable.hpp
+0
-0
header/TaskThread.hpp
header/TaskThread.hpp
+0
-0
src/Executor.cpp
src/Executor.cpp
+0
-0
src/RdmaCmProcessor.cpp
src/RdmaCmProcessor.cpp
+0
-0
src/RdmaEndpoint.cpp
src/RdmaEndpoint.cpp
+0
-0
src/RdmaRepCqProcessor.cpp
src/RdmaRepCqProcessor.cpp
+0
-0
src/RdmaReplicationEndpoint.cpp
src/RdmaReplicationEndpoint.cpp
+0
-0
src/RdmaSalCqProcessor.cpp
src/RdmaSalCqProcessor.cpp
+0
-0
src/RdmaSalEndpoint.cpp
src/RdmaSalEndpoint.cpp
+0
-0
src/RdmaServerEndpointGroup.cpp
src/RdmaServerEndpointGroup.cpp
+0
-0
src/Server.cpp
src/Server.cpp
+0
-0
src/TaskThread.cpp
src/TaskThread.cpp
+0
-0
No files found.
.gitignore
View file @
41aebdb6
*.o
.vscode/
TaskThread.cpp
.build/*
server
*.txt
\ No newline at end of file
CqEventData.hpp
deleted
100644 → 0
View file @
d7793d3c
#ifndef __CQEVENTDATA__
#define __CQEVENTDATA__
#include <rdma/rdma_verbs.h>
class
RdmaEndpoint
;
class
CqEventData
{
public:
uint64_t
_wr_id
;
enum
ibv_wc_opcode
_opcode
;
uint32_t
_byte_len
;
RdmaEndpoint
*
_endpoint
;
CqEventData
(
uint64_t
wr_id
,
enum
ibv_wc_opcode
opcode
,
uint32_t
byte_len
,
RdmaEndpoint
*
endpoint
)
:
_wr_id
(
wr_id
),
_opcode
(
opcode
),
_byte_len
(
byte_len
),
_endpoint
(
endpoint
)
{
}
};
#endif
\ No newline at end of file
Makefile
View file @
41aebdb6
SRCS
:=
$(
shell
ls
src/
)
SRC_DIR
:=
src
OBJS
:=
$(SRCS:.cpp=.o)
BUILD_DIR
:=
.build
HEADERS
:=
$(
shell
find
-name
'*.hpp'
)
OBJS
:=
$(
addprefix
$(BUILD_DIR)
/,
$(OBJS)
)
all
:
clean server
CXXFLAGS
+=
-O3
CXX
=
g++
CXXFLAGS
+=
-O3
-Wall
-std
=
c++17
-I
header
CXXFLAGS
+=
-g
LIBS
+=
-libverbs
LIBS
+=
-lrdmacm
LIBS
+=
-pthread
LIBS
+=
-lrocksdb
object
:
g++
-std
=
c++17
-c
*
.cpp
$(LIBS)
server1
:
object
g++
-std
=
c++17
-o
server
-ggdb
*
.o
$(LIBS)
Target
:=
server
server
:
object
g++
-std
=
c++17
-o
server
-ggdb
Server.o Executor.o TaskThread.o RdmaServerEndpointGroup.o
\
RdmaReplicationEndpoint.o RdmaSalEndpoint.o RdmaEndpoint.o RdmaSalCqProcessor.o RdmaCmProcessor.o RdmaCqProcessor.o
$(LIBS)
.PHONY
:
clean
:
rm
-f
*
.o
*
.gch server
.phony
=
clean
$(BUILD_DIR)/%.o
:
$(SRC_DIR)/%.cpp
$(CXX)
-o
$@
$(CXXFLAGS)
-c
$<
$(LIBS)
$(Target)
:
$(OBJS) | $(BUILD_DIR)
$(CXX)
-o
$@
$^
$(LIBS)
$(BUILD_DIR)
:
mkdir
-p
$@
\ No newline at end of file
ConcurrentQueue.hpp
→
header/
ConcurrentQueue.hpp
View file @
41aebdb6
File moved
header/CqEventData.hpp
0 → 100644
View file @
41aebdb6
Executor.hpp
→
header/
Executor.hpp
View file @
41aebdb6
File moved
MessageFormats.hpp
→
header/
MessageFormats.hpp
View file @
41aebdb6
File moved
RdmaCmProcessor.hpp
→
header/
RdmaCmProcessor.hpp
View file @
41aebdb6
File moved
RdmaEndpoint.hpp
→
header/
RdmaEndpoint.hpp
View file @
41aebdb6
File moved
RdmaEndpointGroup.hpp
→
header/
RdmaEndpointGroup.hpp
View file @
41aebdb6
File moved
RdmaRepCqProcessor.hpp
→
header/
RdmaRepCqProcessor.hpp
View file @
41aebdb6
File moved
RdmaReplicationEndpoint.hpp
→
header/
RdmaReplicationEndpoint.hpp
View file @
41aebdb6
File moved
RdmaSalCqProcessor.hpp
→
header/
RdmaSalCqProcessor.hpp
View file @
41aebdb6
File moved
RdmaSalEndpoint.hpp
→
header/
RdmaSalEndpoint.hpp
View file @
41aebdb6
File moved
RdmaServerEndpointGroup.hpp
→
header/
RdmaServerEndpointGroup.hpp
View file @
41aebdb6
File moved
Runnable.hpp
→
header/
Runnable.hpp
View file @
41aebdb6
File moved
TaskThread.hpp
→
header/
TaskThread.hpp
View file @
41aebdb6
File moved
Executor.cpp
→
src/
Executor.cpp
View file @
41aebdb6
File moved
RdmaCmProcessor.cpp
→
src/
RdmaCmProcessor.cpp
View file @
41aebdb6
File moved
RdmaEndpoint.cpp
→
src/
RdmaEndpoint.cpp
View file @
41aebdb6
File moved
RdmaRepCqProcessor.cpp
→
src/
RdmaRepCqProcessor.cpp
View file @
41aebdb6
File moved
RdmaReplicationEndpoint.cpp
→
src/
RdmaReplicationEndpoint.cpp
View file @
41aebdb6
File moved
RdmaSalCqProcessor.cpp
→
src/
RdmaSalCqProcessor.cpp
View file @
41aebdb6
File moved
RdmaSalEndpoint.cpp
→
src/
RdmaSalEndpoint.cpp
View file @
41aebdb6
File moved
RdmaServerEndpointGroup.cpp
→
src/
RdmaServerEndpointGroup.cpp
View file @
41aebdb6
File moved
Server.cpp
→
src/
Server.cpp
View file @
41aebdb6
File moved
TaskThread.cpp
→
src/
TaskThread.cpp
View file @
41aebdb6
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment