aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/bash/function/dpdk.sh
diff options
context:
space:
mode:
authorVratko Polak <vrpolak@cisco.com>2021-04-06 18:56:25 +0200
committerVratko Polak <vrpolak@cisco.com>2021-04-06 18:56:25 +0200
commit924fdf657f45dd191819148b7186725c6328408f (patch)
tree1e5bb66d60a1ea92935008293eda5bef4e237d92 /resources/libraries/bash/function/dpdk.sh
parent08ba75c59f4b76cde99789b532d932840f819525 (diff)
DPDK buid: Fix sed command
The previous way of concatenating strings would not work even in Python. Change-Id: Ice06f4a06fefbc4e42ee2572786244207dfefa11 Signed-off-by: Vratko Polak <vrpolak@cisco.com>
Diffstat (limited to 'resources/libraries/bash/function/dpdk.sh')
-rw-r--r--resources/libraries/bash/function/dpdk.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/libraries/bash/function/dpdk.sh b/resources/libraries/bash/function/dpdk.sh
index 1da9aeead2..362524349c 100644
--- a/resources/libraries/bash/function/dpdk.sh
+++ b/resources/libraries/bash/function/dpdk.sh
@@ -91,7 +91,7 @@ function dpdk_compile () {
sed_cmd="s/'RTE_MAX_LCORE', [0-9]*/'RTE_MAX_LCORE', $(nproc --all)/"
sed -i "${sed_cmd}" "${sed_file}" || die "RTE_MAX_LCORE Patch failed"
sed_cmd="s/'RTE_MAX_NUMA_NODES', [0-9]*/'RTE_MAX_NUMA_NODES', "
- "$(echo /sys/devices/system/node/node* | wc -w)/"
+ sed_cmd+="$(echo /sys/devices/system/node/node* | wc -w)/"
sed -i "${sed_cmd}" "${sed_file}" || die "RTE_MAX_NUMA_NODES Patch failed"
# Patch L3FWD.