From: Sridhar Samudrala <[EMAIL PROTECTED]> Date: Mon, 07 Aug 2006 17:02:08 -0700
> All the structures in sctp.h that use packed atrribute define > standard on-wire SCTP chunk/parameter formats. They need to be at the > exact offsets as they go on wire. > I think we saw some issues without the packed attribute on 64-bit archs > and just to be safe we added packed to all the on-wire structures. For the cases where it is no actually necessary, the code generation cost on RISC cpus is very high. Byte loads and stores will be used to access _every_ member of such structures on RISC machines because the compiler cannot guarentee the alignment of any data object when packed is specified. It's OK to do this when it's really needed, but when it's not it should be heavily avoided. - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html