cvs commit: src/sys/netinet ip.h

Warner Losh imp at FreeBSD.org
Fri Jan 12 07:23:31 UTC 2007


imp         2007-01-12 07:23:31 UTC

  FreeBSD src repository

  Modified files:
    sys/netinet          ip.h 
  Log:
  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'.
  
  Revision  Changes    Path
  1.30      +1 -1      src/sys/netinet/ip.h


More information about the cvs-src mailing list