summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--scripts/dumy_libs/libibverbs.so.1bin0 -> 494224 bytes
-rwxr-xr-xscripts/t-rex-646
2 files changed, 6 insertions, 0 deletions
diff --git a/scripts/dumy_libs/libibverbs.so.1 b/scripts/dumy_libs/libibverbs.so.1
new file mode 100644
index 00000000..bd93569d
--- /dev/null
+++ b/scripts/dumy_libs/libibverbs.so.1
Binary files differ
diff --git a/scripts/t-rex-64 b/scripts/t-rex-64
index d2388cfd..5515ba03 100755
--- a/scripts/t-rex-64
+++ b/scripts/t-rex-64
@@ -25,6 +25,12 @@ done <<< "$($PYTHON dpdk_setup_ports.py --dump-pci-description)"
cd $(dirname $0)
export LD_LIBRARY_PATH=$PWD
+#Add dummy lib in case we don't find it, e.g. there is no OFED installed
+if ldd _t-rex-64 | grep "libibverbs.so" | grep -q "not found"; then
+export LD_LIBRARY_PATH=$PWD:$PWD/dumy_libs
+fi
+
+
if [ -t 0 ] && [ -t 1 ]; then
export is_tty=true
saveterm="$(stty -g)"