Resolves: 1674825

This commit is contained in:
Neil Horman 2019-02-13 13:19:10 -05:00 committed by nhorman
parent def318588a
commit ec3e4597c0
2 changed files with 23 additions and 1 deletions

View File

@ -0,0 +1,17 @@
diff -up ./lib/librte_net/rte_ether.h.align ./lib/librte_net/rte_ether.h
--- ./lib/librte_net/rte_ether.h.align 2018-04-19 10:09:22.000000000 -0400
+++ ./lib/librte_net/rte_ether.h 2019-02-12 14:15:57.719572582 -0500
@@ -175,10 +175,9 @@ static inline int is_multicast_ether_add
*/
static inline int is_broadcast_ether_addr(const struct ether_addr *ea)
{
- const unaligned_uint16_t *ea_words = (const unaligned_uint16_t *)ea;
-
- return (ea_words[0] == 0xFFFF && ea_words[1] == 0xFFFF &&
- ea_words[2] == 0xFFFF);
+ return (ea->addr_bytes[0] == 0xFF && ea->addr_bytes[1] == 0xFF &&
+ ea->addr_bytes[2] == 0xFF && ea->addr_bytes[3] == 0xFF &&
+ ea->addr_bytes[4] == 0xFF && ea->addr_bytes[5] == 0xFF);
}
/**

View File

@ -9,13 +9,14 @@
Name: dpdk
Version: 17.11.2
Release: 5%{?dist}
Release: 6%{?dist}
Epoch: 2
URL: http://dpdk.org
Source: http://dpdk.org/browse/dpdk/snapshot/dpdk-%{version}.tar.xz
Patch0: app-pie.patch
Patch1: fcf-protection.patch
Patch2: dpdk-rte-ether-align.patch
Summary: Set of libraries and drivers for fast packet processing
@ -126,6 +127,7 @@ as L2 and L3 forwarding.
%ifarch x86_64 i686
%patch1 -p1
%endif
%patch2 -p1
%build
%set_build_flags
@ -309,6 +311,9 @@ sed -i -e 's:-%{machine_tmpl}-:-%{machine}-:g' %{buildroot}/%{_sysconfdir}/profi
%endif
%changelog
* Wed Feb 13 2019 Neil Horman <nhorman@redhat.com> - 2:17.11.2-6
- Fix some FTBFS errors (1674825)
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2:17.11.2-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild