ARM network trouble after recent mbuf changes
Hans Petter Selasky
hps at bitfrost.no
Tue Aug 27 05:52:28 UTC 2013
On 08/27/13 00:38, Michael Tuexen wrote:
> I did some tests with a small program. Having in struct pkthdr 64 bit entities
> results in a 64 bit alignment when used in struct mbuf. Using __packed
> for struct mbuf, removes the padding.
Hi,
Maybe you could use __aligned(8) instead, and account for the extra
padding on all platforms? Packed has other disadvantages on ARM
platforms when accessing the structures, like that non-aligned access is
possible, and that it is sometimes slower than aligned access.
--HPS
More information about the freebsd-arm
mailing list