summaryrefslogtreecommitdiffstats
path: root/scripts/t-rex-64
diff options
context:
space:
mode:
authorHanoh Haim <hhaim@cisco.com>2016-11-11 00:35:28 +0200
committerHanoh Haim <hhaim@cisco.com>2016-11-11 12:22:51 +0200
commite6241955bb9a50151f2d59a7df58a7b8eb41cf6f (patch)
tree943e27523ebdb110809e8978f09887a847cc6bd8 /scripts/t-rex-64
parent21ebf559e4b3d7f337e8cd92dd7b5dae1acfdae4 (diff)
add dummy verbs lib in case there is no OFED
Signed-off-by: Hanoh Haim <hhaim@cisco.com>
Diffstat (limited to 'scripts/t-rex-64')
-rwxr-xr-xscripts/t-rex-646
1 files changed, 6 insertions, 0 deletions
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)"