From b94c6c2bef5a26fb159dc7bd5b68f5082d3665d5 Mon Sep 17 00:00:00 2001 From: kirbyzhou Date: Fri, 23 May 2025 15:17:53 +0800 Subject: [PATCH] Split dpdk package to avoid libibverbs conflict with OFED dirver --- dpdk.spec | 47 ++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 46 insertions(+), 1 deletion(-) diff --git a/dpdk.spec b/dpdk.spec index dbceaed..64e2545 100644 --- a/dpdk.spec +++ b/dpdk.spec @@ -11,7 +11,7 @@ Name: dpdk Version: 23.11 -Release: 31 +Release: 32 URL: http://dpdk.org Source: https://fast.dpdk.org/rel/dpdk-%{version}.tar.xz @@ -160,6 +160,28 @@ BuildRequires: chrpath The Data Plane Development Kit is a set of libraries and drivers for fast packet processing in the user space. +%if %{with shared} +%package mlx +Summary: Data Plane Development Kit for Mellanox RDMA provider + +%description mlx +This package contains the dynamic library of DPDK for Mellanox RDMA provider + +%package xsc +Summary: Data Plane Development Kit for Yunsilicon xscale RDMA provider + +%description xsc +This package contains the dynamic library of DPDK for Yunsilicon xscale RDMA provider + +%ifarch x86_64 +%package mana +Summary: Data Plane Development Kit for Microsoft Azure Network Adapter (MANA) RDMA provider + +%description mana +This package contains the dynamic library of DPDK for Microsoft Azure Network Adapter (MANA) RDMA provider +%endif +%endif + %package devel Summary: Data Plane Development Kit development files Requires: %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} python3 @@ -281,11 +303,31 @@ strip -g $RPM_BUILD_ROOT/lib/modules/%{kern_devel_ver}/extra/dpdk/igb_uio.ko %else %{_libdir}/*.so* %exclude %{_libdir}/*.a +%exclude %{_libdir}/librte_*mlx4.so* +%exclude %{_libdir}/librte_*mlx5.so* +%exclude %{_libdir}/librte_net_xsc.so* +%ifarch x86_64 +%exclude %{_libdir}/librte_net_mana.so* +%endif %endif %{_bindir}/dpdk-*.py %{_bindir}/dpdk-devbind /lib/modules/%{kern_devel_ver}/extra/dpdk/*.ko +%if %{with shared} +%files mlx +%{_libdir}/librte_*mlx4.so* +%{_libdir}/librte_*mlx5.so* + +%files xsc +%{_libdir}/librte_net_xsc.so* + +%ifarch x86_64 +%files mana +%{_libdir}/librte_net_mana.so* +%endif +%endif + %files devel #BSD %{incdir}/ @@ -328,6 +370,9 @@ fi /usr/sbin/depmod %changelog +* Fri May 23 2025 zhoutianling - 23.11-32 + Split dpdk package to avoid libibverbs conflict with OFED dirver + * Mon May 19 2025 huangdengdui - 23.11-31 The Patch6093 backport error caushed port stop crash. This version fixes it. -- Gitee