Skip to content

Commit

Permalink
add rdma support
Browse files Browse the repository at this point in the history
  • Loading branch information
victoryang00 committed Mar 20, 2024
1 parent aac09b6 commit 089eee8
Show file tree
Hide file tree
Showing 9 changed files with 773 additions and 260 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- uses: actions/checkout@v2

- name: Install Dependency
run: sudo apt install libssl-dev gcc-13 g++-13 libspdlog-dev libfmt-dev llvm-14-dev libedit-dev libcxxopts-dev libpfm4-dev ninja-build libpcap-dev libopenblas-pthread-dev
run: sudo apt install libssl-dev gcc-13 g++-13 libspdlog-dev libfmt-dev llvm-14-dev libedit-dev libcxxopts-dev libpfm4-dev ninja-build libpcap-dev libopenblas-pthread-dev ibverbs-providers

- name: Checkout
run: |
Expand Down
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ elseif (LINUX)
/opt/OpenBLAS/include/
$ENV{BLAS_HOME}/include)
message(${BLAS_INCLUDE_DIRS})
set(WIN_EXTRA_LIBS ibverbs rdmacm)
else ()
set(WAMR_BUILD_PLATFORM "windows")
set(WAMR_BUILD_LIB_PTHREAD 1)
Expand Down
4 changes: 2 additions & 2 deletions gateway/playground.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ task<void> SyncAndBlockTraffic(string src_ip, string dst_ip, short_word dstport,
Sniffer(filter, iface, PacketHandler);

// TCP connections setup
auto tcp_v_to_s = make_unique<TCPConnection>(src_ip, dst_ip, srcport, dstport, iface, TCPConnection::ESTABLISHED);
auto tcp_s_to_v = make_unique<TCPConnection>(dst_ip, src_ip, dstport, srcport, iface, TCPConnection::ESTABLISHED);
auto tcp_v_to_s = make_unique<TCPConnection>(src_ip, dst_ip, srcport, dstport, iface, 4);
auto tcp_s_to_v = make_unique<TCPConnection>(dst_ip, src_ip, dstport, srcport, iface, 4);

// Synchronize the ACK and SEQ numbers
tcp_v_to_s->Sync();
Expand Down
Loading

0 comments on commit 089eee8

Please sign in to comment.