From 0029c5b604083e8e8dc9bcf5aee3340d3afa134e Mon Sep 17 00:00:00 2001 From: Honggang LI Date: Mon, 21 Aug 2023 20:44:33 +0800 Subject: [PATCH] Export symbols rte_eal_sec_attach and rte_eal_sec_detach Signed-off-by: Honggang LI --- ...ec_attach-and-rte_eal_sec_detach-as-.patch | 39 +++++++++++++++++++ dpdk.spec | 6 ++- 2 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 0351-Export-rte_eal_sec_attach-and-rte_eal_sec_detach-as-.patch diff --git a/0351-Export-rte_eal_sec_attach-and-rte_eal_sec_detach-as-.patch b/0351-Export-rte_eal_sec_attach-and-rte_eal_sec_detach-as-.patch new file mode 100644 index 0000000..bd9033a --- /dev/null +++ b/0351-Export-rte_eal_sec_attach-and-rte_eal_sec_detach-as-.patch @@ -0,0 +1,39 @@ +From f12877385a64c57130e0b0d5ee4d94bd47ee8492 Mon Sep 17 00:00:00 2001 +From: Honggang LI +Date: Mon, 21 Aug 2023 15:16:05 +0800 +Subject: [PATCH] Export `rte_eal_sec_attach` and `rte_eal_sec_detach` as + EXPERIMENTAL APIs + +Because of those APIs were not exported, gazelle `/usr/bin/ltran` has to +be linked with static library `librte_eal.a` instead of shared library +`librte_eal.so`, which has weak symbols `rte_eal_sec_attach` and +`rte_eal_sec_detach`. + +As debuginfo was stripped from `librte_eal.a` by rpmbuild, it is impossible +to step `rte_eal_sec_attach` with gdb. In order to address the issue +with gdb, we need to export those symbols and link `ltran` with shared +library `librte_eal.so`. + +https://gitee.com/src-openeuler/dpdk/issues/I7QFI9?from=project-issue + +Signed-off-by: Honggang LI +--- + lib/eal/version.map | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/lib/eal/version.map b/lib/eal/version.map +index ab28c22..1dd4c1d 100644 +--- a/lib/eal/version.map ++++ b/lib/eal/version.map +@@ -420,6 +420,8 @@ EXPERIMENTAL { + rte_intr_instance_free; + rte_intr_type_get; + rte_intr_type_set; ++ rte_eal_sec_attach; ++ rte_eal_sec_detach; + }; + + INTERNAL { +-- +2.33.0 + diff --git a/dpdk.spec b/dpdk.spec index 7ce920b..66904bc 100644 --- a/dpdk.spec +++ b/dpdk.spec @@ -1,6 +1,6 @@ Name: dpdk Version: 21.11 -Release: 55 +Release: 56 Packager: packaging@6wind.com URL: http://dpdk.org %global source_version 21.11 @@ -377,6 +377,7 @@ Patch6347: 0347-net-hns3-add-FDIR-VLAN-match-mode-runtime-config.patch Patch6348: 0348-doc-fix-kernel-patch-link-in-hns3-guide.patch Patch6349: 0349-doc-fix-syntax-in-hns3-guide.patch Patch6350: 0350-doc-fix-number-of-leading-spaces-in-hns3-guide.patch +Patch6351: 0351-Export-rte_eal_sec_attach-and-rte_eal_sec_detach-as-.patch Summary: Data Plane Development Kit core Group: System Environment/Libraries @@ -522,6 +523,9 @@ strip -g $RPM_BUILD_ROOT/lib/modules/%{kern_devel_ver}/extra/dpdk/igb_uio.ko /usr/sbin/depmod %changelog +* Mon Aug 21 2023 Honggang Li - 21.11-56 +- Export symbols rte_eal_sec_attach and rte_eal_sec_detach + * Mon Jul 17 2023 chenjiji - 21.11-55 Sync some patchs from upstreaming about add FDIR VLAN match mode runtime config and fix doc format for hns3 pmd. Patchs -- Gitee