forked from IBM/DPFS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0053e36
commit ba461bd
Showing
33 changed files
with
566 additions
and
340 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,3 +32,6 @@ ltmain.sh | |
**/Makefile.in | ||
**/stamp-h1 | ||
**/compile_commands.json | ||
|
||
*.toml | ||
!/conf_example.toml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
[submodule "eRPC-arm"] | ||
path = eRPC-arm | ||
[submodule "extern/tomlcpp"] | ||
path = extern/tomlcpp | ||
url = [email protected]:cktan/tomlcpp.git | ||
[submodule "extern/eRPC-arm"] | ||
path = extern/eRPC-arm | ||
url = [email protected]:Peter-JanGootzen/eRPC-arm.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
[snap_hal] | ||
# Time between every poll | ||
polling_interval_usec = 0 | ||
# Physical function ID | ||
pf_id = 0 | ||
# Virtual function ID | ||
vf_id = -1 | ||
# Emulation manager, DPU specific | ||
emu_manager = "mlx5_0" | ||
# Amount of polling threads 0 for single threaded mode, >0 for multithreaded mode | ||
# Multithreaded not supported currently! | ||
nthreads = 0 | ||
# Must be a power of 2 and >= 1! The virtio-fs specification requires this | ||
queue_depth = 64 | ||
# Filesystem tag (i.e. the name of the virtiofs device to mount for the host) | ||
tag = "dpfs" | ||
|
||
[rvfs_hal] | ||
# Time between every poll | ||
polling_interval_usec = 0 | ||
|
||
[nfs] | ||
# The NFS server that you want to mirror | ||
server = "10.100.0.1" | ||
# The NFS server's path that you want to mirror | ||
export = "/mnt/shared" | ||
|
||
# This is for dpfs_rvfs_dpu and the dpfs_hal implementation that uses RVFS | ||
[rvfs] | ||
remote_uri = "10.100.0.1:38510" | ||
dpu_uri = "10.100.0.115:38510" | ||
# Useful for the DPU and remote side to have the QD synced | ||
# Must be a power of 2 and >= 1 | ||
queue_depth = 64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,55 @@ | ||
# | ||
# Copyright 2022- IBM Inc. All rights reserved | ||
# Copyright 2023- IBM Inc. All rights reserved | ||
# SPDX-License-Identifier: LGPL-2.1-or-later | ||
# | ||
|
||
lib_LTLIBRARIES = libdpfs_hal.la | ||
|
||
libdpfs_hal_ladir = $(includedir)/ | ||
libdpfs_hal_la_HEADERS = include/dpfs/hal.h | ||
|
||
libdpfs_hal_la_CFLAGS = -I$(builddir)/include/dpfs \ | ||
-fPIC -fvisibility=hidden | ||
|
||
libdpfs_hal_la_SOURCES = src/cpu_latency.c \ | ||
$(builddir)/../extern/tomlcpp/toml.c | ||
|
||
libdpfs_hal_la_LDFLAGS = $(IBVERBS_LDFLAGS) | ||
|
||
if !DPFS_RVFS | ||
if HAVE_SNAP | ||
|
||
noinst_LIBRARIES = libdpfs_hal.a | ||
libdpfs_hal_la_LIBADD = $(srcdir)/../../src/libmlx_dev_emu.a \ | ||
$(srcdir)/../../src/libmlx_dev_emu_snap.a \ | ||
$(IBVERBS_LDFLAGS) $(SNAP_LDFLAGS) $(PYTHON3_LDFLAGS) | ||
|
||
libdpfs_hal_la_LDFLAGS += --exclude-libs=libmlx_dev_emu.a \ | ||
--exclude-libs=libmlx_dev_emu_snap.a \ | ||
$(SNAP_LDFLAGS) $(PYTHON3_LDFLAGS) | ||
|
||
# Mellanox Snap BlueField virtio-fs emulation | ||
libdpfs_hal_la_CFLAGS += $(BASE_CFLAGS) \ | ||
$(SNAP_CFLAGS) -I$(builddir)/../../src \ | ||
-I$(builddir)/../extern/tomlcpp | ||
|
||
libdpfs_hal_la_SOURCES += src/snap.c | ||
|
||
endif HAVE_SNAP | ||
else DPFS_RVFS | ||
# RVFS using eRPC | ||
|
||
libdpfs_hal_la_LIBADD = $(srcdir)/../extern/eRPC-arm/build/liberpc.a \ | ||
-lboost_system -lboost_thread -lnuma $(IBVERBS_LDFLAGS) | ||
|
||
libdpfs_hal_adir = $(includedir)/ | ||
libdpfs_hal_a_HEADERS = dpfs_hal.h | ||
# eRPC required flags for its headers | ||
libdpfs_hal_la_CPPFLAGS = $(BASE_CPPFLAGS) $(libdpfs_hal_la_CFLAGS) \ | ||
-I$(builddir)/../extern/eRPC-arm/third_party/asio/include \ | ||
-I$(builddir)/../extern/eRPC-arm/src \ | ||
-DERPC_INFINIBAND -Wno-address-of-packed-member | ||
# toml library | ||
libdpfs_hal_la_CPPFLAGS += -I$(builddir)/../extern/tomlcpp | ||
|
||
libdpfs_hal_a_CFLAGS = $(BASE_CFLAGS) -I$(srcdir)/../../src $(SNAP_CFLAGS) \ | ||
-fPIC | ||
libdpfs_hal_a_SOURCES = dpfs_hal.c cpu_latency.c | ||
libdpfs_hal_la_SOURCES += src/rvfs.cpp \ | ||
$(builddir)/../extern/tomlcpp/tomlcpp.cpp | ||
|
||
endif | ||
endif DPFS_RVFS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.