]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Marking this as __packed was needed to get the alignment and offset of
authorWarner Losh <imp@FreeBSD.org>
Fri, 12 Jan 2007 07:23:31 +0000 (07:23 +0000)
committerWarner Losh <imp@FreeBSD.org>
Fri, 12 Jan 2007 07:23:31 +0000 (07:23 +0000)
commit0befead1e0405c7724088f3d7abd9cc66d23aa5a
tree5aad38060f4270bcf395b1eb7e96bc11d289336b
parent1c0ee39e74f1b1c2941afb576eb33e0377fe0b4e
Marking this as __packed was needed to get the alignment and offset of
members right.  However, it also said it was aligned(1), which meant
that gcc generated really bad code.  Mark this as aligned(4).  This
makes things a little faster on arm (a couple percent), but also saves
about 30k on the size of the kernel for arm.

I talked about doing this with bde, but didn't check with him before
the commit, so I'm hesitant say 'reviewed by: bde'.
sys/netinet/ip.h