numam-dpdk/lib/librte_mbuf
Bruce Richardson 586ec205bc mbuf: fix 64-bit address alignment in 32-bit builds
On i686 builds, the uin64_t type is 64-bits in size but is aligned to
32-bits only. This causes mbuf fields for rearm_data to not be 16-byte
aligned on 32-bit builds, which causes errors with some vector PMDs which
expect the rearm data to be aligned as on 64-bit.

Given that we cannot use the extra space in the data structures anyway, as
it's already used on 64-bit builds, we can just force alignment of the
physical address in the mbuf to 8-bytes in all cases. This has no effect on
64-bit systems, but fixes the updated PMDs on 32-bit.

Fixes: f4356d7ca1 ("net/i40e: eliminate mbuf write on rearm")
Fixes: f160666a10 ("net/ixgbe: eliminate mbuf write on rearm")

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
2017-04-30 21:43:45 +02:00
..
Makefile mbuf: bump library version 2017-04-05 13:37:17 +02:00
rte_mbuf_ptype.c mbuf: add functions to dump packet type 2016-10-11 18:22:36 +02:00
rte_mbuf_ptype.h mbuf: clarify definition of fragment packet types 2016-10-11 18:22:46 +02:00
rte_mbuf_version.map mbuf: add functions to dump offload flags 2016-10-12 18:08:40 +02:00
rte_mbuf.c mbuf: add a timestamp field 2017-04-05 11:30:29 +02:00
rte_mbuf.h mbuf: fix 64-bit address alignment in 32-bit builds 2017-04-30 21:43:45 +02:00