diff --git a/.gitignore b/.gitignore index e69de29..62e705e 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,21 @@ +/dpdk-1.7.0-20140603git5ebbb1728.tgz +/dpdk-1.7.0.tar.gz +/dpdk-2.0.0.tar.gz +/dpdk-2.1.0.tar.gz +/dpdk-2.2.0.tar.gz +/dpdk-16.04.tar.gz +/dpdk-16.07.tar.xz +/dpdk-16.11.tar.xz +/dpdk-17.02.tar.xz +/dpdk-17.05.tar.xz +/dpdk-17.08.tar.xz +/dpdk-17.11.tar.xz +/dpdk-18.02.tar.xz +/dpdk-17.11.1.tar.xz +/dpdk-17.11.2.tar.xz +/dpdk-18.11.tar.xz +/dpdk-18.11.2.tar.xz +/dpdk-18.11.6.tar.xz +/dpdk-19.11.tar.xz +/dpdk-19.11.1.tar.xz +/dpdk-19.11.3.tar.xz diff --git a/5b45c30a00ecbd5181e5679b13ca059bcd761ead.patch b/5b45c30a00ecbd5181e5679b13ca059bcd761ead.patch new file mode 100644 index 0000000..c1b715d --- /dev/null +++ b/5b45c30a00ecbd5181e5679b13ca059bcd761ead.patch @@ -0,0 +1,27 @@ +commit 5b45c30a00ecbd5181e5679b13ca059bcd761ead +Author: Luca Boccassi +Date: Thu Jun 22 13:04:59 2017 +0100 + + ethdev: add missing symbol in map + + The function rte_eth_tx_done_cleanup() was missing in the map file + so it cannot be used by applications linking to shared libraries. + pktgen uses it since version 3.2.0. + + Fixes: 44a718c457b5 ("ethdev: add API to free consumed buffers in Tx ring") + Cc: stable@dpdk.org + + Signed-off-by: Luca Boccassi + +diff --git a/lib/librte_ether/rte_ether_version.map b/lib/librte_ether/rte_ether_version.map +index 805e6de80..e0881f09d 100644 +--- a/lib/librte_ether/rte_ether_version.map ++++ b/lib/librte_ether/rte_ether_version.map +@@ -142,6 +142,7 @@ DPDK_17.05 { + + rte_eth_dev_attach_secondary; + rte_eth_find_next; ++ rte_eth_tx_done_cleanup; + rte_eth_xstats_get_by_id; + rte_eth_xstats_get_id_by_name; + rte_eth_xstats_get_names_by_id; diff --git a/app-pie.patch b/app-pie.patch new file mode 100644 index 0000000..5a6c7b0 --- /dev/null +++ b/app-pie.patch @@ -0,0 +1,12 @@ +diff -up ./mk/rte.app.mk.pie ./mk/rte.app.mk +--- ./mk/rte.app.mk.pie 2018-09-24 16:03:22.504850668 -0400 ++++ ./mk/rte.app.mk 2018-09-24 16:03:30.898814226 -0400 +@@ -50,7 +50,7 @@ LDSCRIPT = $(RTE_LDSCRIPT) + endif + + # Link only the libraries used in the application +-LDFLAGS += --as-needed ++LDFLAGS += --as-needed -pie + + # default path for libs + _LDLIBS-y += -L$(RTE_SDK_BIN)/lib diff --git a/dpdk-dpaa-build.patch b/dpdk-dpaa-build.patch new file mode 100644 index 0000000..a8285c0 --- /dev/null +++ b/dpdk-dpaa-build.patch @@ -0,0 +1,12 @@ +diff -up ./app/test-pmd/Makefile.arm ./app/test-pmd/Makefile +--- ./app/test-pmd/Makefile.arm 2018-02-14 13:11:02.000000000 -0500 ++++ ./app/test-pmd/Makefile 2018-02-26 12:01:02.999831933 -0500 +@@ -45,7 +45,7 @@ LDLIBS += -lrte_pmd_bond + endif + + ifeq ($(CONFIG_RTE_LIBRTE_DPAA_PMD),y) +-LDLIBS += -lrte_pmd_dpaa ++LDLIBS += -lrte_pmd_dpaa -lrte_bus_dpaa -lrte_mempool_dpaa + endif + + ifeq ($(CONFIG_RTE_LIBRTE_IXGBE_PMD),y) diff --git a/dpdk-stable-18.11.2-doxygen-multilib.patch b/dpdk-stable-18.11.2-doxygen-multilib.patch new file mode 100644 index 0000000..0fc4223 --- /dev/null +++ b/dpdk-stable-18.11.2-doxygen-multilib.patch @@ -0,0 +1,12 @@ +diff -up dpdk-stable-18.11.2/mk/rte.sdkdoc.mk.multilib dpdk-stable-18.11.2/mk/rte.sdkdoc.mk +--- dpdk-stable-18.11.2/mk/rte.sdkdoc.mk.multilib 2019-09-11 12:01:46.491478717 +0200 ++++ dpdk-stable-18.11.2/mk/rte.sdkdoc.mk 2019-09-11 12:49:19.100816161 +0200 +@@ -48,7 +48,7 @@ api-html: $(API_EXAMPLES) + -e "s|@OUTPUT@|$(RTE_OUTPUT)/doc|" \ + -e "s|@HTML_OUTPUT@|html/api|" \ + -e "s|@TOPDIR@|./|g" \ +- -e "s|@STRIP_FROM_PATH@|./|g" \ ++ -e "s|@STRIP_FROM_PATH@|$(RTE_SDK) $(RTE_OUTPUT)/doc/html/|" \ + $(RTE_SDK)/doc/api/doxy-api.conf.in)| \ + doxygen - + $(Q)$(RTE_SDK)/doc/api/doxy-html-custom.sh $(RTE_OUTPUT)/doc/html/api/doxygen.css diff --git a/dpdk.spec b/dpdk.spec new file mode 100644 index 0000000..a04da87 --- /dev/null +++ b/dpdk.spec @@ -0,0 +1,611 @@ +# Add option to build as static libraries (--without shared) +%bcond_without shared +# Add option to build without examples +%bcond_without examples +# Add option to build without tools +%bcond_without tools +# Add option to build the PDF documentation separately (--with pdfdoc) +%bcond_with pdfdoc + +Name: dpdk +Version: 19.11.3 +Release: 2%{?dist} +Epoch: 2 +URL: http://dpdk.org +Source: https://fast.dpdk.org/rel/dpdk-%{version}.tar.xz + +Patch0: app-pie.patch +Patch1: fcf-protection.patch +# fixed multilib issue with doxygen +Patch3: dpdk-stable-18.11.2-doxygen-multilib.patch + +Summary: Set of libraries and drivers for fast packet processing + +# +# Note that, while this is dual licensed, all code that is included with this +# Pakcage are BSD licensed. The only files that aren't licensed via BSD is the +# kni kernel module which is dual LGPLv2/BSD, and thats not built for fedora. +# +License: BSD and LGPLv2 and GPLv2 + +# +# The DPDK is designed to optimize througput of network traffic using, among +# other techniques, carefully crafted assembly instructions. As such it +# needs extensive work to port it to other architectures. +# +ExclusiveArch: x86_64 i686 aarch64 ppc64le + +# machine_arch maps between rpm and dpdk arch name, often same as _target_cpu +# machine_tmpl is the config template machine name, often "native" +# machine is the actual machine name used in the dpdk make system +%ifarch x86_64 +%define machine_arch x86_64 +%define machine_tmpl native +%define machine default +%endif +%ifarch i686 +%define machine_arch i686 +%define machine_tmpl native +%define machine default +%endif +%ifarch aarch64 +%define machine_arch arm64 +%define machine_tmpl armv8a +%define machine armv8a +%endif +%ifarch ppc64le +%define machine_arch ppc_64 +%define machine_tmpl power8 +%define machine power8 +%endif + + +%define target %{machine_arch}-%{machine_tmpl}-linuxapp-gcc + +BuildRequires: gcc +BuildRequires: kernel-headers, libpcap-devel, doxygen, python3-sphinx, zlib-devel, wdiff +BuildRequires: numactl-devel +BuildRequires: rdma-core-devel +%if %{with pdfdoc} +BuildRequires: texlive-dejavu inkscape texlive-latex-bin-bin +BuildRequires: texlive-kpathsea-bin texlive-metafont-bin texlive-cm +BuildRequires: texlive-cmap texlive-ec texlive-babel-english +BuildRequires: texlive-fancyhdr texlive-fancybox texlive-titlesec +BuildRequires: texlive-framed texlive-threeparttable texlive-mdwtools +BuildRequires: texlive-wrapfig texlive-parskip texlive-upquote texlive-multirow +BuildRequires: texlive-helvetic texlive-times texlive-dvips +%endif + +%description +The Data Plane Development Kit is a set of libraries and drivers for +fast packet processing in the user space. + +%package devel +Summary: Data Plane Development Kit development files +Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release} python3 +%if ! %{with shared} +Provides: %{name}-static = %{epoch}:%{version}-%{release} +%endif +Requires: rdma-core-devel + +%description devel +This package contains the headers and other files needed for developing +applications with the Data Plane Development Kit. + +%package doc +Summary: Data Plane Development Kit API documentation +BuildArch: noarch + +%description doc +API programming documentation for the Data Plane Development Kit. + +%if %{with tools} +%package tools +Summary: Tools for setting up Data Plane Development Kit environment +Requires: %{name} = %{epoch}:%{version}-%{release} +Requires: kmod pciutils findutils iproute python3-pyelftools + +%description tools +%{summary} +%endif + +%if %{with examples} +%package examples +Summary: Data Plane Development Kit example applications +BuildRequires: libvirt-devel + +%description examples +Example applications utilizing the Data Plane Development Kit, such +as L2 and L3 forwarding. +%endif + +%define sdkdir %{_datadir}/%{name} +%define docdir %{_docdir}/%{name} +%define incdir %{_includedir}/%{name} +%define pmddir %{_libdir}/%{name}-pmds + +%pretrans -p +-- This is to clean up directories before links created +-- See https://fedoraproject.org/wiki/Packaging:Directory_Replacement + +directories = { + "/usr/share/dpdk/mk/exec-env/bsdapp", + "/usr/share/dpdk/mk/exec-env/linuxapp" +} +for i,path in ipairs(directories) do + st = posix.stat(path) + if st and st.type == "directory" then + status = os.rename(path, path .. ".rpmmoved") + if not status then + suffix = 0 + while not status do + suffix = suffix + 1 + status = os.rename(path .. ".rpmmoved", path .. ".rpmmoved." .. suffix) + end + os.rename(path, path .. ".rpmmoved") + end + end +end + +%prep +%setup -q -n dpdk-stable-%{version} +%patch0 -p1 +%ifarch x86_64 i686 +%patch1 -p1 +%endif +%patch3 -p1 + +%build +%set_build_flags +# set up a method for modifying the resulting .config file +function setconf() { + if grep -q ^$1= %{target}/.config; then + sed -i "s:^$1=.*$:$1=$2:g" %{target}/.config + else + echo $1=$2 >> %{target}/.config + fi +} + +# In case dpdk-devel is installed, we should ignore its hints about the SDK directories +unset RTE_SDK RTE_INCLUDE RTE_TARGET + +# Avoid appending second -Wall to everything, it breaks upstream warning +# disablers in makefiles. Strip expclit -march= from optflags since they +# will only guarantee build failures, DPDK is picky with that. +# Note: _hardening_ldflags has to go on the extra cflags line because dpdk is +# astoundingly convoluted in how it processes its linker flags. Fixing it in +# dpdk is the preferred solution, but adjusting to allow a gcc option in the +# ldflags, even when gcc is used as the linker, requires large tree-wide changes +touch obj.o +gcc -### obj.o 2>&1 | awk '/.*collect2.*/ { print $0}' > ./noopts.txt +gcc -### $(rpm --eval '%{build_ldflags}') obj.o 2>&1 | awk '/.*collect2.*/ {print $0}' > ./opts.txt +EXTRA_RPM_LDFLAGS=$(wdiff -3 -n ./noopts.txt ./opts.txt | sed -e"/^=\+$/d" -e"/^.*\.res.*/d" -e"s/\[-//g" -e"s/\-\]//g" -e"s/{+//g" -e"s/+}//g" -e"s/\/.*\.o //g" -e"s/ \/.*\.o$//g" -e"s/-z .*//g" | tr '\n' ' ') +rm -f obj.o + +export EXTRA_CFLAGS="$(echo %{optflags} | sed -e 's:-Wall::g' -e 's:-march=[[:alnum:]]* ::g') -Wformat -fPIC -fcommon %{_hardening_ldflags}" +%ifarch x86_64 i686 +export EXTRA_CFLAGS="$EXTRA_CFLAGS -fcf-protection=full" +%endif +export EXTRA_LDFLAGS=$(echo %{__global_ldflags} | sed -e's/-Wl,//g' -e's/-spec.*//') +export HOST_EXTRA_CFLAGS="$EXTRA_CFLAGS $EXTRA_RPM_LDFLAGS" +export EXTRA_HOST_LDFLAGS="$EXTRA_RPM_LDFLAGS $(echo %{__global_ldflags} | sed -e's/-spec.*//')" + +# DPDK defaults to using builder-specific compiler flags. However, +# the config has been changed by specifying CONFIG_RTE_MACHINE=default +# in order to build for a more generic host. NOTE: It is possible that +# the compiler flags used still won't work for all Fedora-supported +# machines, but runtime checks in DPDK will catch those situations. + +make V=1 O=%{target} T=%{target} %{?_smp_mflags} config + +setconf CONFIG_RTE_MACHINE '"%{machine}"' +# Disable experimental features +setconf CONFIG_RTE_NEXT_ABI n +setconf CONFIG_RTE_LIBRTE_MBUF_OFFLOAD n +# Disable unmaintained features +setconf CONFIG_RTE_LIBRTE_POWER n + +# Enable automatic driver loading from this path +setconf CONFIG_RTE_EAL_PMD_PATH '"%{pmddir}"' + +setconf CONFIG_RTE_LIBRTE_BNX2X_PMD y +setconf CONFIG_RTE_LIBRTE_PMD_PCAP y +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 + +setconf CONFIG_RTE_APP_EVENTDEV n + +setconf CONFIG_RTE_LIBRTE_NFP_PMD y + +setconf CONFIG_RTE_LIBRTE_MLX5_PMD y + +%ifarch aarch64 +setconf CONFIG_RTE_LIBRTE_DPAA_BUS n +setconf CONFIG_RTE_LIBRTE_DPAA_MEMPOOL n +setconf CONFIG_RTE_LIBRTE_DPAA_PMD n +setconf CONFIG_RTE_LIBRTE_PFE_PMD n +setconf CONFIG_RTE_LIBRTE_PMD_CAAM_JR n +setconf CONFIG_RTE_LIBRTE_PMD_CAAM_JR_BE n +%endif + +%if %{with shared} +setconf CONFIG_RTE_BUILD_SHARED_LIB y +%endif + +make V=1 O=%{target} %{?_smp_mflags} -Wimplicit-fallthrough=0 +make V=1 O=%{target} %{?_smp_mflags} doc-api-html doc-guides-html %{?with_pdfdoc: guides-pdf} + +%if %{with examples} +make V=1 O=%{target}/examples T=%{target} %{?_smp_mflags} examples +%endif + +%install +# In case dpdk-devel is installed +unset RTE_SDK RTE_INCLUDE RTE_TARGET + +%make_install O=%{target} prefix=%{_usr} libdir=%{_libdir} + +%if ! %{with tools} +rm -rf %{buildroot}%{sdkdir}/usertools +rm -rf %{buildroot}%{_sbindir}/dpdk_nic_bind +rm -rf %{buildroot}%{_bindir}/dpdk-test-crypto-perf +rm -rf %{buildroot}%{_bindir}/testbbdev +%else +mv %{buildroot}%{_bindir}/testbbdev %{buildroot}%{_bindir}/dpdk-test-bbdev +%endif +rm -f %{buildroot}%{sdkdir}/usertools/dpdk-setup.sh +rm -f %{buildroot}%{sdkdir}/usertools/meson.build + +%if %{with examples} +find %{target}/examples/ -name "*.map" | xargs rm -f +for f in %{target}/examples/*/%{target}/app/*; do + bn=`basename ${f}` + cp -p ${f} %{buildroot}%{_bindir}/dpdk_example_${bn} +done +%endif + +# Replace /usr/bin/env python with /usr/bin/python3 +find %{buildroot}%{sdkdir}/ -name "*.py" -exec \ + sed -i -e 's|#!\s*/usr/bin/env python|#!/usr/bin/python3|' {} + + +find %{buildroot}%{sdkdir}/ -name "*.py" -exec \ + sed -i -e 's|#!\s*/usr/bin/python33|#!/usr/bin/python3|' {} + + +# Create a driver directory with symlinks to all pmds +mkdir -p %{buildroot}/%{pmddir} +for f in %{buildroot}/%{_libdir}/*_pmd_*.so.*; do + bn=$(basename ${f}) + ln -s ../${bn} %{buildroot}%{pmddir}/${bn} +done + +# Setup RTE_SDK environment as expected by apps etc +mkdir -p %{buildroot}/%{_sysconfdir}/profile.d +cat << EOF > %{buildroot}/%{_sysconfdir}/profile.d/dpdk-sdk-%{_arch}.sh +if [ -z "\${RTE_SDK}" ]; then + export RTE_SDK="%{sdkdir}" + export RTE_TARGET="%{target}" + export RTE_INCLUDE="%{incdir}" +fi +EOF + +cat << EOF > %{buildroot}/%{_sysconfdir}/profile.d/dpdk-sdk-%{_arch}.csh +if (! -d \$?RTE_SDK ) then + setenv RTE_SDK "%{sdkdir}" + setenv RTE_TARGET "%{target}" + setenv RTE_INCLUDE "%{incdir}" +endif +EOF + +# Fixup target machine mismatch +sed -i -e 's:-%{machine_tmpl}-:-%{machine}-:g' %{buildroot}/%{_sysconfdir}/profile.d/dpdk-sdk* + +%files +# BSD +%{_bindir}/testpmd +%{_bindir}/dpdk-procinfo +%if %{with shared} +%{_libdir}/*.so.* +%{pmddir}/ +%endif + +%files doc +#BSD +%{docdir} + +%files devel +#BSD +%{incdir}/ +%{sdkdir} +%ghost %{sdkdir}/mk/exec-env/bsdapp +%ghost %{sdkdir}/mk/exec-env/linuxapp +%if %{with tools} +%exclude %{sdkdir}/usertools/ +%endif +%if %{with examples} +%exclude %{sdkdir}/examples/ +%endif +%{_sysconfdir}/profile.d/dpdk-sdk-*.* +%if ! %{with shared} +%{_libdir}/*.a +%else +%{_libdir}/*.so +%endif + +%if %{with tools} +%files tools +%{sdkdir}/usertools/ +%{_sbindir}/dpdk-devbind +%{_bindir}/dpdk-pdump +%{_bindir}/dpdk-pmdinfo +%{_bindir}/dpdk-test-bbdev +%{_bindir}/dpdk-test-compress-perf +%{_bindir}/dpdk-test-crypto-perf +%{_bindir}/testsad +%endif + +%if %{with examples} +%files examples +%{_bindir}/dpdk_example_* +%doc %{sdkdir}/examples +%endif + +%changelog +* Tue Sep 01 2020 Jeff Law - 2:19.11.3-2 +- Re-enable LTO + +* Tue Sep 01 2020 Timothy Redaelli - 2:19.11.3-1 +- Update to latest 19.11 LTS (bz1874499) + +* Mon Jul 27 2020 Fedora Release Engineering - 2:19.11.1-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Wed Jul 01 2020 Jeff Law - 2:19.11.1-6 +- Disable LTO + +* Tue Jun 23 2020 Timothy Redaelli - 2:19.11.1-5 +- Fix missing Requires for dpdk-devel (bz1843590) + +* Thu Jun 04 2020 Neil Horman - 2:19.11.1-4 +- Fix broken buildrequires (bz1843590) + +* Thu Jun 04 2020 Neil Horman - 2:19.11.1-3 +- Enable MLX5 PMD (bz 1843590) + +* Thu May 07 2020 Neil Horman - 2:19.11.1-2 +- Fix error in python interpreter fixup (bz 1832416) + +* Mon Apr 06 2020 Timothy Redaelli - 2:19.11-1 +- Update to latest 19.11 LTS (bz1821213) + +* Fri Feb 07 2020 Timothy Redaelli - 2:18.11.6-1 +- Update to latest 18.11 LTS (bz1800510) +- Add -fcommon to CFLAGS as workaround in order to make it build on GCC 10 + (bz1799289) + +* Tue Jan 28 2020 Fedora Release Engineering - 2:18.11.2-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Mon Nov 04 2019 Timothy Redaelli - 2:18.11.2-5 +- Pass the correct LDFLAGS to host apps (dpdk-pmdinfogen) too (bz1768405) + +* Wed Sep 11 2019 Than Ngo - 2:18.11.2-4 +- Fix multilib issue, different outputs on different arches + +* Mon Aug 26 2019 Neil Horman - 2:18.11.2-3 +- Fix csh syntax in dpdk-sdk-x86_64.csg (bz1742942) + +* Wed Jul 24 2019 Fedora Release Engineering - 2:18.11.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Tue Jun 25 2019 Timothy Redaelli - 2:18.11.2-1 +- Update to latest 18.11 LTS (bz1721056) + +* Thu Feb 28 2019 Timothy Redaelli - 2:18.11.0-1 +- Update to latest LTS release (bz1684107) + +* Wed Feb 13 2019 Neil Horman - 2:17.11.2-6 +- Fix some FTBFS errors (1674825) + +* Thu Jan 31 2019 Fedora Release Engineering - 2:17.11.2-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Tue Nov 27 2018 Neil Horman - 2:17.11.2-4 +- Add wdiff to BuildRequires + +* Thu Sep 27 2018 Neil Horman - 2:17.11.2-3 +- quiet annocheck complaints (bz1548404) + +* Thu Jul 12 2018 Fedora Release Engineering - 2:17.11.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Tue Apr 24 2018 Neil Horman 2:17.11.2-1 +- Update to latest 17.11 LTS (fixes bz 1571361) + +* Tue Apr 10 2018 Timothy Redaelli - 2:17.11.1-3 +- Fix Requires dpdk by adding epoch + +* Fri Apr 06 2018 Neil Horman 2:17.11.1-2 +- Fix aarch64 build issue + +* Fri Apr 06 2018 Neil Horman 2:17.11.1-1 +- Update to latest LTS release for OVS + +* Fri Apr 06 2018 Timothy Redaelli - 18.02 -6 +- Replace "/usr/bin/env python" with "/usr/bin/python3" (bz 1564215) + +* Thu Apr 05 2018 Neil Horman - 18.02-5 +- Fix compiler flag error (bz 1548404) +- Update spec file to switch to python3 + +* Wed Mar 14 2018 Neil Horman < -18.02-4 +- Fixing date in changelog below + +* Thu Mar 08 2018 Neil Horman - 18.02-3 +- Fixing missing c/ldflags for pmdinfogen (bz 1548404) + +* Tue Feb 27 2018 Neil Horman - 18.02-2 +- Fix rpm ldflags usage (bz 1548404) + +* Mon Feb 19 2018 Neil Horman - 18.02-1 +- update to latest upstream + +* Wed Feb 07 2018 Fedora Release Engineering - 17.11-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Wed Jan 03 2018 Iryna Shcherbina - 17.11-3 +- Update Python 2 dependency declarations to new packaging standards + (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) + +* Thu Nov 30 2017 Neil Horman - 17.11-2 +- Fix dangling symlinks (bz 1519322) +- Fix devtools->usertools conversion (bz 1519332) +- Fix python-pyelftools requirement (bz 1519336) + +* Thu Nov 16 2017 Neil Horman - 17.11-1 +- Update to latest upstream + +* Wed Aug 09 2017 Neil Horman - 17.08-1 +- Update to latest upstream + +* Mon Jul 31 2017 Neil Horman - 17.05-2 +- backport rte_eth_tx_done_cleanup map fix (#1476341) + +* Wed Jul 26 2017 Fedora Release Engineering - 17.05-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Mon May 15 2017 Neil Horman - 17.05-1 +- Update to latest upstream + +* Fri Feb 24 2017 Neil Horman - 17-02-2 +- Add python dependency (#1426561) + +* Wed Feb 15 2017 Fedora Release Monitoring - 17.02-1 +- Update to 17.02 (#1422285) + +* Mon Feb 06 2017 Yaakov Selkowitz - 16.11-2 +- Enable aarch64, ppc64le (#1419731) + +* Tue Nov 15 2016 Neil Horman - 16.11-1 +- Update to 16.11 + +* Tue Aug 02 2016 Neil Horman - 16.07-1 +* Update to 16.07 + +* Thu Apr 14 2016 Panu Matilainen - 16.04-1 +- Update to 16.04 +- Drop all patches, they're not needed anymore +- Drop linker script generation, its upstream now +- Enable vhost numa support again + +* Wed Mar 16 2016 Panu Matilainen - 2.2.0-7 +- vhost numa code causes crashes, disable until upstream fixes +- Generalize target/machine/etc macros to enable i686 builds + +* Tue Mar 01 2016 Panu Matilainen - 2.2.0-6 +- Drop no longer needed bnx2x patch, the gcc false positive has been fixed +- Drop no longer needed -Wno-error=array-bounds from CFLAGS +- Eliminate the need for the enic patch by eliminating second -Wall from CFLAGS +- Disable unmaintained librte_power as per upstream recommendation + +* Mon Feb 15 2016 Neil Horman 2.2.0-5 +- Fix ftbfs isssue (1307431) + +* Wed Feb 03 2016 Fedora Release Engineering - 2.2.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Tue Jan 26 2016 Panu Matilainen - 2.2.0-3 +- Use a different quoting method to avoid messing up vim syntax highlighting +- A string is expected as CONFIG_RTE_MACHINE value, quote it too + +* Mon Jan 25 2016 Panu Matilainen - 2.2.0-2 +- Enable librte_vhost NUMA-awareness + +* Wed Jan 20 2016 Panu Matilainen - 2.2.0-1 +- Update to 2.2.0 +- Establish a driver directory for automatic driver loading +- Move the unversioned pmd symlinks from libdir -devel +- Make option matching stricter in spec setconf +- Spec cleanups +- Adopt upstream standard installation layout + +* Thu Oct 22 2015 Aaron Conole - 2.1.0-3 +- Include examples binaries +- Enable the Broadcom NetXtreme II 10Gb PMD +- Fix up linkages for the dpdk-devel package + +* Wed Sep 30 2015 Aaron Conole - 2.1.0-2 +- Re-enable the IGB, IXGBE, I40E PMDs +- Bring the Fedora and RHEL packages more in-line. + +* Wed Aug 26 2015 Neil Horman - 2.1.0-1 +- Update to latest version + +* Wed Jun 17 2015 Fedora Release Engineering - 2.0.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Mon Apr 06 2015 Neil Horman - 2.0.0-1 +- Update to dpdk 2.0 +- converted --with shared option to --without shared option + +* Wed Jan 28 2015 Panu Matilainen - 1.7.0-8 +- Always build with -fPIC + +* Wed Jan 28 2015 Panu Matilainen - 1.7.0-7 +- Policy compliance: move static libraries to -devel, provide dpdk-static +- Add a spec option to build as shared libraries + +* Wed Jan 28 2015 Panu Matilainen - 1.7.0-6 +- Avoid variable expansion in the spec here-documents during build +- Drop now unnecessary debug flags patch +- Add a spec option to build a combined library + +* Tue Jan 27 2015 Panu Matilainen - 1.7.0-5 +- Avoid unnecessary use of %%global, lazy expansion is normally better +- Drop unused destdir macro while at it +- Arrange for RTE_SDK environment + directory layout expected by DPDK apps +- Drop config from main package, it shouldn't be needed at runtime + +* Tue Jan 27 2015 Panu Matilainen - 1.7.0-4 +- Copy the headers instead of broken symlinks into -devel package +- Force sane mode on the headers +- Avoid unnecessary %%exclude by not copying unpackaged content to buildroot +- Clean up summaries and descriptions +- Drop unnecessary kernel-devel BR, we are not building kernel modules + +* Sat Aug 16 2014 Fedora Release Engineering - 1.7.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Thu Jul 17 2014 - John W. Linville - 1.7.0-2 +- Use EXTRA_CFLAGS to include standard Fedora compiler flags in build +- Set CONFIG_RTE_MACHINE=default to build for least-common-denominator machines +- Turn-off build of librte_acl, since it does not build on default machines +- Turn-off build of physical device PMDs that require kernel support +- Clean-up the install rules to match current packaging +- Correct changelog versions 1.0.7 -> 1.7.0 +- Remove ix86 from ExclusiveArch -- it does not build with above changes + +* Thu Jul 10 2014 - Neil Horman - 1.7.0-1.0 +- Update source to official 1.7.0 release + +* Thu Jul 03 2014 - Neil Horman +- Fixing up release numbering + +* Tue Jul 01 2014 - Neil Horman - 1.7.0-0.9.1.20140603git5ebbb1728 +- Fixed some build errors (empty debuginfo, bad 32 bit build) + +* Wed Jun 11 2014 - Neil Horman - 1.7.0-0.9.20140603git5ebbb1728 +- Fix another build dependency + +* Mon Jun 09 2014 - Neil Horman - 1.7.0-0.8.20140603git5ebbb1728 +- Fixed doc arch versioning issue + +* Mon Jun 09 2014 - Neil Horman - 1.7.0-0.7.20140603git5ebbb1728 +- Added verbose output to build + +* Tue May 13 2014 - Neil Horman - 1.7.0-0.6.20140603git5ebbb1728 +- Initial Build + diff --git a/fcf-protection.patch b/fcf-protection.patch new file mode 100644 index 0000000..ef6c414 --- /dev/null +++ b/fcf-protection.patch @@ -0,0 +1,12 @@ +diff -up ./mk/rte.lib.mk.stupid ./mk/rte.lib.mk +--- ./mk/rte.lib.mk.stupid 2018-09-27 13:45:48.336632453 -0400 ++++ ./mk/rte.lib.mk 2018-09-27 13:46:03.900563944 -0400 +@@ -103,7 +103,7 @@ ifneq ($(CC_SUPPORTS_Z),false) + NO_UNDEFINED := -z defs + endif + +-O_TO_S = $(LD) -L$(RTE_SDK_BIN)/lib $(_CPU_LDFLAGS) $(EXTRA_LDFLAGS) \ ++O_TO_S = $(LD) -L$(RTE_SDK_BIN)/lib $(_CPU_LDFLAGS) $(EXTRA_LDFLAGS) -fcf-protection=full \ + -shared $(OBJS-y) $(NO_UNDEFINED) $(LDLIBS) -Wl,-soname,$(LIB) -o $(LIB) + O_TO_S_STR = $(subst ','\'',$(O_TO_S)) #'# fix syntax highlight + O_TO_S_DISP = $(if $(V),"$(O_TO_S_STR)"," LD $(@)") diff --git a/lengthfix.patch b/lengthfix.patch new file mode 100644 index 0000000..260a721 --- /dev/null +++ b/lengthfix.patch @@ -0,0 +1,59 @@ +diff -up ./examples/ip_pipeline/cpu_core_map.c.lengthfix ./examples/ip_pipeline/cpu_core_map.c +--- ./examples/ip_pipeline/cpu_core_map.c.lengthfix 2017-02-14 16:17:45.000000000 -0500 ++++ ./examples/ip_pipeline/cpu_core_map.c 2017-02-21 10:23:38.982228068 -0500 +@@ -311,7 +311,7 @@ cpu_core_map_get_core_id_linux(int lcore + static int + cpu_core_map_get_socket_id_linux(int lcore_id) + { +- char buffer[64]; ++ char buffer[128]; + FILE *fd; + int socket_id; + +diff -up ./examples/multi_process/client_server_mp/mp_server/main.c.lengthfix ./examples/multi_process/client_server_mp/mp_server/main.c +--- ./examples/multi_process/client_server_mp/mp_server/main.c.lengthfix 2017-02-14 16:17:45.000000000 -0500 ++++ ./examples/multi_process/client_server_mp/mp_server/main.c 2017-02-21 11:17:15.946342832 -0500 +@@ -93,14 +93,14 @@ static const char * + get_printable_mac_addr(uint8_t port) + { + static const char err_address[] = "00:00:00:00:00:00"; +- static char addresses[RTE_MAX_ETHPORTS][sizeof(err_address)]; ++ static char addresses[RTE_MAX_ETHPORTS][sizeof(err_address)+2]; + + if (unlikely(port >= RTE_MAX_ETHPORTS)) + return err_address; + if (unlikely(addresses[port][0]=='\0')){ + struct ether_addr mac; + rte_eth_macaddr_get(port, &mac); +- snprintf(addresses[port], sizeof(addresses[port]), ++ snprintf(addresses[port], sizeof(addresses[port])+2, + "%02x:%02x:%02x:%02x:%02x:%02x\n", + mac.addr_bytes[0], mac.addr_bytes[1], mac.addr_bytes[2], + mac.addr_bytes[3], mac.addr_bytes[4], mac.addr_bytes[5]); +diff -up ./examples/server_node_efd/server/main.c.lengthfix ./examples/server_node_efd/server/main.c +--- ./examples/server_node_efd/server/main.c.lengthfix 2017-02-21 10:59:27.769936326 -0500 ++++ ./examples/server_node_efd/server/main.c 2017-02-21 10:59:43.719823270 -0500 +@@ -100,7 +100,7 @@ static const char * + get_printable_mac_addr(uint8_t port) + { + static const char err_address[] = "00:00:00:00:00:00"; +- static char addresses[RTE_MAX_ETHPORTS][sizeof(err_address)]; ++ static char addresses[RTE_MAX_ETHPORTS][sizeof(err_address)+2]; + struct ether_addr mac; + + if (unlikely(port >= RTE_MAX_ETHPORTS)) +diff -up ./examples/server_node_efd/shared/common.h.lengthfix ./examples/server_node_efd/shared/common.h +--- ./examples/server_node_efd/shared/common.h.lengthfix 2017-02-21 10:48:32.788582926 -0500 ++++ ./examples/server_node_efd/shared/common.h 2017-02-21 10:48:07.540762374 -0500 +@@ -86,9 +86,9 @@ get_rx_queue_name(unsigned int id) + { + /* + * Buffer for return value. Size calculated by %u being replaced +- * by maximum 3 digits (plus an extra byte for safety) ++ * by maximum 10 digits (plus an extra byte for safety) + */ +- static char buffer[sizeof(MP_NODE_RXQ_NAME) + 2]; ++ static char buffer[sizeof(MP_NODE_RXQ_NAME) + 12]; + + snprintf(buffer, sizeof(buffer) - 1, MP_NODE_RXQ_NAME, id); + return buffer; diff --git a/makefix.patch b/makefix.patch new file mode 100644 index 0000000..cf3b920 --- /dev/null +++ b/makefix.patch @@ -0,0 +1,13 @@ +diff -up ./examples/ethtool/ethtool-app/Makefile.makefix ./examples/ethtool/ethtool-app/Makefile +--- ./examples/ethtool/ethtool-app/Makefile.makefix 2017-02-22 07:08:22.873372009 -0500 ++++ ./examples/ethtool/ethtool-app/Makefile 2017-02-22 07:09:10.138033792 -0500 +@@ -49,6 +49,8 @@ CFLAGS += $(WERROR_FLAGS) + + LDLIBS += -L$(subst ethtool-app,lib,$(RTE_OUTPUT))/lib + LDLIBS += -lrte_ethtool +- ++ifeq ($(CONFIG_RTE_LIBRTE_IXGBE_PMD),y) ++LDLIBS += -lrte_pmd_ixgbe ++endif + + include $(RTE_SDK)/mk/rte.extapp.mk diff --git a/sources b/sources new file mode 100644 index 0000000..9ae2d56 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (dpdk-19.11.3.tar.xz) = aee6ceb955be9d4921942d8b9334c61b4f7375aa5711b7d8d8e88589a138185b67dd844af0bcb1ef5e5e0cf038efc14f4d7caea42f4275388ecbcdc6afcc535e diff --git a/test-app-libfix.patch b/test-app-libfix.patch new file mode 100644 index 0000000..27d93a4 --- /dev/null +++ b/test-app-libfix.patch @@ -0,0 +1,11 @@ +diff -up ./app/test/Makefile.libfix ./app/test/Makefile +--- ./app/test/Makefile.libfix 2017-02-07 11:57:20.198263877 -0500 ++++ ./app/test/Makefile 2017-02-07 11:57:34.700156907 -0500 +@@ -187,6 +187,7 @@ ifeq ($(CONFIG_RTE_LIBRTE_PMD_NULL),y) + SRCS-$(CONFIG_RTE_LIBRTE_PMD_BOND) += test_link_bonding_rssconf.c + ifeq ($(CONFIG_RTE_BUILD_SHARED_LIB),y) + LDLIBS += -lrte_pmd_null ++LDLIBS += -lrte_pmd_ring + endif + endif +