diff --git a/DPDPU/README.md b/DPDPU/README.md index 1d4b093..6a5f40e 100644 --- a/DPDPU/README.md +++ b/DPDPU/README.md @@ -27,4 +27,12 @@ # BF-2 Memory Usage -- In developing DDS, log files are accumulated under `/dev/shm/`. They should be cleared periodically. \ No newline at end of file +- In developing DDS, log files are accumulated under `/dev/shm/`. They should be cleared periodically. + +# DDS Configuration + +- Host: APR entry for the DPU must be statically configured + - Windows: (1) `Get-NetAdapter` to find the index of the BF-2 CX-6 NIC, and (2) `New-NetNeighbor -InterfaceIndex [BF-2 CX-6 NIC index] -IPAddress '[DPU IP]' -LinkLayerAddress '000000000100' -State Permanent` + - Linux: run `Scripts/HostAddArpLinux.sh [DPU IP] 00:00:00:00:01:00` + +- DPU: the scalable function id in `Main/NetworkConfig.json` must be consistent with the created scalable function for DDS (check with `devlink dev show`) diff --git a/DPDPU/Scripts/InstallSPDK.sh b/DPDPU/Scripts/InstallSPDK.sh index e1182cf..2f0d6e9 100755 --- a/DPDPU/Scripts/InstallSPDK.sh +++ b/DPDPU/Scripts/InstallSPDK.sh @@ -1,7 +1,6 @@ INSTALL_PATH=/opt/dds/spdk mkdir -p $INSTALL_PATH cd ../ThirdParty/spdk -git submodule update --init # Avoid duplicated DPDK init cp ../../StorageEngine/DDSBackEndDPUService/Patches/spdk_dpdk_init.c lib/env_dpdk/init.c @@ -9,8 +8,10 @@ cp ../../StorageEngine/DDSBackEndDPUService/Patches/spdk_dpdk_init.c lib/env_dpd cp ../../StorageEngine/DDSBackEndDPUService/Patches/spdk_dpdk_threads.c lib/env_dpdk/threads.c cp ../../StorageEngine/DDSBackEndDPUService/Patches/spdk_reactor.c lib/event/reactor.c +pip3 install testresources pip3 install --upgrade setuptools ./scripts/pkgdep.sh --all +git submodule update --init ./configure --prefix=$INSTALL_PATH --with-shared --with-dpdk=/opt/mellanox/dpdk/ CFLAGS="$(pkg-config --cflags libdpdk) -DDPDK_INIT_SUPPRESSED -DSINGLE_REACTOR" make -j make install