Re: [PATCH] Re: WAN: new PPP code for generic HDLC
From: Stephen Hemminger
Date: Wed Mar 12 2008 - 14:52:38 EST
> +struct hdlc_header {
> + u8 address;
> + u8 control;
> + __be16 protocol;
> +} __attribute__ ((packed));
> +
> +struct cp_header {
> + u8 code;
> + u8 id;
> + __be16 len;
> +} __attribute__ ((packed));
> +
If I remember correctly, the packed is unnecessary for structures like this
and causes GCC to generate worse code.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/