!752 [sync] PR-733: sync patch: add support for arch ppc64le
From: @openeuler-sync-bot Reviewed-by: @jiangheng12 Signed-off-by: @jiangheng12
This commit is contained in:
commit
24f5d6c416
36
0163-Add-support-for-arch-ppc64le.patch
Normal file
36
0163-Add-support-for-arch-ppc64le.patch
Normal file
@ -0,0 +1,36 @@
|
||||
From e89442aa3aebae9896a5d5dac0e397e5da16f8de Mon Sep 17 00:00:00 2001
|
||||
From: Ren Zhijie <zhijie.ren@shingroup.cn>
|
||||
Date: Mon, 25 Mar 2024 16:46:08 +0800
|
||||
Subject: [PATCH] Add support for arch ppc64le
|
||||
|
||||
Signed-off-by: Ren Zhijie <zhijie.ren@shingroup.cn>
|
||||
---
|
||||
src/ltran/CMakeLists.txt | 5 ++++-
|
||||
1 file changed, 4 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/ltran/CMakeLists.txt b/src/ltran/CMakeLists.txt
|
||||
index a484ae3..2eb7d70 100644
|
||||
--- a/src/ltran/CMakeLists.txt
|
||||
+++ b/src/ltran/CMakeLists.txt
|
||||
@@ -63,6 +63,9 @@ if (DPDK_VERSION GREATER_EQUAL 23.11)
|
||||
set(DPDK_LINK_FLAGS "${DPDK_LINK_FLAGS} -lrte_log -larchive -Wl,-lrte_eal")
|
||||
else()
|
||||
set(DPDK_LINK_FLAGS "${DPDK_LINK_FLAGS} -lrte_kni -Wl,-Bstatic -lrte_eal -Wl,-Bdynamic")
|
||||
+ if(CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "ppc64le")
|
||||
+ set(DPDK_LINK_FLAGS "${DPDK_LINK_FLAGS} -Wl,-larchive")
|
||||
+ endif()
|
||||
endif()
|
||||
|
||||
add_executable(ltran main.c ltran_param.c ltran_config.c ltran_ethdev.c ltran_stat.c ltran_errno.c
|
||||
@@ -79,7 +82,7 @@ target_compile_options(ltran PRIVATE -fno-strict-aliasing -D__ARM_FEATURE_CRC32=
|
||||
-Wdeprecated -Wwrite-strings -Wno-implicit-fallthrough -D_FORTIFY_SOURCE=2 -Wno-error=deprecated-declarations)
|
||||
|
||||
# gcc coredump in openEuler-20.03-LTS-XX aarch64 when add -march=native
|
||||
-if(NOT CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "sw_64|aarch64" )
|
||||
+if(NOT CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "sw_64|aarch64|ppc64le" )
|
||||
target_compile_options(ltran PRIVATE -march=native -Wcast-align)
|
||||
endif()
|
||||
|
||||
--
|
||||
2.33.0
|
||||
|
||||
11
gazelle.spec
11
gazelle.spec
@ -2,7 +2,7 @@
|
||||
|
||||
Name: gazelle
|
||||
Version: 1.0.2
|
||||
Release: 30
|
||||
Release: 31
|
||||
Summary: gazelle is a high performance user-mode stack
|
||||
License: MulanPSL-2.0
|
||||
URL: https://gitee.com/openeuler/gazelle
|
||||
@ -12,6 +12,9 @@ BuildRequires: cmake gcc-c++
|
||||
BuildRequires: lwip >= 2.1.3-78
|
||||
BuildRequires: dpdk-devel >= 21.11-5
|
||||
BuildRequires: numactl-devel libpcap-devel libconfig-devel libboundscheck uthash-devel
|
||||
%ifarch ppc64le
|
||||
BuildRequires: libarchive libarchive-devel
|
||||
%endif
|
||||
|
||||
Requires: dpdk >= 21.11-5
|
||||
Requires: numactl libpcap libconfig libboundscheck
|
||||
@ -176,11 +179,12 @@ Patch9159: 0159-DFX-adapt-testcase-for-gazellectl-connect-failed.patch
|
||||
Patch9160: 0160-warp-add-configuration-check-with-host_addr-and-serv.patch
|
||||
Patch9161: 0161-add-latency-nodes-READ_APP_CALL-WRITE_RPC_MSG.patch
|
||||
Patch9162: 0162-fix-vlan-filter-can-be-added-when-vlan_mode-1.patch
|
||||
Patch9163: 0163-Add-support-for-arch-ppc64le.patch
|
||||
|
||||
%description
|
||||
%{name} is a high performance user-mode stack.
|
||||
|
||||
ExclusiveArch: x86_64 aarch64
|
||||
ExclusiveArch: x86_64 aarch64 ppc64le
|
||||
|
||||
%prep
|
||||
%autosetup -n %{name}-%{version} -p1
|
||||
@ -217,6 +221,9 @@ install -Dpm 0640 %{_builddir}/%{name}-%{version}/src/ltran/ltran.conf %{b
|
||||
%config(noreplace) %{conf_path}/ltran.conf
|
||||
|
||||
%changelog
|
||||
* Sun Apr 7 2024 yinbin6 <yinbin8@huawei.com> - 1.0.2-31
|
||||
- Add support for arch ppc64le
|
||||
|
||||
* Sun Apr 7 2024 yinbin6 <yinbin8@huawei.com> - 1.0.2-30
|
||||
- fix vlan filter can be added when vlan_mode=-1
|
||||
- add latency nodes: READ_APP_CALL & WRITE_RPC_MSG
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user