Hello community, here is the log from the commit of package dpdk for openSUSE:Factory checked in at 2017-02-16 17:07:07 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/dpdk (Old) and /work/SRC/openSUSE:Factory/.dpdk.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "dpdk" Changes: -------- --- /work/SRC/openSUSE:Factory/dpdk/dpdk-thunderx.changes 2017-02-03 17:35:59.807174883 +0100 +++ /work/SRC/openSUSE:Factory/.dpdk.new/dpdk-thunderx.changes 2017-02-16 17:07:08.834050676 +0100 @@ -1,0 +2,28 @@ +Fri Feb 10 11:24:27 CET 2017 - ndas@suse.de + +- Enable rte_kni kernel module for dpdk(fate#322394). + [+preamble] +- Build dpdk-thunderx only for aarch64 + +------------------------------------------------------------------- +Thu Feb 2 15:21:14 CET 2017 - ndas@suse.de + +- Update to version 16.11(fate#321541). Some of the new features are listed below: + * Added software parser for packet type. + * Improved offloads support in mbuf. + * Added vhost-user dequeue zero copy support. + * Added vhost-user indirect descriptors support. + * Added vhost PMD xstats. + * Added virtio NEON support for ARM. + * Updated the ixgbe base driver. + * Added APIs for VF management to the ixgbe PMD. + * Updated the enic driver. + * Added openssl PMD. + * Added support for new gcc -march option. + Detailed changes can be obtained from http://dpdk.org/doc/guides/rel_notes/release_16_11.html +- Resolved fixes in the updated versions are : + * enic: Fixed several flow director issues. + * enic: Fixed inadvertent setting of L4 checksum ptype on ICMP packets. + * enic: Fixed high driver overhead when servicing Rx queues beyond the first. + +------------------------------------------------------------------- dpdk.changes: same change Old: ---- dpdk-16.07.2.tar.xz New: ---- dpdk-16.11.tar.xz preamble ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ dpdk-thunderx.spec ++++++ --- /var/tmp/diff_new_pack.j8guci/_old 2017-02-16 17:07:09.853906370 +0100 +++ /var/tmp/diff_new_pack.j8guci/_new 2017-02-16 17:07:09.857905804 +0100 @@ -22,7 +22,7 @@ %define machine native %define target x86_64-%{machine}-linuxapp-gcc %endif -%ifarch %ix86 +%ifarch %{ix86} %define machine native %define target i686-%{machine}-linuxapp-gcc %endif @@ -34,7 +34,6 @@ %define machine2 power8 %define target ppc_64-%{machine2}-linuxapp-gcc %endif - %bcond_without shared # Add option to build without examples %bcond_without examples @@ -43,13 +42,14 @@ # Do NOT edit this auto generated file! Edit dpdk.spec instead # and run 'pre_checkin.sh' before committing Name: dpdk-thunderx -Version: 16.07.2 +Version: 16.11 Release: 0 Summary: Set of libraries and drivers for fast packet processing (thunderx) License: BSD-3-Clause and GPL-2.0 and LGPL-2.1 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 @@ -62,8 +62,9 @@ BuildRequires: gcc6 BuildRequires: libnuma-devel BuildRequires: libpcap-devel +BuildRequires: pesign-obs-integration BuildRequires: zlib-devel -ExclusiveArch: aarch64 x86_64 %ix86 ppc64le +ExclusiveArch: aarch64 Provides: dpdk-any = %{version} Conflicts: otherproviders(dpdk-any) @@ -121,13 +122,23 @@ as L2 and L3 forwarding. %endif +%package kmp +Summary: DPDK KNI kernel module (thunderx) +Group: System/Kernel +BuildRequires: %{kernel_module_package_buildreqs} +Conflicts: otherproviders(dpdk-any-kmp) +%suse_kernel_module_package -p %{_sourcedir}/preamble pae 64kb + +%description kmp +The DPDK Kernel NIC Interface (KNI) allows userspace applications access to the Linux* control plane. + %define sdkdir %{_datadir}/dpdk %define docdir %{_docdir}/dpdk %define incdir %{_includedir}/dpdk %define pmddir %{_libdir}/dpdk-pmds %prep -%setup -q -n dpdk-stable-%{version} +%setup -q -n dpdk-%{version} %patch1 -p1 -z .enic # This fixes CROSS compilation (broken) in the mk file for ThunderX sed -i '/^CROSS /s/^/#/' mk/machine/thunderx/rte.vars.mk @@ -171,9 +182,6 @@ setconf CONFIG_RTE_LIBRTE_VHOST_NUMA y setconf CONFIG_RTE_EAL_IGB_UIO n -setconf CONFIG_RTE_LIBRTE_KNI n -setconf CONFIG_RTE_KNI_KMOD n -setconf CONFIG_RTE_KNI_PREEMPT_DEFAULT n %if %{with shared} setconf CONFIG_RTE_BUILD_SHARED_LIB y @@ -185,6 +193,13 @@ %ifarch ppc64le setconf CONFIG_RTE_LIBRTE_PMD_RING n %endif +export EXTRA_CFLAGS='-DVERSION=\"%{version}\"' +for flavor in %{flavors_to_build}; do + cp -r %{target} %{target}-$flavor + cd %{target}-$flavor + make CC=gcc-6 KERNELDIR=%{_prefix}/src/linux-obj/%{_target_cpu}/$flavor %{?_smp_mflags} + cd - +done make CC=gcc-6 V=1 O=%{target} %{?_smp_mflags} make CC=gcc-6 V=1 O=%{target} %{?_smp_mflags} doc-api-html @@ -194,6 +209,19 @@ %endif %install +# export needed for kmp package +export EXTRA_CFLAGS='-DVERSION=\"%{version}\"' +export INSTALL_MOD_PATH=%{buildroot} +export INSTALL_MOD_DIR=updates +# needssslcertforbuild +export BRP_PESIGN_FILES="*.ko" + +for flavor in %{flavors_to_build}; do + cd %{target}-$flavor + %make_install KERNELDIR=%{_prefix}/src/linux-obj/%{_target_cpu}/$flavor prefix=%{_usr} libdir=%{_libdir} + cd - +done + # In case dpdk-devel is installed unset RTE_SDK RTE_INCLUDE RTE_TARGET ++++++ dpdk.spec ++++++ --- /var/tmp/diff_new_pack.j8guci/_old 2017-02-16 17:07:09.877902974 +0100 +++ /var/tmp/diff_new_pack.j8guci/_new 2017-02-16 17:07:09.881902408 +0100 @@ -22,7 +22,7 @@ %define machine native %define target x86_64-%{machine}-linuxapp-gcc %endif -%ifarch %ix86 +%ifarch %{ix86} %define machine native %define target i686-%{machine}-linuxapp-gcc %endif @@ -34,20 +34,20 @@ %define machine2 power8 %define target ppc_64-%{machine2}-linuxapp-gcc %endif - %bcond_without shared # Add option to build without examples %bcond_without examples # Add option to build without tools %bcond_without tools Name: dpdk -Version: 16.07.2 +Version: 16.11 Release: 0 Summary: Set of libraries and drivers for fast packet processing License: BSD-3-Clause and GPL-2.0 and LGPL-2.1 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 @@ -60,6 +60,7 @@ BuildRequires: gcc6 BuildRequires: libnuma-devel BuildRequires: libpcap-devel +BuildRequires: pesign-obs-integration BuildRequires: zlib-devel ExclusiveArch: aarch64 x86_64 %ix86 ppc64le Provides: dpdk-any = %{version} @@ -119,13 +120,23 @@ as L2 and L3 forwarding. %endif +%package kmp +Summary: DPDK KNI kernel module +Group: System/Kernel +BuildRequires: %{kernel_module_package_buildreqs} +Conflicts: otherproviders(dpdk-any-kmp) +%suse_kernel_module_package -p %{_sourcedir}/preamble pae 64kb + +%description kmp +The DPDK Kernel NIC Interface (KNI) allows userspace applications access to the Linux* control plane. + %define sdkdir %{_datadir}/dpdk %define docdir %{_docdir}/dpdk %define incdir %{_includedir}/dpdk %define pmddir %{_libdir}/dpdk-pmds %prep -%setup -q -n dpdk-stable-%{version} +%setup -q -n dpdk-%{version} %patch1 -p1 -z .enic # This fixes CROSS compilation (broken) in the mk file for ThunderX sed -i '/^CROSS /s/^/#/' mk/machine/thunderx/rte.vars.mk @@ -169,9 +180,6 @@ setconf CONFIG_RTE_LIBRTE_VHOST_NUMA y setconf CONFIG_RTE_EAL_IGB_UIO n -setconf CONFIG_RTE_LIBRTE_KNI n -setconf CONFIG_RTE_KNI_KMOD n -setconf CONFIG_RTE_KNI_PREEMPT_DEFAULT n %if %{with shared} setconf CONFIG_RTE_BUILD_SHARED_LIB y @@ -183,6 +191,13 @@ %ifarch ppc64le setconf CONFIG_RTE_LIBRTE_PMD_RING n %endif +export EXTRA_CFLAGS='-DVERSION=\"%{version}\"' +for flavor in %{flavors_to_build}; do + cp -r %{target} %{target}-$flavor + cd %{target}-$flavor + make CC=gcc-6 KERNELDIR=%{_prefix}/src/linux-obj/%{_target_cpu}/$flavor %{?_smp_mflags} + cd - +done make CC=gcc-6 V=1 O=%{target} %{?_smp_mflags} make CC=gcc-6 V=1 O=%{target} %{?_smp_mflags} doc-api-html @@ -192,6 +207,19 @@ %endif %install +# export needed for kmp package +export EXTRA_CFLAGS='-DVERSION=\"%{version}\"' +export INSTALL_MOD_PATH=%{buildroot} +export INSTALL_MOD_DIR=updates +# needssslcertforbuild +export BRP_PESIGN_FILES="*.ko" + +for flavor in %{flavors_to_build}; do + cd %{target}-$flavor + %make_install KERNELDIR=%{_prefix}/src/linux-obj/%{_target_cpu}/$flavor prefix=%{_usr} libdir=%{_libdir} + cd - +done + # In case dpdk-devel is installed unset RTE_SDK RTE_INCLUDE RTE_TARGET ++++++ dpdk-16.07.2.tar.xz -> dpdk-16.11.tar.xz ++++++ /work/SRC/openSUSE:Factory/dpdk/dpdk-16.07.2.tar.xz /work/SRC/openSUSE:Factory/.dpdk.new/dpdk-16.11.tar.xz differ: char 26, line 1 ++++++ pre_checkin.sh ++++++ --- /var/tmp/diff_new_pack.j8guci/_old 2017-02-16 17:07:09.953892222 +0100 +++ /var/tmp/diff_new_pack.j8guci/_new 2017-02-16 17:07:09.957891656 +0100 @@ -16,4 +16,5 @@ -e "/^Name:/s/dpdk/&-thunderx/g" \ -e "/^Summary:/s/^.*$/&\ \(thunderx\)/g" \ -e "/^%define machine2 armv8a/s/armv8a/thunderx/g" \ +-e "/ExclusiveArch/c\ExclusiveArch: aarch64" \ dpdk-thunderx.spec || exit 1 ++++++ preamble ++++++ Requires: kernel-%1 Enhances: kernel-%1 Supplements: packageand(kernel-%1:%{-n*})