From dfa5fe8afc8df60cdd7d446611b123823338ffd9187d0b45335fa1188280e569 Mon Sep 17 00:00:00 2001 From: Nirmoy Das Date: Thu, 24 Jan 2019 16:14:12 +0000 Subject: [PATCH 1/2] Accepting request 668322 from home:ndas:branches:network - Update to 18.11; some of the changes are: * Added support for using externally allocated memory in DPDK. * Added check for ensuring allocated memory is addressable by devices. * Updated the C11 memory model version of the ring library. * Added NXP CAAM JR PMD. * Added support for GEN3 devices to Intel QAT driver. * Added Distributed Software Eventdev PMD. * Updated KNI kernel module, rte_kni library, and KNI sample application. * Add a new sample application for vDPA. * Updated mlx5 driver. ** Improved security of PMD to prevent the NIC from getting stuck when the application misbehaves. ** Reworked flow engine to supported e-switch flow rules (transfer attribute). ** Added support for header re-write(L2-L4), VXLAN encap/decap, count, match on TCP flags and multiple flow groups with e-switch flow rules. ** Added support for match on metadata, VXLAN and MPLS encap/decap with flow rules. ** Added support for RTE_ETH_DEV_CLOSE_REMOVE flag to provide better support for representors. ** Added support for meson build. ** Fixed build issue with PPC. ** Added support for BlueField VF. ** Added support for externally allocated static memory for DMA. all the changes can be viwed in http://doc.dpdk.org/guides/rel_notes/release_18_11.html [- 0001-enic-fix-Type-punning-and-strict-aliasing-warning.patch] - Update to 18.11; some of the changes are: * Added support for using externally allocated memory in DPDK. * Added check for ensuring allocated memory is addressable by devices. * Updated the C11 memory model version of the ring library. * Added NXP CAAM JR PMD. * Added support for GEN3 devices to Intel QAT driver. * Added Distributed Software Eventdev PMD. * Updated KNI kernel module, rte_kni library, and KNI sample application. OBS-URL: https://build.opensuse.org/request/show/668322 OBS-URL: https://build.opensuse.org/package/show/network/dpdk?expand=0&rev=93 --- ...-punning-and-strict-aliasing-warning.patch | 39 ------------------- dpdk-18.02.2.tar.xz | 3 -- dpdk-18.11.tar.xz | 3 ++ dpdk-thunderx.changes | 25 ++++++++++++ dpdk-thunderx.spec | 16 ++------ dpdk.changes | 25 ++++++++++++ dpdk.spec | 16 ++------ 7 files changed, 61 insertions(+), 66 deletions(-) delete mode 100644 0001-enic-fix-Type-punning-and-strict-aliasing-warning.patch delete mode 100644 dpdk-18.02.2.tar.xz create mode 100644 dpdk-18.11.tar.xz diff --git a/0001-enic-fix-Type-punning-and-strict-aliasing-warning.patch b/0001-enic-fix-Type-punning-and-strict-aliasing-warning.patch deleted file mode 100644 index 09adebe..0000000 --- a/0001-enic-fix-Type-punning-and-strict-aliasing-warning.patch +++ /dev/null @@ -1,39 +0,0 @@ -From 3b16535193326c44209bb54b3a0f9ac3c258c8f8 Mon Sep 17 00:00:00 2001 -From: Nirmoy Das -Date: Mon, 11 Apr 2016 15:01:06 +0200 -Subject: [PATCH] enic: fix "Type-punning and strict-aliasing" warning - -Inspired by http://pkgs.fedoraproject.org/cgit/rpms/dpdk.git/tree/dpdk-2.2-punning.patch ---- - drivers/net/enic/enic_ethdev.c | 8 +++++--- - 1 file changed, 5 insertions(+), 3 deletions(-) - -diff --git a/drivers/net/enic/enic_ethdev.c b/drivers/net/enic/enic_ethdev.c -index 33a3f87e2..35769e0ba 100644 ---- a/drivers/net/enic/enic_ethdev.c -+++ b/drivers/net/enic/enic_ethdev.c -@@ -436,6 +436,8 @@ static void enicpmd_dev_stop(struct rte_eth_dev *eth_dev) - { - struct rte_eth_link link; - struct enic *enic = pmd_priv(eth_dev); -+ uint64_t *dev_link_ptr = (uint64_t *)ð_dev->data->dev_link; -+ uint64_t *link_ptr = (uint64_t *)&link; - - if (rte_eal_process_type() != RTE_PROC_PRIMARY) - return; -@@ -443,9 +445,9 @@ static void enicpmd_dev_stop(struct rte_eth_dev *eth_dev) - ENICPMD_FUNC_TRACE(); - enic_disable(enic); - memset(&link, 0, sizeof(link)); -- rte_atomic64_cmpset((uint64_t *)ð_dev->data->dev_link, -- *(uint64_t *)ð_dev->data->dev_link, -- *(uint64_t *)&link); -+ rte_atomic64_cmpset(dev_link_ptr, -+ *dev_link_ptr, -+ *link_ptr); - } - - /* --- -2.15.1 - diff --git a/dpdk-18.02.2.tar.xz b/dpdk-18.02.2.tar.xz deleted file mode 100644 index f1fa280..0000000 --- a/dpdk-18.02.2.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:56ee122e0761d303bc196a4015052d99875f76a468252c3c438aa556ad9d2134 -size 10470820 diff --git a/dpdk-18.11.tar.xz b/dpdk-18.11.tar.xz new file mode 100644 index 0000000..51e74f9 --- /dev/null +++ b/dpdk-18.11.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:76543b0a96f9e10a39a341eb137b363d26ece9b508d3f307668e91281d7a72fd +size 11346132 diff --git a/dpdk-thunderx.changes b/dpdk-thunderx.changes index b0008be..2e14986 100644 --- a/dpdk-thunderx.changes +++ b/dpdk-thunderx.changes @@ -1,3 +1,28 @@ +------------------------------------------------------------------- +Thu Jan 24 14:17:48 CET 2019 - ndas@suse.de + +- Update to 18.11; some of the changes are: + * Added support for using externally allocated memory in DPDK. + * Added check for ensuring allocated memory is addressable by devices. + * Updated the C11 memory model version of the ring library. + * Added NXP CAAM JR PMD. + * Added support for GEN3 devices to Intel QAT driver. + * Added Distributed Software Eventdev PMD. + * Updated KNI kernel module, rte_kni library, and KNI sample application. + * Add a new sample application for vDPA. + * Updated mlx5 driver. + ** Improved security of PMD to prevent the NIC from getting stuck when the application misbehaves. + ** Reworked flow engine to supported e-switch flow rules (transfer attribute). + ** Added support for header re-write(L2-L4), VXLAN encap/decap, count, match on TCP flags and multiple flow groups with e-switch flow rules. + ** Added support for match on metadata, VXLAN and MPLS encap/decap with flow rules. + ** Added support for RTE_ETH_DEV_CLOSE_REMOVE flag to provide better support for representors. + ** Added support for meson build. + ** Fixed build issue with PPC. + ** Added support for BlueField VF. + ** Added support for externally allocated static memory for DMA. + all the changes can be viwed in http://doc.dpdk.org/guides/rel_notes/release_18_11.html + [- 0001-enic-fix-Type-punning-and-strict-aliasing-warning.patch] + ------------------------------------------------------------------- Thu Oct 25 15:26:53 CEST 2018 - ndas@suse.de diff --git a/dpdk-thunderx.spec b/dpdk-thunderx.spec index e4d4a8a..1102f7a 100644 --- a/dpdk-thunderx.spec +++ b/dpdk-thunderx.spec @@ -1,7 +1,7 @@ # # spec file for package dpdk-thunderx # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -44,13 +44,13 @@ # The lname versioning is based solely on the MAJOR and MINOR # as per DPDK CONFIG_RTE_MAJOR_ABI. %define maj 18 -%define min 02 +%define min 11 %define lname libdpdk-%{maj}_%{min} # Do NOT edit this auto generated file! Edit dpdk.spec instead # and run 'pre_checkin.sh' before committing Name: dpdk-thunderx -Version: 18.02.2 +Version: 18.11 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 @@ -58,13 +58,6 @@ Group: System/Libraries Url: http://dpdk.org Source: http://fast.dpdk.org/rel/dpdk-%{version}.tar.xz Source1: preamble -# PATCH-FIX-OPENSUSE 0001-enic-fix-Type-punning-and-strict-aliasing-warning.patch -# This patch was originally taken from the fedora package but they have -# removed it since then because of -# http://osdir.com/ml/scm-fedora-commits/2016-03/msg00849.html -# 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 BuildRequires: doxygen BuildRequires: fdupes BuildRequires: libelf-devel @@ -161,8 +154,7 @@ 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} -%patch1 -p1 -z .enic +%setup -q -n dpdk-%{version} # This fixes CROSS compilation (broken) in the mk file for ThunderX sed -i '/^CROSS /s/^/#/' mk/machine/thunderx/rte.vars.mk diff --git a/dpdk.changes b/dpdk.changes index b0008be..2e14986 100644 --- a/dpdk.changes +++ b/dpdk.changes @@ -1,3 +1,28 @@ +------------------------------------------------------------------- +Thu Jan 24 14:17:48 CET 2019 - ndas@suse.de + +- Update to 18.11; some of the changes are: + * Added support for using externally allocated memory in DPDK. + * Added check for ensuring allocated memory is addressable by devices. + * Updated the C11 memory model version of the ring library. + * Added NXP CAAM JR PMD. + * Added support for GEN3 devices to Intel QAT driver. + * Added Distributed Software Eventdev PMD. + * Updated KNI kernel module, rte_kni library, and KNI sample application. + * Add a new sample application for vDPA. + * Updated mlx5 driver. + ** Improved security of PMD to prevent the NIC from getting stuck when the application misbehaves. + ** Reworked flow engine to supported e-switch flow rules (transfer attribute). + ** Added support for header re-write(L2-L4), VXLAN encap/decap, count, match on TCP flags and multiple flow groups with e-switch flow rules. + ** Added support for match on metadata, VXLAN and MPLS encap/decap with flow rules. + ** Added support for RTE_ETH_DEV_CLOSE_REMOVE flag to provide better support for representors. + ** Added support for meson build. + ** Fixed build issue with PPC. + ** Added support for BlueField VF. + ** Added support for externally allocated static memory for DMA. + all the changes can be viwed in http://doc.dpdk.org/guides/rel_notes/release_18_11.html + [- 0001-enic-fix-Type-punning-and-strict-aliasing-warning.patch] + ------------------------------------------------------------------- Thu Oct 25 15:26:53 CEST 2018 - ndas@suse.de diff --git a/dpdk.spec b/dpdk.spec index de2cf97..32c8146 100644 --- a/dpdk.spec +++ b/dpdk.spec @@ -1,7 +1,7 @@ # # spec file for package dpdk # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -44,11 +44,11 @@ # The lname versioning is based solely on the MAJOR and MINOR # as per DPDK CONFIG_RTE_MAJOR_ABI. %define maj 18 -%define min 02 +%define min 11 %define lname libdpdk-%{maj}_%{min} Name: dpdk -Version: 18.02.2 +Version: 18.11 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 @@ -56,13 +56,6 @@ Group: System/Libraries Url: http://dpdk.org Source: http://fast.dpdk.org/rel/dpdk-%{version}.tar.xz Source1: preamble -# PATCH-FIX-OPENSUSE 0001-enic-fix-Type-punning-and-strict-aliasing-warning.patch -# This patch was originally taken from the fedora package but they have -# removed it since then because of -# http://osdir.com/ml/scm-fedora-commits/2016-03/msg00849.html -# 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 BuildRequires: doxygen BuildRequires: fdupes BuildRequires: libelf-devel @@ -159,8 +152,7 @@ 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} -%patch1 -p1 -z .enic +%setup -q -n dpdk-%{version} # This fixes CROSS compilation (broken) in the mk file for ThunderX sed -i '/^CROSS /s/^/#/' mk/machine/thunderx/rte.vars.mk From bc3bacd3dc7b8962c5db07995d7e7c2ac01f2bde2f520875a4315697a56f684e Mon Sep 17 00:00:00 2001 From: Nirmoy Das Date: Fri, 25 Jan 2019 09:30:30 +0000 Subject: [PATCH 2/2] Accepting request 668548 from home:ndas:branches:network - Update to 18.11; some of the changes are(fate#325916, fate#325951 fate#326025, fate#326992): - Update to 18.11; some of the changes are(fate#325916, fate#325951 fate#326025, fate#326992): OBS-URL: https://build.opensuse.org/request/show/668548 OBS-URL: https://build.opensuse.org/package/show/network/dpdk?expand=0&rev=94 --- dpdk-thunderx.changes | 2 +- dpdk.changes | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dpdk-thunderx.changes b/dpdk-thunderx.changes index 2e14986..57d53c0 100644 --- a/dpdk-thunderx.changes +++ b/dpdk-thunderx.changes @@ -1,7 +1,7 @@ ------------------------------------------------------------------- Thu Jan 24 14:17:48 CET 2019 - ndas@suse.de -- Update to 18.11; some of the changes are: +- Update to 18.11; some of the changes are(fate#325916, fate#325951 fate#326025, fate#326992): * Added support for using externally allocated memory in DPDK. * Added check for ensuring allocated memory is addressable by devices. * Updated the C11 memory model version of the ring library. diff --git a/dpdk.changes b/dpdk.changes index 2e14986..57d53c0 100644 --- a/dpdk.changes +++ b/dpdk.changes @@ -1,7 +1,7 @@ ------------------------------------------------------------------- Thu Jan 24 14:17:48 CET 2019 - ndas@suse.de -- Update to 18.11; some of the changes are: +- Update to 18.11; some of the changes are(fate#325916, fate#325951 fate#326025, fate#326992): * Added support for using externally allocated memory in DPDK. * Added check for ensuring allocated memory is addressable by devices. * Updated the C11 memory model version of the ring library.