diff options
author | 2018-08-01 08:41:35 +0000 | |
---|---|---|
committer | 2018-08-01 08:41:35 +0000 | |
commit | 3665809b3de73a3a61054a39e1260448df21f077 (patch) | |
tree | 9ad0c178534172c5edfd63ca05c9804b3fa96c99 /scripts | |
parent | 2e42d73f30becf528c5540531d02316833ac0320 (diff) | |
parent | bf279a4aa50a94c64087936bde5bd3e6f1618c21 (diff) |
Merge "Fix: disable dpdk1802 KNI mode by default"
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/build_dpdk1802.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/build_dpdk1802.sh b/scripts/build_dpdk1802.sh index 01379d6..1ed84bb 100755 --- a/scripts/build_dpdk1802.sh +++ b/scripts/build_dpdk1802.sh @@ -17,7 +17,7 @@ echo "check whether dpdk installed" cur_directory=${PWD} -check_dpdk=$(rpm -qa | grep dpdk) +check_dpdk=$(rpm -qa | grep dpdk-devel) if [ -z "$check_dpdk" ]; then echo "system will install the dpdk" else @@ -56,6 +56,12 @@ sed -i '83a sed -i '\''s!CONFIG_RTE_BUILD_SHARED_LIB=.*!CONFIG_RTE_BUILD_SHARED_ sed -i '84a sed -i '\''s!CONFIG_RTE_LIBRTE_EAL=.*!CONFIG_RTE_LIBRTE_EAL=y!1'\'' config/common_base' dpdk.spec sed -i '85a sed -i '\''s!CONFIG_RTE_EAL_PMD_PATH=.*!CONFIG_RTE_EAL_PMD_PATH="/tmp/dpdk/drivers/"!1'\'' config/common_base' dpdk.spec +#disable KNI mode by default +sed -i '93a sed -ri '\''s!CONFIG_RTE_LIBRARY_KNI=.*!CONFIG_RTE_LIBRARY_KNI=n!1'\'' %{target}/.config' dpdk.spec +sed -i '94a sed -ri '\''s!CONFIG_RTE_LIBRARY_PMD_KNI=.*!CONFIG_RTE_LIBRARY_PMD_KNI=n!1'\'' %{target}/.config' dpdk.spec +sed -i '95a sed -ri '\''s!CONFIG_RTE_KNI_KMOD=.*!CONFIG_RTE_KNI_KMOD=n!1'\'' %{target}/.config' dpdk.spec +sed -i '96a sed -ri '\''s!CONFIG_RTE_KNI_PREEMPT_DEFAULT=.*!CONFIG_RTE_KNI_PREEMPT_DEFAULT=n!1'\'' %{target}/.config' dpdk.spec + echo "build the dependence" #sudo yum-builddep -y dpdk.spec sudo yum install -y libpcap-devel python-sphinx inkscape |