From f3cfa8c42cc4a7ed115b3ccc2432852b92637c0262a5b5ddcc7afa44c22ec310 Mon Sep 17 00:00:00 2001 From: Nirmoy Das Date: Tue, 6 Mar 2018 12:12:48 +0000 Subject: [PATCH] Accepting request 583318 from home:mvarlese:branches:network MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Removed 0002-kni-fix-build-on-SLE12-SP3.patch since no longer referenced in .spec files - Added 0002-dpdk-eal-ppc-rte_smp_mb.patch to fix an issue on ppc64le platforms with v18.02 - Updated to version 18.02; some of the changes include: * Added function to allow releasing internal EAL resources on exit * Added igb, ixgbe and i40e ethernet driver to support RSS with flow API * Updated i40e driver to support PPPoE/PPPoL2TP * Added MAC loopback support for i40e * Added support of run time determination of number of queues per i40e VF * Updated mlx5 driver * Updated mlx4 driver * Added NVGRE and UDP tunnels support in Solarflare network PMD * Added AVF (Adaptive Virtual Function) net PMD * Added feature supports for live migration from vhost-net to vhost-user * Updated the AESNI-MB PMD * Updated the DPAA_SEC crypto driver to support rte_security * Added Wireless Base Band Device (bbdev) abstraction * Added New eventdev Ordered Packet Distribution Library (OPDL) PMD * Added new pipeline use case for dpdk-test-eventdev application * Updated Eventdev sample application to support event devices based on capability * Added Rawdev, a generic device support library * Added new multi-process communication channel * Added GRO support for VxLAN-tunneled packets * Increased default Rx and Tx ring size in sample applications * Added new DPDK build system using the tools “meson” and “ninja” [EXPERIMENTAL] - Removed 0002-kni-fix-build-on-SLE12-SP3.patch since no longer referenced in .spec files - Added 0002-dpdk-eal-ppc-rte_smp_mb.patch to fix an issue on ppc64le platforms with v18.02 - Updated to version 18.02; some of the changes include: * Added function to allow releasing internal EAL resources on exit * Added igb, ixgbe and i40e ethernet driver to support RSS with flow API * Updated i40e driver to support PPPoE/PPPoL2TP * Added MAC loopback support for i40e * Added support of run time determination of number of queues per i40e VF * Updated mlx5 driver * Updated mlx4 driver * Added NVGRE and UDP tunnels support in Solarflare network PMD * Added AVF (Adaptive Virtual Function) net PMD * Added feature supports for live migration from vhost-net to vhost-user * Updated the AESNI-MB PMD * Updated the DPAA_SEC crypto driver to support rte_security * Added Wireless Base Band Device (bbdev) abstraction * Added New eventdev Ordered Packet Distribution Library (OPDL) PMD * Added new pipeline use case for dpdk-test-eventdev application * Updated Eventdev sample application to support event devices based on capability * Added Rawdev, a generic device support library * Added new multi-process communication channel * Added GRO support for VxLAN-tunneled packets * Increased default Rx and Tx ring size in sample applications * Added new DPDK build system using the tools “meson” and “ninja” [EXPERIMENTAL] OBS-URL: https://build.opensuse.org/request/show/583318 OBS-URL: https://build.opensuse.org/package/show/network/dpdk?expand=0&rev=77 --- 0002-dpdk-eal-ppc-rte_smp_mb.patch | 13 +++++++++++++ dpdk-17.11.1.tar.xz | 3 --- dpdk-18.02.tar.xz | 3 +++ dpdk-thunderx.changes | 28 ++++++++++++++++++++++++++++ dpdk-thunderx.spec | 18 ++++++++++++++---- dpdk.changes | 28 ++++++++++++++++++++++++++++ dpdk.spec | 18 ++++++++++++++---- 7 files changed, 100 insertions(+), 11 deletions(-) create mode 100644 0002-dpdk-eal-ppc-rte_smp_mb.patch delete mode 100644 dpdk-17.11.1.tar.xz create mode 100644 dpdk-18.02.tar.xz diff --git a/0002-dpdk-eal-ppc-rte_smp_mb.patch b/0002-dpdk-eal-ppc-rte_smp_mb.patch new file mode 100644 index 0000000..4411aba --- /dev/null +++ b/0002-dpdk-eal-ppc-rte_smp_mb.patch @@ -0,0 +1,13 @@ +diff --git a/lib/librte_eal/common/include/arch/ppc_64/rte_atomic.h b/lib/librte_eal/common/include/arch/ppc_64/rte_atomic.h +index 39fce7b..1821774 100644 +--- a/lib/librte_eal/common/include/arch/ppc_64/rte_atomic.h ++++ b/lib/librte_eal/common/include/arch/ppc_64/rte_atomic.h +@@ -55,7 +55,7 @@ + * Guarantees that the LOAD and STORE operations generated before the + * barrier occur before the LOAD and STORE operations generated after. + */ +-#define rte_mb() {asm volatile("sync" : : : "memory"); } ++#define rte_mb() asm volatile("sync" : : : "memory") + + /** + * Write memory barrier. diff --git a/dpdk-17.11.1.tar.xz b/dpdk-17.11.1.tar.xz deleted file mode 100644 index 8d0b240..0000000 --- a/dpdk-17.11.1.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f87e7a741cb531c13a410a17882fbc5677c1737e6e44507e06c8b38901be1821 -size 10212956 diff --git a/dpdk-18.02.tar.xz b/dpdk-18.02.tar.xz new file mode 100644 index 0000000..ad1c26a --- /dev/null +++ b/dpdk-18.02.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:273665e2d9bc3700a07957e89258d1ed70a7ff950fc25621e252bc03970be1a1 +size 10457524 diff --git a/dpdk-thunderx.changes b/dpdk-thunderx.changes index 3ded33f..0c2c8f9 100644 --- a/dpdk-thunderx.changes +++ b/dpdk-thunderx.changes @@ -1,3 +1,31 @@ +------------------------------------------------------------------- +Tue Mar 6 11:35:29 UTC 2018 - marco.varlese@suse.de + +- Removed 0002-kni-fix-build-on-SLE12-SP3.patch since no longer referenced in .spec files +- Added 0002-dpdk-eal-ppc-rte_smp_mb.patch to fix an issue on ppc64le platforms with v18.02 +- Updated to version 18.02; some of the changes include: + * Added function to allow releasing internal EAL resources on exit + * Added igb, ixgbe and i40e ethernet driver to support RSS with flow API + * Updated i40e driver to support PPPoE/PPPoL2TP + * Added MAC loopback support for i40e + * Added support of run time determination of number of queues per i40e VF + * Updated mlx5 driver + * Updated mlx4 driver + * Added NVGRE and UDP tunnels support in Solarflare network PMD + * Added AVF (Adaptive Virtual Function) net PMD + * Added feature supports for live migration from vhost-net to vhost-user + * Updated the AESNI-MB PMD + * Updated the DPAA_SEC crypto driver to support rte_security + * Added Wireless Base Band Device (bbdev) abstraction + * Added New eventdev Ordered Packet Distribution Library (OPDL) PMD + * Added new pipeline use case for dpdk-test-eventdev application + * Updated Eventdev sample application to support event devices based on capability + * Added Rawdev, a generic device support library + * Added new multi-process communication channel + * Added GRO support for VxLAN-tunneled packets + * Increased default Rx and Tx ring size in sample applications + * Added new DPDK build system using the tools “meson” and “ninja” [EXPERIMENTAL] + ------------------------------------------------------------------- Wed Feb 28 07:02:13 UTC 2018 - marco.varlese@suse.de diff --git a/dpdk-thunderx.spec b/dpdk-thunderx.spec index 2a91b8a..f27bb7f 100644 --- a/dpdk-thunderx.spec +++ b/dpdk-thunderx.spec @@ -43,12 +43,12 @@ # The lname versioning is based solely on the MAJOR and MINOR # as per DPDK CONFIG_RTE_MAJOR_ABI. -%define lname libdpdk-17_11-0 +%define lname libdpdk-18_02-0 # Do NOT edit this auto generated file! Edit dpdk.spec instead # and run 'pre_checkin.sh' before committing Name: dpdk-thunderx -Version: 17.11.1 +Version: 18.02 Release: 0 Summary: Set of libraries and drivers for fast packet processing (thunderx) License: BSD-3-Clause AND GPL-2.0-only AND LGPL-2.1-only @@ -63,6 +63,7 @@ Source1: preamble # However, the problem still exists and the fix has to find its way to the # upstream code. Patch1: 0001-enic-fix-Type-punning-and-strict-aliasing-warning.patch +Patch2: 0002-dpdk-eal-ppc-rte_smp_mb.patch BuildRequires: doxygen BuildRequires: fdupes BuildRequires: libelf-devel @@ -157,8 +158,9 @@ The DPDK Kernel NIC Interface (KNI) allows userspace applications access to the %prep # can't use %{name} because of dpdk-thunderx -%setup -q -n dpdk-stable-%{version} +%setup -q -n dpdk-%{version} %patch1 -p1 -z .enic +%patch2 -p1 -z .enic # This fixes CROSS compilation (broken) in the mk file for ThunderX sed -i '/^CROSS /s/^/#/' mk/machine/thunderx/rte.vars.mk @@ -175,6 +177,13 @@ function setconf() { function setdefaultconf() { + # Remove the below once upstream fixes the DPAA for NXP ARM + setconf CONFIG_RTE_LIBRTE_DPAA_BUS n $1 + setconf CONFIG_RTE_LIBRTE_DPAA_MEMPOOL n $1 + setconf CONFIG_RTE_LIBRTE_DPAA_PMD n $1 + setconf CONFIG_RTE_LIBRTE_PMD_DPAA_SEC n $1 + setconf CONFIG_RTE_LIBRTE_PMD_DPAA_EVENTDEV n $1 + setconf CONFIG_RTE_MACHINE '"%{machine2}"' $1 # Disable experimental features setconf CONFIG_RTE_NEXT_ABI n $1 @@ -340,6 +349,7 @@ ln -s %{_sbindir}/dpdk-devbind %{buildroot}%{_sbindir}/dpdk_nic_bind %defattr(-,root,root) # BSD %{_bindir}/testpmd +%{_bindir}/testbbdev %{_bindir}/dpdk-procinfo %{_bindir}/dpdk_proc_info %{_bindir}/dpdk-pdump @@ -357,7 +367,7 @@ ln -s %{_sbindir}/dpdk-devbind %{buildroot}%{_sbindir}/dpdk_nic_bind %defattr(-,root,root) #BSD %docdir -%doc LICENSE.GPL LICENSE.LGPL +%doc license/gpl-2.0.txt license/lgpl-2.1.txt %files devel %defattr(-,root,root) diff --git a/dpdk.changes b/dpdk.changes index 3ded33f..0c2c8f9 100644 --- a/dpdk.changes +++ b/dpdk.changes @@ -1,3 +1,31 @@ +------------------------------------------------------------------- +Tue Mar 6 11:35:29 UTC 2018 - marco.varlese@suse.de + +- Removed 0002-kni-fix-build-on-SLE12-SP3.patch since no longer referenced in .spec files +- Added 0002-dpdk-eal-ppc-rte_smp_mb.patch to fix an issue on ppc64le platforms with v18.02 +- Updated to version 18.02; some of the changes include: + * Added function to allow releasing internal EAL resources on exit + * Added igb, ixgbe and i40e ethernet driver to support RSS with flow API + * Updated i40e driver to support PPPoE/PPPoL2TP + * Added MAC loopback support for i40e + * Added support of run time determination of number of queues per i40e VF + * Updated mlx5 driver + * Updated mlx4 driver + * Added NVGRE and UDP tunnels support in Solarflare network PMD + * Added AVF (Adaptive Virtual Function) net PMD + * Added feature supports for live migration from vhost-net to vhost-user + * Updated the AESNI-MB PMD + * Updated the DPAA_SEC crypto driver to support rte_security + * Added Wireless Base Band Device (bbdev) abstraction + * Added New eventdev Ordered Packet Distribution Library (OPDL) PMD + * Added new pipeline use case for dpdk-test-eventdev application + * Updated Eventdev sample application to support event devices based on capability + * Added Rawdev, a generic device support library + * Added new multi-process communication channel + * Added GRO support for VxLAN-tunneled packets + * Increased default Rx and Tx ring size in sample applications + * Added new DPDK build system using the tools “meson” and “ninja” [EXPERIMENTAL] + ------------------------------------------------------------------- Wed Feb 28 07:02:13 UTC 2018 - marco.varlese@suse.de diff --git a/dpdk.spec b/dpdk.spec index 00a283f..53fc28d 100644 --- a/dpdk.spec +++ b/dpdk.spec @@ -43,10 +43,10 @@ # The lname versioning is based solely on the MAJOR and MINOR # as per DPDK CONFIG_RTE_MAJOR_ABI. -%define lname libdpdk-17_11-0 +%define lname libdpdk-18_02-0 Name: dpdk -Version: 17.11.1 +Version: 18.02 Release: 0 Summary: Set of libraries and drivers for fast packet processing License: BSD-3-Clause AND GPL-2.0-only AND LGPL-2.1-only @@ -61,6 +61,7 @@ Source1: preamble # However, the problem still exists and the fix has to find its way to the # upstream code. Patch1: 0001-enic-fix-Type-punning-and-strict-aliasing-warning.patch +Patch2: 0002-dpdk-eal-ppc-rte_smp_mb.patch BuildRequires: doxygen BuildRequires: fdupes BuildRequires: libelf-devel @@ -155,8 +156,9 @@ The DPDK Kernel NIC Interface (KNI) allows userspace applications access to the %prep # can't use %{name} because of dpdk-thunderx -%setup -q -n dpdk-stable-%{version} +%setup -q -n dpdk-%{version} %patch1 -p1 -z .enic +%patch2 -p1 -z .enic # This fixes CROSS compilation (broken) in the mk file for ThunderX sed -i '/^CROSS /s/^/#/' mk/machine/thunderx/rte.vars.mk @@ -173,6 +175,13 @@ function setconf() { function setdefaultconf() { + # Remove the below once upstream fixes the DPAA for NXP ARM + setconf CONFIG_RTE_LIBRTE_DPAA_BUS n $1 + setconf CONFIG_RTE_LIBRTE_DPAA_MEMPOOL n $1 + setconf CONFIG_RTE_LIBRTE_DPAA_PMD n $1 + setconf CONFIG_RTE_LIBRTE_PMD_DPAA_SEC n $1 + setconf CONFIG_RTE_LIBRTE_PMD_DPAA_EVENTDEV n $1 + setconf CONFIG_RTE_MACHINE '"%{machine2}"' $1 # Disable experimental features setconf CONFIG_RTE_NEXT_ABI n $1 @@ -338,6 +347,7 @@ ln -s %{_sbindir}/dpdk-devbind %{buildroot}%{_sbindir}/dpdk_nic_bind %defattr(-,root,root) # BSD %{_bindir}/testpmd +%{_bindir}/testbbdev %{_bindir}/dpdk-procinfo %{_bindir}/dpdk_proc_info %{_bindir}/dpdk-pdump @@ -355,7 +365,7 @@ ln -s %{_sbindir}/dpdk-devbind %{buildroot}%{_sbindir}/dpdk_nic_bind %defattr(-,root,root) #BSD %docdir -%doc LICENSE.GPL LICENSE.LGPL +%doc license/gpl-2.0.txt license/lgpl-2.1.txt %files devel %defattr(-,root,root)